private void cmdCustom_Click(object sender, System.EventArgs e) { //Make sure case is not closed or suspended. --Sszathmary 11/4/2004 (MJennings) if (!ICI_Functions.IsCaseModificationPermitted(this, m_case_pkey, this.Name, true)) { return; } DialogResult rc = new DialogResult(); string strCustom = ""; Form f = new Forms.InputBox("Custom Worksheet", "Please enter worksheet data."); rc = f.ShowDialog(); if (rc == System.Windows.Forms.DialogResult.Cancel) { return; } TextBox txtCustom = ((Forms.InputBox)f).txtText; txtCustom.MaxLength = 255; strCustom = txtCustom.Text; while (MessageBox.Show(this, "Do you have more Custom Worksheet Data to Enter?", "Custom Worksheet", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { rc = f.ShowDialog(); if (rc == System.Windows.Forms.DialogResult.OK) { txtCustom = ((Forms.InputBox)f).txtText; txtCustom.MaxLength = 255; strCustom = strCustom + "/" + txtCustom.Text; } } txtCustomWorksheet.Text = strCustom; }
private void cmdCustom_Click(object sender, System.EventArgs e) { //Make sure case is not closed or suspended. --Sszathmary 11/4/2004 (MJennings) if(!ICI_Functions.IsCaseModificationPermitted(this,m_case_pkey,this.Name,true)) { return; } DialogResult rc = new DialogResult(); string strCustom = ""; Form f = new Forms.InputBox("Custom Worksheet", "Please enter worksheet data."); rc = f.ShowDialog(); if (rc == System.Windows.Forms.DialogResult.Cancel) { return; } TextBox txtCustom = ((Forms.InputBox)f).txtText; txtCustom.MaxLength = 255; strCustom = txtCustom.Text; while (MessageBox.Show(this,"Do you have more Custom Worksheet Data to Enter?","Custom Worksheet",MessageBoxButtons.YesNo,MessageBoxIcon.Question) == DialogResult.Yes) { rc = f.ShowDialog(); if (rc == System.Windows.Forms.DialogResult.OK) { txtCustom = ((Forms.InputBox)f).txtText; txtCustom.MaxLength = 255; strCustom = strCustom + "/" + txtCustom.Text; } } txtCustomWorksheet.Text = strCustom; }