|
| 1 | +<Window x:Class="Tender.Desktop.Views.MigrateDataRootDialog" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + Title="資料搬移" |
| 5 | + Height="360" Width="560" |
| 6 | + WindowStartupLocation="CenterOwner" |
| 7 | + ShowInTaskbar="False" |
| 8 | + ResizeMode="NoResize" |
| 9 | + Background="{StaticResource BgMainBrush}" |
| 10 | + FontFamily="Microsoft JhengHei UI"> |
| 11 | + <DockPanel> |
| 12 | + <Border DockPanel.Dock="Top" Padding="18,14" |
| 13 | + Background="{StaticResource BgCardBrush}" |
| 14 | + BorderBrush="{StaticResource BorderBrush}" |
| 15 | + BorderThickness="0,0,0,1"> |
| 16 | + <DockPanel> |
| 17 | + <Border Width="3" Background="{StaticResource PrimaryBrush}" CornerRadius="1.5" Margin="0,2,10,2" /> |
| 18 | + <TextBlock Text="變更資料儲存位置" |
| 19 | + Style="{StaticResource HeaderTextStyle}" |
| 20 | + FontSize="16" VerticalAlignment="Center" /> |
| 21 | + </DockPanel> |
| 22 | + </Border> |
| 23 | + |
| 24 | + <Border DockPanel.Dock="Bottom" Padding="14" |
| 25 | + Background="{StaticResource BgCardBrush}" |
| 26 | + BorderBrush="{StaticResource BorderBrush}" |
| 27 | + BorderThickness="0,1,0,0"> |
| 28 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
| 29 | + <Button Content="取消" Padding="22,5" Margin="0,0,8,0" |
| 30 | + IsCancel="True" Click="Cancel_Click" /> |
| 31 | + <Button Content="保留舊資料" Padding="14,5" Margin="0,0,8,0" |
| 32 | + Click="Keep_Click" /> |
| 33 | + <Button Content="搬移到新位置" Padding="14,5" |
| 34 | + IsDefault="True" Click="Migrate_Click" |
| 35 | + Style="{StaticResource PrimaryButtonStyle}" /> |
| 36 | + </StackPanel> |
| 37 | + </Border> |
| 38 | + |
| 39 | + <StackPanel Margin="20,18,20,18"> |
| 40 | + <TextBlock TextWrapping="Wrap" |
| 41 | + Foreground="{StaticResource TextPrimaryBrush}" |
| 42 | + FontSize="13" Margin="0,0,0,14"> |
| 43 | + 即將變更資料儲存位置。請選擇如何處理舊位置下的現有資料: |
| 44 | + </TextBlock> |
| 45 | + |
| 46 | + <Border Background="{StaticResource BgCardBrush}" |
| 47 | + BorderBrush="{StaticResource BorderBrush}" |
| 48 | + BorderThickness="1" CornerRadius="5" |
| 49 | + Padding="12,10" Margin="0,0,0,8"> |
| 50 | + <Grid> |
| 51 | + <Grid.ColumnDefinitions> |
| 52 | + <ColumnDefinition Width="64" /> |
| 53 | + <ColumnDefinition Width="*" /> |
| 54 | + </Grid.ColumnDefinitions> |
| 55 | + <TextBlock Grid.Column="0" Text="舊位置" |
| 56 | + Foreground="{StaticResource TextSecondaryBrush}" |
| 57 | + FontSize="12" VerticalAlignment="Top" Margin="0,2,8,0" /> |
| 58 | + <TextBlock x:Name="OldRootText" Grid.Column="1" |
| 59 | + Foreground="{StaticResource TextPrimaryBrush}" |
| 60 | + FontSize="12" TextWrapping="Wrap" /> |
| 61 | + </Grid> |
| 62 | + </Border> |
| 63 | + |
| 64 | + <Border Background="{StaticResource PrimaryLightBrush}" |
| 65 | + BorderBrush="{StaticResource PrimaryBrush}" |
| 66 | + BorderThickness="1" CornerRadius="5" |
| 67 | + Padding="12,10" Margin="0,0,0,14"> |
| 68 | + <Grid> |
| 69 | + <Grid.ColumnDefinitions> |
| 70 | + <ColumnDefinition Width="64" /> |
| 71 | + <ColumnDefinition Width="*" /> |
| 72 | + </Grid.ColumnDefinitions> |
| 73 | + <TextBlock Grid.Column="0" Text="新位置" |
| 74 | + Foreground="{StaticResource PrimaryDarkBrush}" |
| 75 | + FontSize="12" FontWeight="SemiBold" |
| 76 | + VerticalAlignment="Top" Margin="0,2,8,0" /> |
| 77 | + <TextBlock x:Name="NewRootText" Grid.Column="1" |
| 78 | + Foreground="{StaticResource TextPrimaryBrush}" |
| 79 | + FontSize="12" FontWeight="SemiBold" TextWrapping="Wrap" /> |
| 80 | + </Grid> |
| 81 | + </Border> |
| 82 | + |
| 83 | + <Border Background="{StaticResource WarningLightBrush}" |
| 84 | + BorderBrush="{StaticResource WarningBrush}" |
| 85 | + BorderThickness="1" CornerRadius="5" |
| 86 | + Padding="12,8"> |
| 87 | + <TextBlock Foreground="{StaticResource TextSecondaryBrush}" |
| 88 | + TextWrapping="Wrap" FontSize="12"> |
| 89 | + <Run Text="搬移到新位置" FontWeight="SemiBold" Foreground="{StaticResource PrimaryDarkBrush}" /> |
| 90 | + <Run Text=":複製整棵資料夾後刪除舊位置。" /> |
| 91 | + <LineBreak /> |
| 92 | + <Run Text="保留舊資料" FontWeight="SemiBold" Foreground="{StaticResource TextPrimaryBrush}" /> |
| 93 | + <Run Text=":舊位置不動,新位置從零開始。" /> |
| 94 | + </TextBlock> |
| 95 | + </Border> |
| 96 | + </StackPanel> |
| 97 | + </DockPanel> |
| 98 | +</Window> |
0 commit comments