Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
     viewModel = new ControlPanelViewModel(this.waveForm, this.analyzer);
     this.controlPanel.DataContext = viewModel;
 }
 public MainWindow()
 {
     InitializeComponent();
     Closing += MainWindow_Closing;
     viewModel = new ControlPanelViewModel(null, analyzer);
     DataContext = viewModel;
 }
Beispiel #3
0
 public MainWindow()
 {
     InitializeComponent();
     this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
     viewModel     = new ControlPanelViewModel(this.waveForm, this.analyzer);
     this.controlPanel.DataContext = viewModel;
 }
Beispiel #4
0
        private void ConnectToStreamSource()
        {
            ControlPanelViewModel viewModel = DataContext as ControlPanelViewModel;

            if (viewModel != null)
            {
                viewModel.ConnectToStreamSource();
            }
        }