|
@ -9,14 +9,14 @@ |
|
|
Title="Pores" Height="450" Width="800"> |
|
|
Title="Pores" Height="450" Width="800"> |
|
|
<Grid> |
|
|
<Grid> |
|
|
<Grid.ColumnDefinitions> |
|
|
<Grid.ColumnDefinitions> |
|
|
<ColumnDefinition Width="1*"/> |
|
|
<ColumnDefinition Width="2*"/> |
|
|
<ColumnDefinition Width="1*"/> |
|
|
<ColumnDefinition Width="1*"/> |
|
|
<ColumnDefinition Width="1*"/> |
|
|
<ColumnDefinition Width="1*"/> |
|
|
</Grid.ColumnDefinitions> |
|
|
</Grid.ColumnDefinitions> |
|
|
<Grid.RowDefinitions> |
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="2*"/> |
|
|
<RowDefinition Height="1*"/> |
|
|
<RowDefinition Height="1*"/> |
|
|
<RowDefinition Height="1*"/> |
|
|
<RowDefinition Height="1*"/> |
|
|
<RowDefinition Height="60"/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -33,14 +33,14 @@ |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" Margin="20 0"> |
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" Grid.RowSpan="2" Margin="20 0"> |
|
|
<TextBlock Text="Результаты работы"/> |
|
|
<TextBlock Text="Результаты работы"/> |
|
|
<TextBlock Text="Количество пор: "/> |
|
|
<TextBlock Text="Количество пор: "/> |
|
|
<TextBox Text="{Binding GenController.PoreCoordinates.Count, Mode=OneWay}" IsEnabled="False"/> |
|
|
<TextBox Text="{Binding GenController.PoreCoordinates.Count, Mode=OneWay}" IsEnabled="False"/> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="2" Grid.Row="1" VerticalAlignment="Center"> |
|
|
<StackPanel Grid.Column="2" Grid.Row="1" VerticalAlignment="Center"> |
|
|
<ComboBox ItemsSource="{Binding Localizations}" SelectedItem="{Binding SelectedLocalization}"></ComboBox> |
|
|
<ComboBox ItemsSource="{Binding Localizations}" SelectedItem="{Binding SelectedLocalization}" HorizontalAlignment="Left" Width="198"></ComboBox> |
|
|
<ContentControl Content="{Binding SelectedLocalization}"> |
|
|
<ContentControl Content="{Binding SelectedLocalization}"> |
|
|
<ContentControl.Resources> |
|
|
<ContentControl.Resources> |
|
|
<DataTemplate DataType="{x:Type localizations:NormalLocalization}"> |
|
|
<DataTemplate DataType="{x:Type localizations:NormalLocalization}"> |
|
@ -56,8 +56,28 @@ |
|
|
</ContentControl> |
|
|
</ContentControl> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Grid.Row="2" VerticalAlignment="Bottom"> |
|
|
|
|
|
<Button Content="Сгенерировать поры" Command="{Binding GeneratePoresCommand}" Grid.Row="2"/> |
|
|
|
|
|
<Button Content="Выборка в файл" Command="{Binding GenAndSaveBatchCommand}" |
|
|
|
|
|
Grid.Row="2" Grid.Column="1"/> |
|
|
|
|
|
<Button Content="Сохранить в файл" Command="{Binding SaveToFileCommand}" Grid.Row="2" Grid.Column="1"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="1"> |
|
|
|
|
|
<TextBlock Text="Параметры единичной выборки: "/> |
|
|
|
|
|
<TextBlock Text="Координаты центра (Х): "/> |
|
|
|
|
|
<TextBox Text="{Binding BatchCenter.X}"/> |
|
|
|
|
|
<TextBlock Text="Координаты центра (Y): "/> |
|
|
|
|
|
<TextBox Text="{Binding BatchCenter.Y}"/> |
|
|
|
|
|
<TextBlock Text="Координаты центра (Z): "/> |
|
|
|
|
|
<TextBox Text="{Binding BatchCenter.Z}"/> |
|
|
|
|
|
<TextBlock Text="Ширина: "/> |
|
|
|
|
|
<TextBox Text="{Binding BatchWidth}"/> |
|
|
|
|
|
<TextBlock Text="Глубина:"/> |
|
|
|
|
|
<TextBox Text="{Binding BatchDepth}"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button Content="Сгенерировать поры" Command="{Binding GeneratePoresCommand}" Grid.Row="2"/> |
|
|
|
|
|
<Button Content="Сохранить в файл" Command="{Binding SaveToFileCommand}" Grid.Row="2" Grid.Column="1"/> |
|
|
|
|
|
</Grid> |
|
|
</Grid> |
|
|
</Window> |
|
|
</Window> |
|
|