public MainWindow() { InitializeComponent(); Timer = new DispatcherTimer(); Timer.Tick += ProcessFrame; Connection = new TcpConnection(); ProcessOptionsWindow = new ProcessOptionsWindow(); NetworkOptionsWindow = new NetworkOptionsWindow(); }
private void WindowClosing(object sender, CancelEventArgs e) { if (MediaHandler != null) { MediaHandler.Dispose(); } if (Connection != null) { Connection.Close(); } ProcessOptionsWindow.Close(); }
private void MenuItemProcessingSettingsClick(object sender, RoutedEventArgs e) { ProcessOptionsWindow.ShowDialog(); }