private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (userClosing)
     {
         e.Cancel = true;
         Hide();
     }
     else
     {
         CNCCamera.CloseCurrentVideoSource();
     }
 }
Example #2
0
        public void Open()
        {
            if (initialOpen)
            {
                initialOpen = false;
                //this.Location = new Point(this.Owner.Location.X + 225, this.Owner.Location.Y + 35);
                //this.StartPosition = FormStartPosition.Manual;
            }

            Show();

            if (CNCCamera.OpenVideoSource())
            {
                IsVisibilityChanged?.Invoke();
            }
        }