public AddVehicles(WindowsObserver observer, VehicleService vehicleService) { this.subject = new WindowsSubject(); this.subject.Attach(observer); this.vehicleService = vehicleService; InitializeComponent(); this.addBtn.FlatStyle = FlatStyle.Flat; this.addBtn.FlatAppearance.BorderSize = 0; this.cancelBtn.FlatStyle = FlatStyle.Flat; this.cancelBtn.FlatAppearance.BorderSize = 0; }
public ModifyVehicles(VehicleDTO vehicleToModify, WindowsObserver observer, VehicleService vehicleService) { this.vehicleToModify = vehicleToModify; this.subject = new WindowsSubject(); this.subject.Attach(observer); this.vehicleService = vehicleService; InitializeComponent(); this.modifyBtn.FlatStyle = FlatStyle.Flat; this.modifyBtn.FlatAppearance.BorderSize = 0; this.cancelBtn.FlatStyle = FlatStyle.Flat; this.cancelBtn.FlatAppearance.BorderSize = 0; this.loadData(); }
public ModifyZone(ZoneDTO zoneToModify, WindowsObserver observer, ZoneService zoneService) { this.zoneToModify = zoneToModify; this.subject = new WindowsSubject(); this.subject.Attach(observer); this.zoneService = zoneService; InitializeComponent(); this.modifyBtn.FlatStyle = FlatStyle.Flat; this.modifyBtn.FlatAppearance.BorderSize = 0; this.cancelBtn.FlatStyle = FlatStyle.Flat; this.cancelBtn.FlatAppearance.BorderSize = 0; this.loadInfo(); }
public AddZone(ZoneService zoneService, FlowService flowService, WindowsObserver observer) { this.subject = new WindowsSubject(); this.subject.Attach(observer); this.zoneService = zoneService; this.flowService = flowService; InitializeComponent(); this.addBtn.FlatStyle = FlatStyle.Flat; this.addBtn.FlatAppearance.BorderSize = 0; this.cancelBtn.FlatStyle = FlatStyle.Flat; this.cancelBtn.FlatAppearance.BorderSize = 0; this.comboTypes.Enabled = false; this.init(); }
public NewFlow(WindowsObserver observer, FlowService flowService, List <FlowStepDTO> subzoneTypes) { flow = new Dictionary <int, FlowStepDTO>(); this.subject = new WindowsSubject(); this.subject.Attach(observer); this.flowService = flowService; InitializeComponent(); this.addType.FlatStyle = FlatStyle.Flat; this.addType.FlatAppearance.BorderSize = 0; this.removeType.FlatStyle = FlatStyle.Flat; this.removeType.FlatAppearance.BorderSize = 0; this.newFlowBtn.FlatStyle = FlatStyle.Flat; this.newFlowBtn.FlatAppearance.BorderSize = 0; this.loadTypes(subzoneTypes); }
public AssignSubZone(ZoneDTO subZone, List <ZoneDTO> zones, ZoneService zoneService, WindowsObserver observer) { this.subject = new WindowsSubject(); this.subject.Attach(observer); this.subZoneToAssign = subZone; this.zoneService = zoneService; this.zones = zones; InitializeComponent(); this.assignBtn.FlatStyle = FlatStyle.Flat; this.assignBtn.FlatAppearance.BorderSize = 0; this.loadZones(); }
public void Detach(WindowsObserver observer) { this.observers.Remove(observer); }
public void Attach(WindowsObserver observer) { this.observers.Add(observer); }