Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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 ---------------------------------------------------------------------
        }