private void EditApplication(System.Object sender, EventArgs e) { PmGeneralApplicationRow SelectedRow = GetSelectedApplication(); // Open the selected partner's Partner Edit screen at Personnel Applications TFrmPartnerEdit frm = new TFrmPartnerEdit(FPetraUtilsObject.GetForm()); frm.SetParameters(TScreenMode.smEdit, SelectedRow.PartnerKey, TPartnerEditTabPageEnum.petpPersonnelApplications); frm.Show(); frm.SelectApplication(SelectedRow.ApplicationKey, SelectedRow.RegistrationOffice); }