Beispiel #1
0
        public static void ShowNote(question_data data)
        {
            frmNote note = new frmNote(data);

            note.Owner = _this;
            note.ShowDialog();
        }
Beispiel #2
0
 private void btnNote_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (fr9 == null)
     {
         fr9           = new frmNote();
         fr9.MdiParent = this;
         fr9.Show();
     }
 }
Beispiel #3
0
 private void btnLogIn_Click(object sender, EventArgs e)
 {
     if (UserControllers.getUser(this.txtUsername.Text.Trim()) != null && UserControllers.checkPassword(this.txtUsername.Text.Trim(), this.txtPassword.Text.Trim()) == true)
     {
         MessageBox.Show("Đăng nhập thành công", "Thông báo", MessageBoxButtons.OK);
         this.Hide();
         frmNote f2 = new frmNote(this.txtUsername.Text.Trim());
         f2.ShowDialog();
         this.Show();
         this.txtUsername.Clear();
         this.txtPassword.Clear();
     }
     else
     {
         MessageBox.Show("Sai tên đăng nhập hoặc mật khẩu", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         txtUsername.Clear();
         txtPassword.Clear();
         txtUsername.TabIndex = 1;
     }
 }
 private void OpenNote(int handel)
 {
     DataRow row = gridViewNote.GetDataRow(handel);
     if (row == null) return;
     frmNote frm = new frmNote(HelpNumber.ParseInt64(row[NOTES.NOTE_ID]));
     frm.AfterChangeNote += new frmNote._afterChangeNote(frm_AfterChangeNote);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }
 private void barButtonItemAddNote_ItemClick(object sender, ItemClickEventArgs e)
 {
     frmNote frm = new frmNote();
     frm.AfterChangeNote += new frmNote._afterChangeNote(frm_AfterChangeNote);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }