示例#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(7, 0),
         Job      = "A demo job",
         Status   = PlanItem.ListStatus[(int)EPlanItem.COMING]
     });
 }
示例#2
0
        public Form1()
        {
            InitializeComponent();
            tmNotify.Start();

            appTime = 0;

            LoadMatrix();
            try
            {
                Job = DeserializeFromXML(filePath) as PlanData; // de hien thi job torng ngay duoc chon
            }
            catch {
                setDefaultJob();
            }
        }
示例#3
0
        public DayDetails(DateTime date, PlanData job)
        {
            InitializeComponent();
            this.Date = date;
            this.Job  = job;


            fPanel.Width  = pnlEvent.Width; // set lai chieu dai va rong cua cong  viec
            fPanel.Height = pnlEvent.Height;

            pnlEvent.Controls.Add(fPanel);



            dtpkDate.Value = Date;
        }