/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += this.OnSuspending; ApplicationModel = new Model(); //MessageFakeFactory.Start(); }
public Sampler() { InitializeComponent(); model = App.ApplicationModel; InitializeComponent(); DataContext = model; model.DeviceDisconnected += model_DeviceDisconnected; model.SetControls(); dispatcherTimer = new DispatcherTimer(); dispatcherTimer.Tick += delegate { if (dispatcherTimer == null) return; model.GetVolume(); }; dispatcherTimer.Interval = new TimeSpan(0, 0, 1); dispatcherTimer.Start(); }
public Search() { InitializeComponent(); model = App.ApplicationModel; DataContext = ForView.Wrap(model); }
public Main() { model = App.ApplicationModel; InitializeComponent(); DataContext = model; }