Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void menuAddPropertyLabel_Click(object sender, RoutedEventArgs e)
        {
            AddControl addControl       = new AddControl();
            AddControlPropertyLabel csi = new AddControlPropertyLabel(gCurrentScreen);

            addControl.Width   = csi.Width + 80;
            addControl.Height  = csi.Height + 80;
            addControl.Content = csi;
            addControl.Show();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        private void menuAddStateImage_Click(object sender, RoutedEventArgs e)
        {
            AddControl           addControl = new AddControl();
            AddControlStateImage csi        = new AddControlStateImage(gCurrentScreen);

            addControl.Width   = csi.Width + 80;
            addControl.Height  = csi.Height + 80;
            addControl.Content = csi;
            addControl.Show();
        }
Ejemplo n.º 5
0
        private void menuCreateScreen_Click(object sender, RoutedEventArgs e)
        {
            AddControl       addControl = new AddControl();
            AddControlScreen cscr       = new AddControlScreen(gCurrentScreen);

            addControl.Width   = cscr.Width + 80;
            addControl.Height  = cscr.Height + 80;
            addControl.Content = cscr;
            addControl.ShowDialog();
            Load_Screen(gCurrentScreen);
        }
Ejemplo n.º 6
0
        private void menuAddWebBrowser_Click(object sender, RoutedEventArgs e)
        {
            AddControl addControl = new AddControl();

            AddControlBrowser csi = new AddControlBrowser(gCurrentScreen);

            addControl.Width   = csi.Width + 80;
            addControl.Height  = csi.Height + 80;
            addControl.Content = csi;
            addControl.Show();
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
0
        private void Timer_Label_MouseRightButtonDown(object sender, MouseEventArgs e)
        {
            if (editMode == false)
            {
                return;
            }
            TimerLabel           tmrLbl     = (TimerLabel)sender;
            AddControl           addControl = new AddControl();
            AddControlTimerLabel cmi        = new AddControlTimerLabel(gCurrentScreen, tmrLbl.screenObject.Name);

            addControl.Content = cmi;
            addControl.Width   = cmi.Width + 80;
            addControl.Height  = cmi.Height + 80;
            addControl.Owner   = this;
            addControl.ShowDialog();
            Load_Screen(gCurrentScreen);
        }
Ejemplo n.º 9
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);
        }
Ejemplo n.º 10
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 menuAddClickImage_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     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 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 UserControl_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     dynamic item = sender;
     string sUCType = item._controlname;
     string screenObject = item.screenObject.Name;
     OSAE.Types.AvailablePlugin selectedPlugin = GlobalUserControls.OSAEUserControls.AvailablePlugins.Find(sUCType);
     AddControl addControl = new AddControl();
     selectedPlugin.Instance.InitializeAddCtrl(gCurrentScreen, selectedPlugin.Instance.Name, screenObject);
     UserControl cmi = selectedPlugin.Instance.CtrlInterface;
     addControl.Content = cmi;
     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 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 Property_Label_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false || gCurrentUser == "") return;
     _timer.Stop();
     PropertyLabel propLabel = (PropertyLabel)sender;
     AddControl addControl = new AddControl();
     AddControlPropertyLabel cmi = new AddControlPropertyLabel(gCurrentScreen, gCurrentUser, 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 State_Image_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     StateImage navCtrl = (StateImage)sender;
     //MessageBox.Show(navCtrl.screenObject.Name);
     AddControl addControl = new AddControl();
     AddControlStateImage cmi = new AddControlStateImage(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 menuAddWebBrowser_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddControlBrowser csi = new AddControlBrowser(gCurrentScreen);
     addControl.Width = csi.Width + 80;
     addControl.Height = csi.Height + 80;
     addControl.Content = csi;
     addControl.Show();
     Load_Screen(gCurrentScreen);
 }
 private void menuAddNavImage_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddControlNavigationImage cni = new AddControlNavigationImage(gCurrentScreen);
     addControl.Content = cni;
     addControl.Width = cni.Width + 80;
     addControl.Height = cni.Height + 80;
     addControl.Show();
     Load_Screen(gCurrentScreen);
 }
 private void menuAddTimerLabel_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddControlTimerLabel csi = new AddControlTimerLabel(gCurrentScreen);
     addControl.Width = csi.Width + 80;
     addControl.Height = csi.Height + 80;
     addControl.Content = csi;
     addControl.Show();
 }
 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);
 }
 private void menuCreateScreen_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddControlScreen cscr = new AddControlScreen(gCurrentScreen);
     addControl.Width = cscr.Width + 80;
     addControl.Height = cscr.Height + 80;
     addControl.Content = cscr;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }
 private void menuAddUserControl_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddControlUserControl csi = new AddControlUserControl(gCurrentScreen, gCurrentUser);
     addControl.Width = csi.Width + 80;
     addControl.Height = csi.Height + 80;
     addControl.Content = csi;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }
 private void Timer_Label_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     TimerLabel tmrLbl = (TimerLabel)sender;
     AddControl addControl = new AddControl();
     AddControlTimerLabel cmi = new AddControlTimerLabel(gCurrentScreen, tmrLbl.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 || gCurrentUser == "") return;
     _timer.Stop();
     NavigationImage navCtrl = (NavigationImage)sender;
     AddControl addControl = new AddControl();
     AddControlNavigationImage cmi = new AddControlNavigationImage(gCurrentScreen, gCurrentUser, navCtrl.screenObject.Name);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }