private void btnEditExperiment_Click(object sender, EventArgs e)
 {
     ExperimentTreeNode node = GlobalVariables.ExperimentNode;
     using (frmAddEditExperiment frm = new frmAddEditExperiment())
     {
         frm.Initialize(node);
         frm.ShowDialog();
         node.ExperimentNode.Title = frm.ExperimentNode.ExperimentNode.Title;
         node.ExperimentNode.Alias = frm.ExperimentNode.ExperimentNode.Alias;
         node.ExperimentNode.Hypo = frm.ExperimentNode.ExperimentNode.Hypo;
         node.ExperimentNode.SDate = frm.ExperimentNode.ExperimentNode.SDate;
         node.ExperimentNode.EDate = frm.ExperimentNode.ExperimentNode.EDate;
     }
     
 }
 private void btnAddExperiment_Click(object sender, EventArgs e)
 {
     using(frmAddEditExperiment frm = new frmAddEditExperiment())
     {
         frm.Initialize(null);
         frm.ShowDialog();
         if (frm.ExperimentNode.ExperimentNode.ID > 0)
         {
             frm.ExperimentNode.Text = frm.ExperimentNode.ExperimentNode.Alias;
         }
     }
 }