예제 #1
0
파일: dlgIssue.cs 프로젝트: jpheary/Argix08
 private void OnFormLoad(object sender, EventArgs e)
 {
     //Event handler for form load event
     this.Cursor = Cursors.WaitCursor;
     try {
         this.mToolTip            = new System.Windows.Forms.ToolTip();
         this.mToolTip.ShowAlways = true;
         this.mToolTip.SetToolTip(this.cboIssueType, "Select an issue type.");
         this.cboIssueCategory.DataSource    = this.mIssueCategorys;
         this.cboIssueCategory.DisplayMember = "IssueTypeTable.Category";
         this.cboIssueCategory.ValueMember   = "IssueTypeTable.Category";
         this.mIssueCategorys.Merge(CustomerProxy.GetIssueCategorys());
         this.cboIssueType.DataSource        = this.mIssueTypes;
         this.cboIssueType.DisplayMember     = "IssueTypeTable.Type";
         this.cboIssueType.ValueMember       = "IssueTypeTable.ID";
         this.cboIssueCategory.SelectedIndex = 0;
         OnIssueCategorySelected(this.cboIssueCategory, EventArgs.Empty);
         this.ctlContact.DataSource = this.mContacts;
         this.mContacts.Merge(CustomerProxy.GetContacts());
         this.txtTitle.Text = this.mIssue.Subject;
     }
     catch (Exception ex) { reportError(ex); }
     finally { this.btnOk.Enabled = false; this.Cursor = Cursors.Default; }
 }