|
@ -5,7 +5,7 @@ |
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
xmlns:local="clr-namespace:Signal_Generator" |
|
|
xmlns:local="clr-namespace:Signal_Generator" |
|
|
mc:Ignorable="d" |
|
|
mc:Ignorable="d" |
|
|
Title="MainWindow" Height="450" Width="489"> |
|
|
Title="Signal Generator" Height="450" Width="489"> |
|
|
<Grid> |
|
|
<Grid> |
|
|
<DockPanel LastChildFill="True" Margin="10,10,10,10"> |
|
|
<DockPanel LastChildFill="True" Margin="10,10,10,10"> |
|
|
<ListBox x:Name="signals_ListBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
|
|
<ListBox x:Name="signals_ListBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
|
@ -13,19 +13,26 @@ |
|
|
<ListBox.ItemTemplate> |
|
|
<ListBox.ItemTemplate> |
|
|
<DataTemplate> |
|
|
<DataTemplate> |
|
|
<StackPanel Orientation="Horizontal"> |
|
|
<StackPanel Orientation="Horizontal"> |
|
|
<TextBlock Text="{Binding Path=ParamsToString}"/> |
|
|
<TextBlock> |
|
|
|
|
|
<TextBlock.Text> |
|
|
|
|
|
<MultiBinding StringFormat=" {0} {1}"> |
|
|
|
|
|
<Binding Path="typeToString"/> |
|
|
|
|
|
<Binding Path="paramsToString"/> |
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
</TextBlock.Text> |
|
|
|
|
|
</TextBlock> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</DataTemplate> |
|
|
</DataTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
<DockPanel x:Name="buttons_DockPanel" IsEnabled="False" Margin="10,0,10,10" VerticalAlignment="Bottom"> |
|
|
<DockPanel x:Name="buttons_DockPanel" IsEnabled="True" Margin="10,0,10,10" VerticalAlignment="Bottom"> |
|
|
<DockPanel DockPanel.Dock="Left"> |
|
|
<DockPanel DockPanel.Dock="Left"> |
|
|
<Button x:Name="startProcedure_Button" Width="120" Content="Запустить процедуру" /> |
|
|
<Button x:Name="startProcedure_Button" Width="120" Content="Запустить процедуру" /> |
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
<DockPanel HorizontalAlignment="Right"> |
|
|
<DockPanel HorizontalAlignment="Right"> |
|
|
<Button x:Name="addSignal_Button" Width="20" Content="+"/> |
|
|
<Button x:Name="addSignal_Button" Width="20" Content="+" Click="addSignal_Button_Click"/> |
|
|
<Button x:Name="removeSignal_Button" Width="20" Content="-" /> |
|
|
<Button x:Name="removeSignal_Button" Width="20" Content="-"/> |
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
</DockPanel> |
|
|
</Grid> |
|
|
</Grid> |
|
|