コード例 #1
0
        public WizardMaster(DeliveryAdviceAPIs deliveryAdviceAPIs, DeliveryAdviceViewModel deliveryAdviceViewModel)
        {
            InitializeComponent();

            this.customTabBatch = new CustomTabControl();
            //this.customTabBatch.ImageList = this.imageListTabControl;

            this.customTabBatch.Font         = this.fastPendingSalesOrders.Font;
            this.customTabBatch.DisplayStyle = TabStyle.VisualStudio;
            this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft;

            this.customTabBatch.TabPages.Add("tabPendingSalesOrders", "Advice by every sales order    ");
            this.customTabBatch.TabPages.Add("tabPendingSalesOrderCustomers", "Cumulate orders per customer  ");
            //this.customTabBatch.TabPages.Add("tabNewDeliveryAdvice", "Advice without Sales Order "); //WILL BE IMPLEMENTED LATER IF NEEDED
            this.customTabBatch.TabPages[0].Controls.Add(this.fastPendingSalesOrders);
            this.customTabBatch.TabPages[1].Controls.Add(this.fastPendingSalesOrderCustomers);


            this.customTabBatch.Dock                 = DockStyle.Fill;
            this.fastPendingSalesOrders.Dock         = DockStyle.Fill;
            this.fastPendingSalesOrderCustomers.Dock = DockStyle.Fill;
            this.panelMaster.Controls.Add(this.customTabBatch);


            this.deliveryAdviceAPIs      = deliveryAdviceAPIs;
            this.deliveryAdviceViewModel = deliveryAdviceViewModel;
        }
コード例 #2
0
        public DeliveryAdvices()
            : base()
        {
            InitializeComponent();


            this.toolstripChild = this.toolStripChildForm;
            this.fastListIndex  = this.fastDeliveryAdviceIndex;

            this.deliveryAdviceAPIs = new DeliveryAdviceAPIs(CommonNinject.Kernel.Get <IDeliveryAdviceAPIRepository>());

            this.deliveryAdviceViewModel = CommonNinject.Kernel.Get <DeliveryAdviceViewModel>();
            this.deliveryAdviceViewModel.PropertyChanged += new PropertyChangedEventHandler(ModelDTO_PropertyChanged);
            this.baseDTO = this.deliveryAdviceViewModel;
        }
コード例 #3
0
        public WizardDetail(DeliveryAdviceAPIs deliveryAdviceAPIs, DeliveryAdviceViewModel deliveryAdviceViewModel)
        {
            InitializeComponent();

            this.customTabBatch = new CustomTabControl();

            this.customTabBatch.Font         = this.fastPendingSalesOrderDetails.Font;
            this.customTabBatch.DisplayStyle = TabStyle.VisualStudio;
            this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft;

            this.customTabBatch.TabPages.Add("tabPendingSalesOrderDetails", "Pending items");
            this.customTabBatch.TabPages[0].Controls.Add(this.fastPendingSalesOrderDetails);


            this.customTabBatch.Dock = DockStyle.Fill;
            this.fastPendingSalesOrderDetails.Dock = DockStyle.Fill;
            this.panelMaster.Controls.Add(this.customTabBatch);


            this.deliveryAdviceAPIs      = deliveryAdviceAPIs;
            this.deliveryAdviceViewModel = deliveryAdviceViewModel;
        }