public Lich() { InitializeComponent(); ListJob = XMLToObject("data.xml") as DanhSachCongViec; //if (ListJob == null) //{ // ListJob = new DanhSachCongViec(); // ListJob.ListJob = new List<MotCongViec>(); //} }
public CongViecTrongNgay(DateTime date) { InitializeComponent(); planJob = XMLToObject("data.xml") as DanhSachCongViec; if (planJob == null) { planJob = new DanhSachCongViec(); planJob.ListJob = new List <MotCongViec>(); } this.date = date; dtpDateOfJob.Value = Date; }