public WizardUnpack(WarehouseAdjustmentViewModel warehouseAdjustmentViewModel) { InitializeComponent(); this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastPendingPallets.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabBatch.TabPages.Add("tabPendingPallets", "Pending pallets"); this.customTabBatch.TabPages.Add("tabPendingCartons", "Pending cartons"); this.customTabBatch.TabPages[0].Controls.Add(this.fastPendingPallets); this.customTabBatch.TabPages[1].Controls.Add(this.fastPendingCartons); this.customTabBatch.Dock = DockStyle.Fill; this.fastPendingPallets.Dock = DockStyle.Fill; this.fastPendingCartons.Dock = DockStyle.Fill; this.panelMaster.Controls.Add(this.customTabBatch); this.warehouseAdjustmentViewModel = warehouseAdjustmentViewModel; this.cartonAPIs = new CartonAPIs(CommonNinject.Kernel.Get <ICartonRepository>()); }
public WizardDetail(WarehouseAdjustmentViewModel warehouseAdjustmentViewModel) { InitializeComponent(); this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastPendingPallets.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabBatch.TabPages.Add("tabPendingPallets", "Pending pallets"); this.customTabBatch.TabPages.Add("tabPendingCartons", "Pending cartons"); this.customTabBatch.TabPages[0].Controls.Add(this.fastPendingPallets); this.customTabBatch.TabPages[1].Controls.Add(this.fastPendingCartons); this.customTabBatch.Dock = DockStyle.Fill; this.fastPendingPallets.Dock = DockStyle.Fill; this.fastPendingCartons.Dock = DockStyle.Fill; this.panelMaster.Controls.Add(this.customTabBatch); this.warehouseAdjustmentViewModel = warehouseAdjustmentViewModel; if (this.warehouseAdjustmentViewModel.WarehouseAdjustmentTypeID != (int)GlobalEnums.WarehouseAdjustmentTypeID.ChangeBinLocation) { this.olvCartonNewBinLocationCode.Width = 0; this.olvPalletNewBinLocationCode.Width = 0; } }
public WarehouseAdjustments() : base() { InitializeComponent(); this.toolstripChild = this.toolStripChildForm; this.fastListIndex = this.fastWarehouseAdjustmentIndex; this.warehouseAdjustmentAPIs = new WarehouseAdjustmentAPIs(CommonNinject.Kernel.Get <IWarehouseAdjustmentAPIRepository>()); this.warehouseAdjustmentViewModel = CommonNinject.Kernel.Get <WarehouseAdjustmentViewModel>(); this.warehouseAdjustmentViewModel.PropertyChanged += new PropertyChangedEventHandler(ModelDTO_PropertyChanged); this.baseDTO = this.warehouseAdjustmentViewModel; }
public WizardMaster(WarehouseAdjustmentViewModel warehouseAdjustmentViewModel) { InitializeComponent(); this.warehouseAdjustmentViewModel = warehouseAdjustmentViewModel; }