Exemple #1
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();
        }
Exemple #2
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);
        }