Beispiel #1
0
 void SetDefaultJob()
 {
     Job     = new PlanData();
     Job.Job = new List <PlanItem>();
     Job.Job.Add(new PlanItem()
     {
         Date     = DateTime.Now,
         FromTime = new Point(4, 0),
         ToTime   = new Point(5, 0),
         Job      = "Thêm việc rồi",
         Status   = PlanItem.ListStatus[(int)EPlanItem.COMING]
     });
 }
Beispiel #2
0
        public DailyPlan(DateTime date, PlanData job)
        {
            InitializeComponent();

            this.Date = date;
            this.Job  = job;

            fPanel.Width  = pnlJob.Width;
            fPanel.Height = pnlJob.Height;
            pnlJob.Controls.Add(fPanel);

            dtpkDate.Value = Date;
        }
Beispiel #3
0
        public Calender()
        {
            InitializeComponent();
            tmNotify.Start();
            appTime = 0;
            LoadMatrix();

            try
            {
                Job = DeserializeFromXML(filePath) as PlanData;
            }
            catch
            {
                SetDefaultJob();
            }
        }