Пример #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();
        }
Пример #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();
        }
Пример #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();
        }