From f861b33f86b3979f37e07484537cb1817378d5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0?= Date: Thu, 8 Nov 2018 18:06:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D1=81=D0=B8=D0=B3=D0=BD=D0=B0=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=BD=D0=B0=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=BE?= =?UTF-8?q?=D0=BC=20=D0=BE=D0=BA=D0=BD=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Signal Generator/AddSignalWindow.xaml.cs | 4 +++ Signal Generator/MainWindow.xaml | 5 +-- Signal Generator/MainWindow.xaml.cs | 41 ++++++++++++------------ Signal Generator/Signal/MultiSignal.cs | 20 ++++++------ 4 files changed, 37 insertions(+), 33 deletions(-) diff --git a/Signal Generator/AddSignalWindow.xaml.cs b/Signal Generator/AddSignalWindow.xaml.cs index 1f02cde..b6a0b20 100644 --- a/Signal Generator/AddSignalWindow.xaml.cs +++ b/Signal Generator/AddSignalWindow.xaml.cs @@ -21,9 +21,13 @@ namespace Signal_Generator public partial class AddSignalWindow : Window { ObservableCollection signalProps = new ObservableCollection(); + ObservableCollection typesOfSignal = new ObservableCollection(); public AddSignalWindow() { InitializeComponent(); + typesOfSignal.Add(new SinusoidalSignal(0, 0)); + typesOfSignal.Add(new FmSignal(0, 0, 0)); + signalType_ComboBox.ItemsSource = typesOfSignal; signalProps_DataGrid.ItemsSource = signalProps; } diff --git a/Signal Generator/MainWindow.xaml b/Signal Generator/MainWindow.xaml index 96d1b59..99a2495 100644 --- a/Signal Generator/MainWindow.xaml +++ b/Signal Generator/MainWindow.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Signal_Generator" mc:Ignorable="d" - Title="Генератор сигналов" Height="450" Width="489"> + Title="Генератор сигналов" Height="450" Width="600"> @@ -39,6 +39,7 @@ Grid.Row="2" Margin="5,0,0,0"/>