Beispiel #1
0
 private void Add_Role_button_Click(object sender, EventArgs e)
 {
     try
     {
         Oracle.CreateRole(MainForm.Login_Form.conn, Role_name_textBox.Text, Role_password_textbox.Text);
         MessageBox.Show("ĐA TAO ROLE " + Role_name_textBox.Text + " THANH CONG!!", "Succeed", MessageBoxButtons.OK, MessageBoxIcon.Information);
         MainForm.GetRoles();
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show("ERROR:" + ex.Message, "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }