private void frm_JMAddClick(object sender, JEventargs e) { if (JMAddAndUpdateClick != null) { JMAddAndUpdateClick(sender, e); if (e.Cancel) { if (!string.IsNullOrEmpty(e.Tag)) { _JMTypeID = e.Tag.ToString(); } } } }
private void jm_btn_OK_Click(object sender, EventArgs e) { if (JMBtnClick != null) { JEventargs ee = new JEventargs(); ee.Img = pictureBox1.Image; ee.Tag = this.Tag == null ? "" : this.Tag.ToString(); ee.Text = txtName.ZText.Trim(); JMBtnClick(this, ee); if (ee.Cancel) { this.Close(); } } }
private void frm_JMDelClick(object sender, JEventargs e) { if (JMDeleteClick != null) { JMDeleteClick(sender, e); if (e.Cancel) { _JMTypeID = ""; jmlbTwo.Text = ""; jmlb.Visible = true; jmlbOne.Visible = false; jmlbTwo.Visible = false; } JMFocused = true; } }
private void frm_JMAddAndUpdateClick(object sender, JEventargs e) { if (JMAddAndUpdateClick != null) { JMAddAndUpdateClick(sender, e); if (e.Cancel) { if (!string.IsNullOrEmpty(e.Tag)) { _JMTypeID = e.Tag.ToString(); } jmlbTwo.Text = e.Text.Trim(); jmlb.Visible = false; jmlbOne.Visible = true; jmlbTwo.Visible = true; JMFocused = true; } } }