private void OnAddNewAssociateComplainClick(object sender, EventArgs e) { AssociateComplain obj = new AssociateComplain(this.mHistoryProcedure); AssociateComplainForm.ShowForm(obj); AssociateComplainCollection associateComplainList = new AssociateComplainCollection(); this.cmbAssociateComplain.DataSource = associateComplainList; this.cmbAssociateComplain.DisplayMember = "DisplayName"; }
public static bool ShowForm(AssociateComplain obj) { bool r = false; if (!Objectbase.IsNullOrEmpty(obj)) { using (AssociateComplainForm frm = new AssociateComplainForm(obj)) { r = frm.ShowDialog() == DialogResult.OK; } } return(r); }