Exemplo n.º 1
0
        private void dgvDiaryNotes_DoubleClick(object sender, EventArgs e)
        {
            CommonClass.noteDateTime = Convert.ToDateTime(dgvDiaryNotes.SelectedRows[0].Cells[2].Value);
            DiaryForm frm = new DiaryForm();

            frm.MdiParent = this.MdiParent;
            frm.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void btnLogIn_Click(object sender, EventArgs e)
        {
            if (txtUserName.Text != "")
            {
                User u = new User();

                if (u.PasswordByuserID(txtPassword.Text))
                {
                    this.Hide();

                    DiaryForm frm = new DiaryForm();

                    frm.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Şifreniz yanlıştır..");
                }
            }
        }
Exemplo n.º 3
0
        private void btnDiary_Click(object sender, EventArgs e)
        {
            DiaryForm frm = new DiaryForm();

            OpenForm(frm);
        }