예제 #1
0
 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();
             }
         }
     }
 }
예제 #2
0
 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();
         }
     }
 }
예제 #3
0
 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;
     }
 }
예제 #4
0
 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;
         }
     }
 }