2020-08-22 04:40:39 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// RomRepoMgr - ROM repository manager
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ License ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
|
// it under the terms of the GNU General public License as
|
|
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
// GNU General public License for more details.
|
|
|
|
|
|
//
|
|
|
|
|
|
// You should have received a copy of the GNU General public License
|
|
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2024-11-08 19:13:57 +00:00
|
|
|
|
// Copyright © 2020-2024 Natalia Portillo
|
2020-08-22 04:40:39 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
-->
|
2024-11-09 01:37:59 +00:00
|
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-08-22 04:40:39 +01:00
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-11-09 01:37:59 +00:00
|
|
|
|
xmlns:vm="clr-namespace:RomRepoMgr.ViewModels;assembly=RomRepoMgr"
|
2025-07-08 13:17:36 +01:00
|
|
|
|
xmlns:resources="clr-namespace:RomRepoMgr.Resources"
|
2024-11-09 01:37:59 +00:00
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
|
Width="480"
|
|
|
|
|
|
Height="90"
|
|
|
|
|
|
x:Class="RomRepoMgr.Views.ImportDat"
|
|
|
|
|
|
Icon="/Assets/avalonia-logo.ico"
|
|
|
|
|
|
CanResize="False"
|
2025-07-08 13:17:36 +01:00
|
|
|
|
Title="{x:Static resources:Localization.ImportDatTitle}"
|
2024-11-09 01:37:59 +00:00
|
|
|
|
WindowStartupLocation="CenterOwner">
|
2020-08-22 04:40:39 +01:00
|
|
|
|
<Design.DataContext>
|
|
|
|
|
|
<vm:ImportDatViewModel />
|
|
|
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<Border Padding="15">
|
2025-07-08 17:55:44 +01:00
|
|
|
|
<Grid RowDefinitions="Auto,auto,Auto,Auto">
|
2024-11-09 01:37:59 +00:00
|
|
|
|
<TextBlock Grid.Row="0"
|
2025-07-08 18:14:37 +01:00
|
|
|
|
Text="{Binding StatusMessage, Mode=OneWay}"
|
2024-11-09 01:37:59 +00:00
|
|
|
|
HorizontalAlignment="Center" />
|
|
|
|
|
|
<ProgressBar Grid.Row="1"
|
2025-07-08 18:14:37 +01:00
|
|
|
|
IsIndeterminate="{Binding IndeterminateProgress, Mode=OneWay}"
|
|
|
|
|
|
Maximum="{Binding MaximumValue, Mode=OneWay}"
|
|
|
|
|
|
Minimum="{Binding MinimumValue, Mode=OneWay}"
|
|
|
|
|
|
Value="{Binding CurrentValue, Mode=OneWay}"
|
2024-11-09 01:37:59 +00:00
|
|
|
|
HorizontalAlignment="Stretch"
|
2025-07-08 18:14:37 +01:00
|
|
|
|
IsVisible="{Binding ProgressVisible, Mode=OneWay}" />
|
2024-11-09 01:37:59 +00:00
|
|
|
|
<TextBlock Grid.Row="2"
|
2025-07-08 18:14:37 +01:00
|
|
|
|
Text="{Binding ErrorMessage, Mode=OneWay}"
|
2024-11-09 01:37:59 +00:00
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
|
Foreground="Red"
|
2025-07-08 18:14:37 +01:00
|
|
|
|
IsVisible="{Binding ErrorVisible, Mode=OneWay}" />
|
2024-11-09 01:37:59 +00:00
|
|
|
|
<Button Grid.Row="3"
|
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
|
VerticalAlignment="Center"
|
2025-07-08 18:14:37 +01:00
|
|
|
|
IsEnabled="{Binding CanClose, Mode=OneWay}"
|
|
|
|
|
|
Command="{Binding CloseCommand, Mode=OneWay}">
|
2025-07-08 13:17:36 +01:00
|
|
|
|
<TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
|
2020-08-22 04:40:39 +01:00
|
|
|
|
</Button>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Window>
|