Exemple #1
0
 private void tsbChangeType_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "14"))
         {
             return;
         }
         var frm = new frmChangeOperType();
         if (frm.ChangeOperType((sa_t_oper_type)this.tv.SelectedNode.Tag) == DialogResult.Yes)
         {
             LoadTv();
         }
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom(ex);
     }
 }
Exemple #2
0
 private void tsbAddType_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "01"))
         {
             return;
         }
         var frm = new frmChangeOperType();
         if (frm.ChangeOperType(null) == DialogResult.Yes)
         {
             LoadTv();
         }
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom(ex);
     }
 }