private void menuAddUserControl_Click(object sender, RoutedEventArgs e)
        {
            AddControl            addControl = new AddControl();
            AddControlUserControl csi        = new AddControlUserControl(gCurrentScreen);

            addControl.Width   = csi.Width + 80;
            addControl.Height  = csi.Height + 80;
            addControl.Content = csi;
            addControl.Show();
        }
        private void menuAddMethodImage_Click(object sender, RoutedEventArgs e)
        {
            AddControl            addControl = new AddControl();
            AddControlMethodImage cmi        = new AddControlMethodImage(gCurrentScreen);

            addControl.Content = cmi;
            addControl.Width   = cmi.Width + 80;
            addControl.Height  = cmi.Height + 80;
            addControl.Show();
        }
        private void menuAddCameraViewer_Click(object sender, RoutedEventArgs e)
        {
            AddControl         addControl = new AddControl();
            AddNewCameraViewer csi        = new AddNewCameraViewer(gCurrentScreen);

            addControl.Width   = csi.Width + 40;
            addControl.Height  = csi.Height + 40;
            addControl.Content = csi;
            addControl.Show();
        }
        private void menuAddNavImage_Click(object sender, RoutedEventArgs e)
        {
            AddControl addControl         = new AddControl();
            AddControlNavigationImage cni = new AddControlNavigationImage(gCurrentScreen);

            addControl.Content = cni;
            addControl.Width   = cni.Width + 80;
            addControl.Height  = cni.Height + 80;
            addControl.Show();
        }
Пример #5
0
        private void menuAddClickImage_Click(object sender, RoutedEventArgs e)
        {
            AddControl           addControl = new AddControl();
            AddControlClickImage cmi        = new AddControlClickImage(gCurrentScreen);

            addControl.Content = cmi;
            addControl.Width   = cmi.Width + 80;
            addControl.Height  = cmi.Height + 80;
            addControl.Owner   = this;
            addControl.ShowDialog();
            Load_Screen(gCurrentScreen);
        }
Пример #6
0
        private void Property_Label_MouseRightButtonDown(object sender, MouseEventArgs e)
        {
            if (editMode == false)
            {
                return;
            }
            PropertyLabel           propLabel  = (PropertyLabel)sender;
            AddControl              addControl = new AddControl();
            AddControlPropertyLabel cmi        = new AddControlPropertyLabel(gCurrentScreen, propLabel.screenObject.Name);

            addControl.Content = cmi;
            addControl.Width   = cmi.Width + 80;
            addControl.Height  = cmi.Height + 80;
            addControl.Owner   = this;
            addControl.ShowDialog();
            Load_Screen(gCurrentScreen);
        }
Пример #7
0
        private void Navigaton_Image_MouseRightButtonDown(object sender, MouseEventArgs e)
        {
            if (editMode == false)
            {
                return;
            }
            NavigationImage           navCtrl    = (NavigationImage)sender;
            AddControl                addControl = new AddControl();
            AddControlNavigationImage cmi        = new AddControlNavigationImage(gCurrentScreen, navCtrl.screenObject.Name);

            addControl.Content = cmi;
            addControl.Width   = cmi.Width + 80;
            addControl.Height  = cmi.Height + 80;
            addControl.Owner   = this;
            addControl.ShowDialog();
            Load_Screen(gCurrentScreen);
        }
Пример #8
0
        private void Broswer_Control_MouseRightButtonDown(object sender, MouseEventArgs e)
        {
            if (editMode == false)
            {
                return;
            }
            ClickImage        bfCtrl     = (ClickImage)sender;
            AddControl        addControl = new AddControl();
            AddControlBrowser cmi        = new AddControlBrowser(gCurrentScreen, bfCtrl.screenObject.Name);

            addControl.Content = cmi;
            addControl.Width   = cmi.Width + 80;
            addControl.Height  = cmi.Height + 80;
            addControl.Owner   = this;
            addControl.ShowDialog();
            Load_Screen(gCurrentScreen);
        }
 private void menuAddUserControl_Click(object sender, RoutedEventArgs e)
 {
     AddControl addControl = new AddControl();
     AddControlUserControl csi = new AddControlUserControl(gCurrentScreen);
     addControl.Width = csi.Width + 80;
     addControl.Height = csi.Height + 80;
     addControl.Content = csi;
     addControl.Show();
 }
 private void menuAddMethodImage_Click(object sender, RoutedEventArgs e)
 {
     AddControl addControl = new AddControl();
     AddControlMethodImage cmi = new AddControlMethodImage(gCurrentScreen);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Show();
 }
 private void menuAddNavImage_Click(object sender, RoutedEventArgs e)
 {
     AddControl addControl = new AddControl();
     AddControlNavigationImage cni = new AddControlNavigationImage(gCurrentScreen);
     addControl.Content = cni;
     addControl.Width = cni.Width + 80;
     addControl.Height = cni.Height + 80;
     addControl.Show();
 }
 private void menuAddCameraViewer_Click(object sender, RoutedEventArgs e)
 {
     AddControl addControl = new AddControl();
     AddNewCameraViewer csi = new AddNewCameraViewer(gCurrentScreen);
     addControl.Width = csi.Width + 40;
     addControl.Height = csi.Height + 40;
     addControl.Content = csi;
     addControl.Show();
 }
 private void menuAddClickImage_Click(object sender, RoutedEventArgs e)
 {
     AddControl addControl = new AddControl();
     AddControlClickImage cmi = new AddControlClickImage(gCurrentScreen);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }
 private void Property_Label_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     PropertyLabel propLabel = (PropertyLabel)sender;
     AddControl addControl = new AddControl();
     AddControlPropertyLabel cmi = new AddControlPropertyLabel(gCurrentScreen, propLabel.screenObject.Name);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }
 private void Navigaton_Image_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     NavigationImage navCtrl = (NavigationImage)sender;
     AddControl addControl = new AddControl();
     AddControlNavigationImage cmi = new AddControlNavigationImage(gCurrentScreen, navCtrl.screenObject.Name);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }
 private void Broswer_Control_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     ClickImage bfCtrl = (ClickImage)sender;
     AddControl addControl = new AddControl();
     AddControlBrowser cmi = new AddControlBrowser(gCurrentScreen, bfCtrl.screenObject.Name);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }