private void OnContactChanged(object source, ContactEventArgs e) { //Event handler for contact changed if (this.mIssue != null) { this.mIssue.ContactID = e.Contact.ID; CustomerProxy.UpdateIssue(this.mIssue); if (this.IssueChanged != null) { this.IssueChanged(this.mIssue, EventArgs.Empty); } } }
private void OnFindPRONumber(object sender, EventArgs e) { //Event handler for change in selected company try { dlgDeliveries dlg = new dlgDeliveries(this.mIssue.CompanyID, Convert.ToInt32(this.mIssue.StoreNumber), this.dtpFrom.Value, this.dtpTo.Value); dlg.Font = this.Font; if (dlg.ShowDialog() == DialogResult.OK) { this.mIssue.ContactID = Convert.ToInt32(this.ctlContact.SelectedValue); this.mIssue.OFD1FromDate = this.dtpFrom.Value; this.mIssue.OFD1ToDate = this.dtpTo.Value; this.mIssue.PROID = dlg.PROID; CustomerProxy.UpdateIssue(this.mIssue); showDeliveryInfo(true); } } catch (Exception ex) { reportError(new ControlException("Unexpected error while determining delivery information in the IssueInspector control.", ex)); } }
public void Save() { CustomerProxy.UpdateIssue(this.mIssue); }