|
@ -3,8 +3,7 @@ |
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
xmlns:localizations="clr-namespace:Pores.Models.Localizations" |
|
|
xmlns:spreads="clr-namespace:Pores.Models.Spreads" |
|
|
xmlns:local="clr-namespace:Pores" |
|
|
|
|
|
mc:Ignorable="d" |
|
|
mc:Ignorable="d" |
|
|
Title="Pores" Height="600" Width="1000"> |
|
|
Title="Pores" Height="600" Width="1000"> |
|
|
<Grid IsEnabled="{Binding EnableControlsFlag}"> |
|
|
<Grid IsEnabled="{Binding EnableControlsFlag}"> |
|
@ -26,44 +25,42 @@ |
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="1" Margin="5 0"> |
|
|
<DockPanel Grid.Column="1" Grid.RowSpan="3" VerticalAlignment="Stretch" Margin="5 0"> |
|
|
<TextBlock Text="Параметры модели"/> |
|
|
<StackPanel DockPanel.Dock="Top" Margin="5 0"> |
|
|
<TextBlock Text="Ширина: "/> |
|
|
<TextBlock Text="Настройки моделирования" HorizontalAlignment="Center" FontWeight="SemiBold" Margin="0 5"/> |
|
|
<TextBox Text="{Binding CurrentMaterial.Width}"/> |
|
|
<TextBlock Text="Параметры модели материала: "/> |
|
|
<TextBlock Text="Глубина: "/> |
|
|
<TextBlock Text="Ширина: "/> |
|
|
<TextBox Text="{Binding CurrentMaterial.Depth}"/> |
|
|
<TextBox Text="{Binding CurrentMaterial.Width}"/> |
|
|
<TextBlock Text="Высота: "/> |
|
|
<TextBlock Text="Глубина: "/> |
|
|
<TextBox Text="{Binding CurrentMaterial.Height}"/> |
|
|
<TextBox Text="{Binding CurrentMaterial.Depth}"/> |
|
|
<TextBlock Text="Разрешение каждого из трех измерений (общее количество точек = n^3): " TextWrapping="Wrap"/> |
|
|
<TextBlock Text="Высота: "/> |
|
|
<TextBox Text="{Binding CurrentMaterial.NumberOfPores}"/> |
|
|
<TextBox Text="{Binding CurrentMaterial.Height}"/> |
|
|
</StackPanel> |
|
|
<TextBlock Text="Разрешение каждого из трех измерений (общее количество точек = n^3): " TextWrapping="Wrap"/> |
|
|
|
|
|
<TextBox Text="{Binding CurrentMaterial.NumberOfPores}"/> |
|
|
|
|
|
<TextBlock Text="Параметры модели распределения:"/> |
|
|
<StackPanel VerticalAlignment="Center" Grid.Column="1" Grid.Row="2" Grid.RowSpan="2" Margin="5 0"> |
|
|
<ComboBox ItemsSource="{Binding Spreads}" SelectedItem="{Binding SelectedSpread}" HorizontalAlignment="Left" Width="198"></ComboBox> |
|
|
<TextBlock Text="Результаты работы"/> |
|
|
<ContentControl Content="{Binding SelectedSpread}"> |
|
|
<TextBlock Text="Количество пор: "/> |
|
|
<ContentControl.Resources> |
|
|
<TextBox Text="{Binding Pores.Count, Mode=OneWay}" IsEnabled="False"/> |
|
|
<DataTemplate DataType="{x:Type spreads:NormalSpread}"> |
|
|
</StackPanel> |
|
|
<StackPanel> |
|
|
|
|
|
<TextBlock Text="Сигма: "/> |
|
|
|
|
|
<TextBox Text="{Binding sigma}"/> |
|
|
|
|
|
<TextBlock Text="Мю: "/> |
|
|
|
|
|
<TextBox Text="{Binding mu}"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ContentControl.Resources> |
|
|
|
|
|
</ContentControl> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="5 0"> |
|
|
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Margin="5 10"> |
|
|
<TextBlock Text="Параметры модели распределения:"/> |
|
|
<TextBlock Text="Результаты работы"/> |
|
|
<ComboBox ItemsSource="{Binding Localizations}" SelectedItem="{Binding SelectedLocalization}" HorizontalAlignment="Left" Width="198"></ComboBox> |
|
|
<TextBlock Text="Количество пор: "/> |
|
|
<ContentControl Content="{Binding SelectedLocalization}"> |
|
|
<TextBox Text="{Binding Pores.Count, Mode=OneWay}" IsEnabled="False"/> |
|
|
<ContentControl.Resources> |
|
|
</StackPanel> |
|
|
<DataTemplate DataType="{x:Type localizations:NormalLocalization}"> |
|
|
</DockPanel> |
|
|
<StackPanel> |
|
|
|
|
|
<TextBlock Text="Сигма: "/> |
|
|
|
|
|
<TextBox Text="{Binding sigma}"/> |
|
|
|
|
|
<TextBlock Text="Мю: "/> |
|
|
|
|
|
<TextBox Text="{Binding mu}"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ContentControl.Resources> |
|
|
|
|
|
</ContentControl> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<DockPanel Grid.Column="2" Grid.RowSpan="3" Margin="5 0"> |
|
|
<DockPanel Grid.Column="2" Grid.RowSpan="3" Margin="5 0"> |
|
|
|
|
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom"> |
|
|
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom"> |
|
|
<Button Content="Сгенерировать модель" Command="{Binding GeneratePoresCommand}"/> |
|
|
<Button Content="Сгенерировать модель" Command="{Binding GeneratePoresCommand}"/> |
|
|
<Button Content="Сохранить выборку из модели в файл" Command="{Binding GenAndSaveBatchCommand}"/> |
|
|
<Button Content="Сохранить выборку из модели в файл" Command="{Binding GenAndSaveBatchCommand}"/> |
|
@ -105,10 +102,6 @@ |
|
|
<TextBlock TextWrapping="Wrap" Text="Предоставить отчет по количеству пор, соединенных между собой"/> |
|
|
<TextBlock TextWrapping="Wrap" Text="Предоставить отчет по количеству пор, соединенных между собой"/> |
|
|
</CheckBox> |
|
|
</CheckBox> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
</Grid> |
|
|
</Window> |
|
|
</Window> |
|
|