コード例 #1
0
 public void CreateNewApplicant()
 {
     Mode      = FormMode.CreateNew;
     Applicant = new Applicant();
     InitializeControls();
     MdiParent = MyForms.GetForm <ParentForm>();
     Show();
 }
コード例 #2
0
 public void UpdateApplicant(Applicant applicant)
 {
     Mode      = FormMode.Update;
     Applicant = applicant;
     InitializeControls();
     ShowApplicantInControls();
     MdiParent = MyForms.GetForm <ParentForm>();
     Show();
 }
コード例 #3
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         GrabUserInput();
         var manager = new ApplicantManager();
         if (Mode == FormMode.CreateNew)
         {
             manager.Create(Applicant);
         }
         else
         {
             manager.Update(Applicant);
         }
         MyForms.GetForm <ApplicantListForm>().LoadData();
         Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #4
0
ファイル: ApplicantListForm.cs プロジェクト: 00009366w/FunPro
 private void ApplicantListForm_Load(object sender, EventArgs e)
 {
     MdiParent = MyForms.GetForm <ParentForm>();
     LoadData();
 }