Esempio n. 1
0
 private void lbxSolutions_DoubleClick(object sender, System.EventArgs e)
 {
     using(frmInputBox oInputBox = new frmInputBox())
     {
         oInputBox.ShowMe("View Solution", "View Solution", this.lbxSolutions.Text, true);
     }
 }
Esempio n. 2
0
 private void btnAddSolution_Click(object sender, System.EventArgs e)
 {
     using(frmInputBox oInputBox = new frmInputBox())
     {
     //				string sNewSolution = oInputBox.ShowMe("Please enter a solution for this issue", "Solution", false);
     //				this.m_oIssue.Solution.Save((int)this.m_oIssue.Data.Rows[0]["issue_id"], 0, sNewSolution);
     //				this.BindSolutions();
         if(oInputBox.ShowMe("Please enter a solution for this issue", "Solution", false) == DialogResult.OK)
         {
             this.m_oIssue.Solutions.Save((int)this.m_oIssue.Data.Rows[0]["issue_id"], 0, oInputBox.Data);
             this.BindSolutions();
         }
     }
 }
Esempio n. 3
0
 private void btnEditSolution_Click(object sender, System.EventArgs e)
 {
     using(frmInputBox oInputBox = new frmInputBox())
     {
         if(oInputBox.ShowMe("Edit solution", "Edit Solution", this.lbxSolutions.Text, false) == DialogResult.OK)
         {
             this.m_oIssue.Solutions.Save((int)this.m_oIssue.Data.Rows[0]["issue_id"], (int)this.lbxSolutions.SelectedValue, oInputBox.Data);
             this.BindSolutions();
         }
     }
 }
Esempio n. 4
0
 private void btnAddCause_Click(object sender, System.EventArgs e)
 {
     using(frmInputBox oInputBox = new frmInputBox())
     {
         if(oInputBox.ShowMe("Please enter a cause of this issue", "Cause of Issue", false) == DialogResult.OK)
         {
             this.m_oIssue.Causes.Save((int)this.m_oIssue.Data.Rows[0]["issue_id"], 0, oInputBox.Data);
             this.BindCauses();
         }
     }
 }