示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            Timer       = new DispatcherTimer();
            Timer.Tick += ProcessFrame;
            Connection  = new TcpConnection();

            ProcessOptionsWindow = new ProcessOptionsWindow();
            NetworkOptionsWindow = new NetworkOptionsWindow();
        }
示例#2
0
        private void WindowClosing(object sender, CancelEventArgs e)
        {
            if (MediaHandler != null)
            {
                MediaHandler.Dispose();
            }

            if (Connection != null)
            {
                Connection.Close();
            }

            ProcessOptionsWindow.Close();
        }
示例#3
0
 private void MenuItemProcessingSettingsClick(object sender, RoutedEventArgs e)
 {
     ProcessOptionsWindow.ShowDialog();
 }