public MainForm() { InitializeComponent(); _deliverServices = new DeliveryService(); closeImage = Properties.Resources.baseline_close_black_18dp; tbcWorkSurface.Padding = new System.Drawing.Point(16, 6); DeliveriesListControl delivControl = new DeliveriesListControl(); spcMainSplitContainer.Panel1.Controls.Add(delivControl); delivControl.Dock = DockStyle.Fill; delivControl.OnDeliverySelected += DelivControl_OnDeliverySelected; }
public Scaffold() { InitializeComponent(); // Services -------------------------------------------------------------------- deliveryService = new DeliveryService(); productService = new ProductService(); // Controls ---------------------------------------------------------------------- DeliveriesListControl ctlDeliveries = new DeliveriesListControl(); splitContainer1.Panel1.Controls.Add(ctlDeliveries); ctlDeliveries.Dock = DockStyle.Fill; ctlDeliveries.OnJobSelected += Ctl_OnJobSelected; ctlDeliveries.OnDeliverySelected += Ctl_OnDeliverySelected; manager = new DeliveryManager(); splitContainer1.Panel2.Controls.Add(manager); manager.Dock = DockStyle.Fill; // Controls --------------------------------------------------------------------- }