private void editBox1_ButtonClick(object sender, EventArgs e) { fBrowseOffices f = new fBrowseOffices(AtMng); f.ShowDialog(); if (f.OfficeId != 0) { isChanged = true; OfficeId = f.OfficeId; } f.Close(); }
private void ConvertToOfficer() { //find out what office they belong to fBrowseOffices f = new fBrowseOffices(FM.AtMng); if (f.ShowDialog() == DialogResult.OK) { int officeid = f.OfficeId; //get officemng atriumBE.OfficeManager ofm = FM.AtMng.GetOffice(officeid); //convert ofm.GetOfficer().AddFromContact(FM.GetPerson().Load(CurrentRow().ContactId), ofm.CurrentOffice); //goto new record to finish operation fFile ff = FileForm().MainForm.OpenFile(ofm.CurrentOffice.OfficeFileId); ff.MoreInfo("officer", CurrentRow().ContactId); } }