public Worker_page1(Service service, string shift_id) { InitializeComponent(); this.service = service; if (!service.Manager) { DB_connector.AddNewShiftToDB(service.shift); } else { this.service.shift = service.shift = DB_connector.Get_Shift_ByID(shift_id); this.service.shift.deal_list = DB_connector.Get_All_Shift_Deals(service.shift.shift_id); this.service.worker = service.shift.worker; } }
public AllDealsData(Service service) { this.service = service; service.shift.deal_list = DB_connector.Get_All_Shift_Deals(service.shift.shift_id); UpdateData(); }