コード例 #1
0
 public override TreeDefaultValueDO ShowAddPopulation(SampleGroupDO sg)
 {
     if (this.ApplicationController._cDal == null)
     {
         MessageBox.Show("No File Selected");
         return null;
     }
     using (FormAddPopulation view = new FormAddPopulation(this.ApplicationController))
     {
         Cursor.Current = Cursors.WaitCursor;
         view.ShowDialog(sg);
         return null;
     }
 }
コード例 #2
0
        private void _addPopulation_MI_Click(object sender, EventArgs e)
        {
            if (Controller.DataStore == null)
            {
                MessageBox.Show("No File Selected");
                return;
            }
            using (FormAddPopulation view = new FormAddPopulation(Controller))
            {
                Cursor.Current = Cursors.WaitCursor;
                view.ShowDialog();

                return;
            }
        }