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();
        }
예제 #2
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);
        }