示例#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      = "Let's Go",
                Status   = PlanItem.ListStatus[(int)EPlanItem.COMING]
            });
        }
示例#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);

            dtpDate.Value = Date;
        }
示例#3
0
        public Form1()
        {
            InitializeComponent();


            tmNotify.Start();
            appTime = 0;
            LoadMatrix();

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