|
@ -13,7 +13,7 @@ |
|
|
<local:ArrayConverter x:Key="ArrayConverter"/> |
|
|
<local:ArrayConverter x:Key="ArrayConverter"/> |
|
|
</Window.Resources> |
|
|
</Window.Resources> |
|
|
|
|
|
|
|
|
<Grid Margin="10" Loaded="Grid_Loaded"> |
|
|
<Grid Margin="10" Loaded="Grid_Loaded" DataContext="{Binding Source={StaticResource ProcedureModel}}"> |
|
|
<Grid.RowDefinitions> |
|
|
<Grid.RowDefinitions> |
|
|
<RowDefinition Height="*"/> |
|
|
<RowDefinition Height="*"/> |
|
|
<RowDefinition Height="Auto"/> |
|
|
<RowDefinition Height="Auto"/> |
|
@ -27,17 +27,21 @@ |
|
|
<ColumnDefinition Width="*"/> |
|
|
<ColumnDefinition Width="*"/> |
|
|
</Grid.ColumnDefinitions> |
|
|
</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> |
|
|
<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> |
|
|
<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" |
|
|
<Button x:Name="start_Button" Width="120" Content="Запустить" Margin="5,0" Grid.Row="3" 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}"> |
|
|
<Binding ElementName="start_Button"/> |
|
|
<Binding ElementName="start_Button"/> |
|
|
<Binding ElementName="signalGraph_Canvas"/> |
|
|
<Binding ElementName="signalGraph_Canvas"/> |
|
|
|
|
|
<Binding ElementName="currentTime_TextBox"/> |
|
|
|
|
|
<Binding ElementName="currentAmplitude_TextBox"/> |
|
|
</MultiBinding> |
|
|
</MultiBinding> |
|
|
</Button.CommandParameter> |
|
|
</Button.CommandParameter> |
|
|
</Button> |
|
|
</Button> |
|
@ -47,6 +51,8 @@ |
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|
<MultiBinding Converter="{StaticResource ArrayConverter}"> |
|
|
<Binding ElementName="pause_Button"/> |
|
|
<Binding ElementName="pause_Button"/> |
|
|
<Binding ElementName="signalGraph_Canvas"/> |
|
|
<Binding ElementName="signalGraph_Canvas"/> |
|
|
|
|
|
<Binding ElementName="currentTime_TextBox"/> |
|
|
|
|
|
<Binding ElementName="currentAmplitude_TextBox"/> |
|
|
</MultiBinding> |
|
|
</MultiBinding> |
|
|
</Button.CommandParameter> |
|
|
</Button.CommandParameter> |
|
|
</Button> |
|
|
</Button> |
|
|