MainWindow.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <Window x:Class="DbReload.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:DbReload"
  7. mc:Ignorable="d"
  8. Title="PRS Recovery Utility" Height="450" Width="800">
  9. <Window.DataContext>
  10. <local:MainViewModel />
  11. </Window.DataContext>
  12. <Grid Margin="4">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="*" />
  16. <RowDefinition Height="Auto" />
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="Auto"/>
  20. <ColumnDefinition Width="*"/>
  21. <ColumnDefinition Width="Auto"/>
  22. </Grid.ColumnDefinitions>
  23. <Label Grid.Row="0"
  24. Grid.Column="0"
  25. Content="SQLite File" />
  26. <TextBox Grid.Row="0"
  27. Grid.Column="1"
  28. IsReadOnly="True"
  29. Text="{Binding SqLiteFile}"
  30. VerticalContentAlignment="Center"
  31. Background="LightYellow"
  32. Margin="0,0,4,4"/>
  33. <Button Grid.Row="0"
  34. Grid.Column="2"
  35. Content="Select"
  36. Command="{Binding CreateSQLiteFileCommand}"
  37. Margin="0,0,0,4"
  38. Padding="5"/>
  39. <Label Grid.Row="1"
  40. Grid.Column="0"
  41. Content="Log Folder" />
  42. <ListBox Grid.Row="1"
  43. Grid.Column="1"
  44. ItemsSource="{Binding LogFiles}"
  45. Background="LightYellow"
  46. Margin="0,0,4,4"/>
  47. <Button Grid.Row="1"
  48. Grid.Column="2"
  49. Content="Select"
  50. Command="{Binding SelectLogFilesCommand}"
  51. Margin="0,0,0,4"
  52. Padding="5"/>
  53. <Label Grid.Row="2"
  54. Grid.Column="0"
  55. Content="Progress" />
  56. <TextBox Grid.Row="2"
  57. Grid.Column="1"
  58. Text="{Binding Progress}"
  59. VerticalContentAlignment="Center"
  60. IsReadOnly="True"
  61. Background="WhiteSmoke"
  62. Margin="0,0,4,0"/>
  63. <Button Grid.Row="2"
  64. Grid.Column="2"
  65. Content="Go!"
  66. Command="{Binding GoCommand}"
  67. Padding="5"/>
  68. </Grid>
  69. </Window>