Exemple #1
0
 private void btnOption_Click(object sender, EventArgs e)
 {
     if (Information.CurrentUser.EmployeeDuty == "Duty_18" || Information.CurrentUser.EmployeeDepartmentNO == "Administrators")
     {
         frmOption fo = new frmOption();
         fo.ShowDialog();
     }
     else
     {
         MessageBox.Show("该功能你无权限!", "权限", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
Exemple #2
0
 private void cmbAi_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cmbAi.Enabled == false)
     {
         return;
     }
     try//add by wujianbo 20121206
     {
         txtSendContent.Text = cmbAi.SelectedValue.ToString() + "\r\n";
     }
     catch (Exception ex)
     {
         MessageBox.Show(@"尚未自定义任何短语!详细信息:\r\n" + ex.Message, @"提示!", MessageBoxButtons.OK, MessageBoxIcon.Error);
         frmOption fo = new frmOption();
         fo.Show();
         this.Close();
     }
 }