Example #1
0
 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;
 }
Example #2
0
 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();
 }
Example #3
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();
 }
Example #4
0
 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();
 }
Example #5
0
 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();
 }
Example #6
0
 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);
 }