예제 #1
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(comboBox1.Text))
     {
         MessageBox.Show("Select version", "Error");
         return;
     }
     if (childForm == null)
     {
         childForm = new Form1_New(comboBox1.Text);
     }
     childForm.MdiParent = Parent;
     //childForm.Text = "Window " + childFormNumber++;
     childForm.Dock          = DockStyle.Fill;
     childForm.WindowState   = FormWindowState.Normal;
     childForm.StartPosition = FormStartPosition.CenterScreen;
     childForm.Size          = Parent.ClientRectangle.Size;
     //childForm.TopLevel = false;
     childForm.Show();
     this.Close();
 }
예제 #2
0
 public NodeValueEditor(NodeContext _context, Form1_New _parentForm)
 {
     nodeContext = _context;
     parentForm  = _parentForm;
     InitializeComponent();
 }