|
|
@ -5,35 +5,40 @@ |
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
xmlns:local="clr-namespace:Signal_Generator" |
|
|
|
mc:Ignorable="d" |
|
|
|
Title="Signal Generator" Height="450" Width="489"> |
|
|
|
<Grid> |
|
|
|
<DockPanel LastChildFill="True" Margin="10,10,10,10"> |
|
|
|
<ListBox x:Name="signals_ListBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
|
|
|
DockPanel.Dock="Top" ItemsSource="{Binding}" Margin="0,0,0,20"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock> |
|
|
|
<TextBlock.Text> |
|
|
|
<MultiBinding StringFormat=" {0} {1}"> |
|
|
|
<Binding Path="typeToString"/> |
|
|
|
<Binding Path="paramsToString"/> |
|
|
|
</MultiBinding> |
|
|
|
</TextBlock.Text> |
|
|
|
</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
</DockPanel> |
|
|
|
<DockPanel x:Name="buttons_DockPanel" IsEnabled="True" Margin="10,0,10,10" VerticalAlignment="Bottom"> |
|
|
|
<DockPanel DockPanel.Dock="Left"> |
|
|
|
<Button x:Name="startProcedure_Button" Width="120" Content="Запустить процедуру" /> |
|
|
|
</DockPanel> |
|
|
|
<DockPanel HorizontalAlignment="Right"> |
|
|
|
<Button x:Name="addSignal_Button" Width="20" Content="+" Click="addSignal_Button_Click"/> |
|
|
|
<Button x:Name="removeSignal_Button" Width="20" Content="-"/> |
|
|
|
</DockPanel> |
|
|
|
</DockPanel> |
|
|
|
Title="Генератор сигналов" Height="450" Width="489"> |
|
|
|
<Grid Margin="10"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<ColumnDefinition Width="*"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<ListBox x:Name="signals_ListBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
|
|
|
DockPanel.Dock="Top" ItemsSource="{Binding}" Margin="0,0,0,5" Grid.ColumnSpan="4"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock> |
|
|
|
<TextBlock.Text> |
|
|
|
<MultiBinding StringFormat=" {0} {1}"> |
|
|
|
<Binding Path="typeToString"/> |
|
|
|
<Binding Path="paramsToString"/> |
|
|
|
</MultiBinding> |
|
|
|
</TextBlock.Text> |
|
|
|
</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
<Button x:Name="startProcedure_Button" Content="Запустить процедуру" Click="startProcedure_Button_Click" |
|
|
|
Grid.Row="2" Margin="5,0,0,0"/> |
|
|
|
<Button x:Name="addSignal_Button" Width="20" Content="+" Margin="0,0,5,0" Click="addSignal_Button_Click" Grid.Row="2" |
|
|
|
Grid.Column="2"/> |
|
|
|
<Button x:Name="removeSignal_Button" Width="20" Margin="0,0,5,0" Content="-" Grid.Row="2" Grid.Column="3"/> |
|
|
|
</Grid> |
|
|
|
</Window> |
|
|
|