예제 #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
파일: DisplayDate.cs 프로젝트: 11012001/tam
        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();
        }