private void AddPerson() { AddPersonDlg dlg = new AddPersonDlg(); dlg.ShowDialog(this); string personName = dlg.personName; if (personName != null && personName != "") { FRManager.AddPerson(personName); trainPerson = personName; ShowTrainDlg(personName); } }
private void AddPerson() { AddPersonDlg dlg = new AddPersonDlg(); dlg.ShowDialog(this); string personName = dlg.personName; if(personName!=null&&personName!="") { FRManager.AddPerson(personName); trainPerson = personName; ShowTrainDlg(personName); } }