|
@ -11,6 +11,7 @@ |
|
|
<Window.Resources> |
|
|
<Window.Resources> |
|
|
<local:ProcedureModel x:Key="ProcedureModel"/> |
|
|
<local:ProcedureModel x:Key="ProcedureModel"/> |
|
|
<local:ArrayConverter x:Key="ArrayConverter"/> |
|
|
<local:ArrayConverter x:Key="ArrayConverter"/> |
|
|
|
|
|
<local:StringDoubleConverter x:Key="StringDoubleConverter"/> |
|
|
</Window.Resources> |
|
|
</Window.Resources> |
|
|
|
|
|
|
|
|
<Grid Margin="10" Loaded="Grid_Loaded" DataContext="{Binding Source={StaticResource ProcedureModel}}"> |
|
|
<Grid Margin="10" Loaded="Grid_Loaded" DataContext="{Binding Source={StaticResource ProcedureModel}}"> |
|
@ -19,6 +20,7 @@ |
|
|
<RowDefinition Height="Auto"/> |
|
|
<RowDefinition Height="Auto"/> |
|
|
<RowDefinition Height="Auto"/> |
|
|
<RowDefinition Height="Auto"/> |
|
|
<RowDefinition Height="Auto"/> |
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
</Grid.RowDefinitions> |
|
|
</Grid.RowDefinitions> |
|
|
<Grid.ColumnDefinitions> |
|
|
<Grid.ColumnDefinitions> |
|
|
<ColumnDefinition Width="*"/> |
|
|
<ColumnDefinition Width="*"/> |
|
@ -34,7 +36,10 @@ |
|
|
<TextBlock x:Name="currentAmplitude_TextBlock" Margin="0,0,5,5" Grid.Row="2" Grid.Column="1">Текущий сигнал:</TextBlock> |
|
|
<TextBlock x:Name="currentAmplitude_TextBlock" Margin="0,0,5,5" Grid.Row="2" Grid.Column="1">Текущий сигнал:</TextBlock> |
|
|
<TextBox x:Name="currentAmplitude_TextBox" Margin="0,0,0,5" Grid.Row="2" Grid.Column="2" IsEnabled="False" |
|
|
<TextBox x:Name="currentAmplitude_TextBox" Margin="0,0,0,5" Grid.Row="2" Grid.Column="2" IsEnabled="False" |
|
|
Text="{Binding Path=CurrentAmplitude}"/> |
|
|
Text="{Binding Path=CurrentAmplitude}"/> |
|
|
<Button x:Name="start_Button" Width="120" Content="Запустить" Margin="5,0" Grid.Row="3" Grid.Column="0" |
|
|
<TextBlock x:Name="duration_TextBlock" Margin="0,0,5,5" Grid.Row="3" Grid.Column="1">Длительность (мс):</TextBlock> |
|
|
|
|
|
<TextBox x:Name="duration_TextBox" Margin="0,0,0,5" Grid.Row="3" Grid.Column="2" |
|
|
|
|
|
Text="{Binding Duration, Converter={StaticResource StringDoubleConverter}, Mode=TwoWay}"/> |
|
|
|
|
|
<Button x:Name="start_Button" Width="120" Content="Запустить" Margin="5,0" Grid.Row="4" Grid.Column="0" |
|
|
Grid.ColumnSpan="2" Command="{StaticResource ProcedureModel}"> |
|
|
Grid.ColumnSpan="2" Command="{StaticResource ProcedureModel}"> |
|
|
<Button.CommandParameter> |
|
|
<Button.CommandParameter> |
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
@ -45,7 +50,7 @@ |
|
|
</MultiBinding> |
|
|
</MultiBinding> |
|
|
</Button.CommandParameter> |
|
|
</Button.CommandParameter> |
|
|
</Button> |
|
|
</Button> |
|
|
<Button x:Name="pause_Button" Width="120" Content="Приостановить" Margin="5,0" Grid.Row="3" Grid.Column="2" |
|
|
<Button x:Name="pause_Button" Width="120" Content="Приостановить" Margin="5,0" Grid.Row="4" Grid.Column="2" |
|
|
Grid.ColumnSpan="2" Command="{StaticResource ProcedureModel}"> |
|
|
Grid.ColumnSpan="2" Command="{StaticResource ProcedureModel}"> |
|
|
<Button.CommandParameter> |
|
|
<Button.CommandParameter> |
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|