Interaction logic for AddNewCameraViewer.xaml
Inheritance: System.Windows.Controls.UserControl
 private void menuAddCameraViewer_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddNewCameraViewer csi = new AddNewCameraViewer(gCurrentScreen);
     addControl.Width = csi.Width + 40;
     addControl.Height = csi.Height + 40;
     addControl.Content = csi;
     addControl.Show();
     Load_Screen(gCurrentScreen);
 }
 private void VideoStreamViewer_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false || gCurrentUser == "") return;
     _timer.Stop();
     VideoStreamViewer vidviewr = (VideoStreamViewer)sender;
     AddControl addControl = new AddControl();
     AddNewCameraViewer cmi = new AddNewCameraViewer(gCurrentScreen, vidviewr.screenObject.Name, vidviewr.screenObject.Name);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }