|
|
@ -13,7 +13,7 @@ |
|
|
|
<local:ArrayConverter x:Key="ArrayConverter"/> |
|
|
|
</Window.Resources> |
|
|
|
|
|
|
|
<Grid Margin="10" Loaded="Grid_Loaded"> |
|
|
|
<Grid Margin="10" Loaded="Grid_Loaded" DataContext="{Binding Source={StaticResource ProcedureModel}}"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
@ -26,18 +26,22 @@ |
|
|
|
<ColumnDefinition Width="*"/> |
|
|
|
<ColumnDefinition Width="*"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<Canvas x:Name="signalGraph_Canvas" Background="AliceBlue" Grid.ColumnSpan="4" Margin="0,0,0,5"/> |
|
|
|
|
|
|
|
<Canvas x:Name="signalGraph_Canvas" Background="AliceBlue" Grid.ColumnSpan="4" Margin="0,0,0,5" ClipToBounds="True"/> |
|
|
|
<TextBlock x:Name="currentTime_TextBlock" Margin="0,0,5,5" Grid.Row="1" Grid.Column="1">Время выполения:</TextBlock> |
|
|
|
<TextBox x:Name="currentTime_TextBox" Margin="0,0,0,5" Grid.Row="1" Grid.Column="2"/> |
|
|
|
<TextBox x:Name="currentTime_TextBox" Margin="0,0,0,5" Grid.Row="1" Grid.Column="2" IsEnabled="False" |
|
|
|
Text="{Binding Path=CurrentTime}"/> |
|
|
|
<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"/> |
|
|
|
<TextBox x:Name="currentAmplitude_TextBox" Margin="0,0,0,5" Grid.Row="2" Grid.Column="2" IsEnabled="False" |
|
|
|
Text="{Binding Path=CurrentAmplitude}"/> |
|
|
|
<Button x:Name="start_Button" Width="120" Content="Запустить" Margin="5,0" Grid.Row="3" Grid.Column="0" |
|
|
|
Grid.ColumnSpan="2" Command="{StaticResource ProcedureModel}"> |
|
|
|
<Button.CommandParameter> |
|
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|
|
<Binding ElementName="start_Button"/> |
|
|
|
<Binding ElementName="signalGraph_Canvas"/> |
|
|
|
<Binding ElementName="currentTime_TextBox"/> |
|
|
|
<Binding ElementName="currentAmplitude_TextBox"/> |
|
|
|
</MultiBinding> |
|
|
|
</Button.CommandParameter> |
|
|
|
</Button> |
|
|
@ -47,6 +51,8 @@ |
|
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|
|
<Binding ElementName="pause_Button"/> |
|
|
|
<Binding ElementName="signalGraph_Canvas"/> |
|
|
|
<Binding ElementName="currentTime_TextBox"/> |
|
|
|
<Binding ElementName="currentAmplitude_TextBox"/> |
|
|
|
</MultiBinding> |
|
|
|
</Button.CommandParameter> |
|
|
|
</Button> |
|
|
|