Example #1
0
        private void hiệnGhiChúToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NotifyIcon1.ShowBalloonTip(100, "Số việc trong ngày", "Hôm nay có " + CountSchedule + " công việc và còn " + CountDeadline + " Deadline", ToolTipIcon.Info);
            GeneralNoteForm NoteForm = new GeneralNoteForm();

            NoteForm.Dtpk.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0);
            NoteForm.ShowDialog();
        }
Example #2
0
        private void ButtonNum_Click(object sender, EventArgs e)
        {
            CustomButton btn = sender as CustomButton;

            Date = new DateTime(dtpk.Value.Year, dtpk.Value.Month, Convert.ToInt32(btn.ButtonText));
            var NoteForm = new GeneralNoteForm();

            NoteForm.Dtpk.Value = Date;
            NoteForm.ShowDialog();
        }
Example #3
0
        private void ButtonNote_Click(object sender, EventArgs e)
        {
            CustomButton btn = sender as CustomButton;

            Date = dtpk.Value;
            var NoteForm = new GeneralNoteForm();

            NoteForm.Dtpk.Value = Date;
            NoteForm.ShowDialog();
        }