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; } }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastWholePendingDeliveryAdviceDetails.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabBatch.TabPages.Add("tabPendingSalesOrders", "Pending sales orders"); this.customTabBatch.TabPages.Add("tabPendingDeliveryAdvices", "Pending delivery advices"); this.customTabBatch.TabPages.Add("tabPendingTransferOrders", "Pending transfer orders"); this.customTabBatch.TabPages[0].Controls.Add(this.fastWholePendingSalesOrderDetails); this.customTabBatch.TabPages[1].Controls.Add(this.fastWholePendingDeliveryAdviceDetails); this.customTabBatch.TabPages[2].Controls.Add(this.fastWholePendingTransferOrderDetails); this.customTabBatch.Dock = DockStyle.Fill; this.fastWholePendingSalesOrderDetails.Dock = DockStyle.Fill; this.fastWholePendingDeliveryAdviceDetails.Dock = DockStyle.Fill; this.fastWholePendingTransferOrderDetails.Dock = DockStyle.Fill; this.Controls.Add(this.customTabBatch); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected void InitializeTabControl() { try { CustomTabControl customTabCenter = new CustomTabControl(); customTabCenter.DisplayStyle = TabStyle.VisualStudio; customTabCenter.Font = this.panelCenter.Font; panelCenter.Controls.Add(customTabCenter); customTabCenter.Dock = DockStyle.Fill; customTabCenter.TabPages.Add("tabCenterAA", "Access Controls "); customTabCenter.TabPages.Add("tabCenterAA", "Report Controls "); customTabCenter.TabPages.Add("tabCenterAA", "Members "); customTabCenter.TabPages[0].BackColor = this.panelCenter.BackColor; customTabCenter.TabPages[1].BackColor = this.panelCenter.BackColor; customTabCenter.TabPages[2].BackColor = this.panelCenter.BackColor; customTabCenter.TabPages[0].Controls.Add(this.gridexUserGroupControls); customTabCenter.TabPages[1].Controls.Add(this.gridexUserGroupReports); customTabCenter.TabPages[2].Controls.Add(this.fastUserGroupDetails); customTabCenter.TabPages[2].Controls.Add(this.toolUserGroupDetails); this.gridexUserGroupControls.Dock = DockStyle.Fill; this.gridexUserGroupReports.Dock = DockStyle.Fill; this.fastUserGroupDetails.Dock = DockStyle.Fill; this.toolUserGroupDetails.Dock = DockStyle.Top; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastAvailablePallets.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.fastAvailablePallets); this.customTabBatch.TabPages[1].Controls.Add(this.fastAvailableCartons); this.customTabBatch.Dock = DockStyle.Fill; this.fastAvailablePallets.Dock = DockStyle.Fill; this.fastAvailableCartons.Dock = DockStyle.Fill; this.Controls.Add(this.customTabBatch); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
public BatchRepackWizard(FillingData fillingData, string fileName) { InitializeComponent(); this.toolstripChild = this.toolStripBottom; this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastBatchRepacks.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabBatch.TabPages.Add("tabAvailablePallets", "Packs found"); this.customTabBatch.TabPages.Add("tabMismatchedBarcodes", "Mismatched barcodes"); this.customTabBatch.TabPages[0].Controls.Add(this.fastBatchRepacks); this.customTabBatch.TabPages[this.customTabBatch.TabPages.Count - 1].Controls.Add(this.fastMismatchedBarcodes); this.fastBatchRepacks.Dock = DockStyle.Fill; this.fastMismatchedBarcodes.Dock = DockStyle.Fill; this.customTabBatch.Dock = DockStyle.Fill; this.panelMaster.Controls.Add(this.customTabBatch); this.fileName = fileName; this.fillingData = fillingData; this.repackViewModel = CommonNinject.Kernel.Get <RepackViewModel>(); this.fastBatchRepacks.AboutToCreateGroups += fastBarcodes_AboutToCreateGroups; this.fastMismatchedBarcodes.AboutToCreateGroups += fastBarcodes_AboutToCreateGroups; //this.fastBatchRepacks.ShowGroups = true; this.fastMismatchedBarcodes.ShowGroups = true; }
public TabStyleRoundedProvider(CustomTabControl tabControl) : base(tabControl) { this._Radius = 10; // Must set after the _Radius as this is used in the calculations of the actual padding this.Padding = new Point(6, 3); }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); #region TabCenter this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.Font = this.panelCenter.Font; this.customTabCenter.TabPages.Add("tabCenterAA", "IP Address "); this.customTabCenter.TabPages[0].Controls.Add(this.gridexViewDetails); this.customTabCenter.TabPages[0].BackColor = this.panelCenter.BackColor; this.gridexViewDetails.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabCenter); this.panelCenter.Controls.Add(this.toolBottom); this.customTabCenter.Dock = DockStyle.Fill; #endregion TabCenter } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
public WizardMaster(GoodsReceiptAPIs goodsReceiptAPIs, GoodsReceiptViewModel goodsReceiptViewModel) { InitializeComponent(); this.customTabMain = new CustomTabControl(); this.customTabMain.Font = this.fastPendingPickups.Font; this.customTabMain.DisplayStyle = TabStyle.VisualStudio; this.customTabMain.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabMain.TabPages.Add("tabPendingPickups", "Receipt by every pickup "); this.customTabMain.TabPages.Add("tabPendingPickupWarehouses", "Cumulate pickups per warehouse "); this.customTabMain.TabPages.Add("tabPendingGoodsIssueTransfers", "Receipt by every transfer "); this.customTabMain.TabPages.Add("tabPendingGoodsIssueTransferWarehouses", "Cumulate transfers per warehouse "); //this.customTabMain.TabPages.Add("tabPendingPurchases", "Purchase Invoice "); //this.customTabMain.TabPages.Add("tabPendingPurchases", "Sales Return "); this.customTabMain.TabPages[0].Controls.Add(this.fastPendingPickups); this.customTabMain.TabPages[1].Controls.Add(this.fastPendingPickupWarehouses); this.customTabMain.TabPages[2].Controls.Add(this.fastPendingGoodsIssueTransfers); this.customTabMain.TabPages[3].Controls.Add(this.fastPendingGoodsIssueTransferWarehouses); this.customTabMain.Dock = DockStyle.Fill; this.fastPendingPickups.Dock = DockStyle.Fill; this.fastPendingPickupWarehouses.Dock = DockStyle.Fill; this.fastPendingGoodsIssueTransfers.Dock = DockStyle.Fill; this.fastPendingGoodsIssueTransferWarehouses.Dock = DockStyle.Fill; this.panelMaster.Controls.Add(this.customTabMain); this.goodsReceiptAPIs = goodsReceiptAPIs; this.goodsReceiptViewModel = goodsReceiptViewModel; }
protected override void InitializeTabControl() { try { if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Drum) { this.labelNextPackNo.Visible = false; this.textexNextPackNo.Visible = false; } if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Drum) { this.labelNextCartonNo.Visible = false; this.labelNextCartonNo.Visible = false; } CustomTabControl customTabBatch = new CustomTabControl(); //customTabControlCustomerChannel.ImageList = this.imageListTabControl; customTabBatch.Font = this.textexCode.Font; customTabBatch.DisplayStyle = TabStyle.VisualStudio; customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; customTabBatch.TabPages.Add("Batch", "Lot Details "); customTabBatch.TabPages[0].Controls.Add(this.layoutMaster); this.naviBarMaster.Bands[0].ClientArea.Controls.Add(customTabBatch); customTabBatch.Dock = DockStyle.Fill; this.layoutMaster.Dock = DockStyle.Fill; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); #region TabCenter this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.Font = this.panelCenter.Font; this.customTabCenter.TabPages.Add("tabCenterAA", "Commodity Details "); this.customTabCenter.TabPages.Add("tabCenterBB", "API Code, Remarks "); this.customTabCenter.TabPages[0].Controls.Add(this.layoutTop); this.customTabCenter.TabPages[1].Controls.Add(this.layoutRight); this.customTabCenter.TabPages[0].BackColor = this.panelCenter.BackColor; this.customTabCenter.TabPages[1].BackColor = this.panelCenter.BackColor; this.layoutTop.Dock = DockStyle.Fill; this.layoutRight.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabCenter); this.customTabCenter.Dock = DockStyle.Fill; #endregion TabCenter this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].SizeType = SizeType.Absolute; this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].Width = 15; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
/// <summary> /// GoodsIssueViewModel goodsIssueViewModel: CURRENT DETAILS OF GOODSISSUE /// List<IPendingPrimaryDetail> pendingPrimaryDetails: COLLECTION OF PENDING ITEMS REQUESTED FOR DELIVERY (HERE WE USE IPendingPrimaryDetail FOR TWO CASE: PendingDeliveryAdviceDetail AND PendingTransferOrderDetail WHICH ARE IMPLEMENTED interface IPendingPrimaryDetail /// IPendingPrimaryDetail pendingPrimaryDetail: CURRENT SELECTED PENDING ITEM (CURRENT SELECTED OF PendingDeliveryAdviceDetail OR PendingTransferOrderDetail). THIS PARAMETER IS REQUIRED BY TABLET MODE: MEANS: WHEN USING BY THE FORFLIFT DRIVER TO MANUAL SELECT BY BARCODE OR BIN LOCATION /// string fileName: WHEN IMPORTED FORM TEXT FILE /// </summary> /// <param name="goodsIssueViewModel"></param> /// <param name="pendingPrimaryDetails"></param> /// <param name="pendingPrimaryDetail"></param> /// <param name="fileName"></param> public WizardDetail(GoodsIssueViewModel goodsIssueViewModel, List <IPendingPrimaryDetail> pendingPrimaryDetails, IPendingPrimaryDetail pendingPrimaryDetail, string fileName) { InitializeComponent(); if (!this.UsingPack) { this.fastAvailablePacks.Dock = DockStyle.None; this.fastAvailablePacks.Visible = false; } this.toolstripChild = this.toolStripBottom; this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastAvailablePallets.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabBatch.TabPages.Add("tabAvailablePallets", "Available pallets"); this.customTabBatch.TabPages.Add("tabAvailableCartons", "Available cartons"); if (this.UsingPack) { this.customTabBatch.TabPages.Add("tabAvailablePacks", "Available packs"); } this.customTabBatch.TabPages[0].Controls.Add(this.fastAvailablePallets); this.customTabBatch.TabPages[1].Controls.Add(this.fastAvailableCartons); if (this.UsingPack) { this.customTabBatch.TabPages[2].Controls.Add(this.fastAvailablePacks); } this.customTabBatch.Dock = DockStyle.Fill; this.fastAvailablePallets.Dock = DockStyle.Fill; this.fastAvailableCartons.Dock = DockStyle.Fill; if (this.UsingPack) { this.fastAvailablePacks.Dock = DockStyle.Fill; } this.panelMaster.Controls.Add(this.customTabBatch); if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.GoodsIssue) { ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11)); } this.goodsIssueViewModel = goodsIssueViewModel; this.pendingPrimaryDetails = pendingPrimaryDetails; this.pendingPrimaryDetail = pendingPrimaryDetail; this.fileName = fileName; if (this.fileName != null) { this.toolStripBottom.Visible = true; this.fastMismatchedBarcodes.Visible = true; this.customTabBatch.TabPages.Add("tabMismatchedBarcodes", "Mismatched Barcodes"); this.customTabBatch.TabPages[this.customTabBatch.TabPages.Count - 1].Controls.Add(this.fastMismatchedBarcodes); this.fastMismatchedBarcodes.Dock = DockStyle.Fill; } }
public WizardDetail(GoodsReceiptAPIs goodsReceiptAPIs, GoodsReceiptViewModel goodsReceiptViewModel) { 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.goodsReceiptAPIs = goodsReceiptAPIs; this.goodsReceiptViewModel = goodsReceiptViewModel; this.olvCartonSelected.HeaderCheckState = this.goodsReceiptViewModel.GoodsReceiptTypeID == (int)GlobalEnums.GoodsReceiptTypeID.Pickup ? CheckState.Checked : CheckState.Unchecked; this.olvPalletSelected.HeaderCheckState = this.goodsReceiptViewModel.GoodsReceiptTypeID == (int)GlobalEnums.GoodsReceiptTypeID.Pickup ? CheckState.Checked : CheckState.Unchecked; this.menuOptionBinLocations.Visible = this.goodsReceiptViewModel.GoodsReceiptTypeID == (int)GlobalEnums.GoodsReceiptTypeID.GoodsIssueTransfer; }
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; }
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 static TabStyleProvider CreateProvider(CustomTabControl tabControl) { TabStyleProvider provider = null; // Depending on the display style of the tabControl generate an appropriate provider. switch (tabControl.DisplayStyle) { case TabStyle.None: provider = new TabStyleNoneProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.Default: provider = new TabStyleDefaultProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.Angled: provider = new TabStyleAngledProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.Rounded: provider = new TabStyleRoundedProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.VisualStudio: provider = new TabStyleVisualStudioProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.Chrome: provider = new TabStyleChromeProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.IE8: provider = new TabStyleIE8Provider(tabControl); break; // TODO: might not be correct. Was : Exit Select case TabStyle.VS2010: provider = new TabStyleVS2010Provider(tabControl); break; // TODO: might not be correct. Was : Exit Select default: provider = new TabStyleDefaultProvider(tabControl); break; // TODO: might not be correct. Was : Exit Select } provider._Style = tabControl.DisplayStyle; return(provider); }
public TabStyleVisualStudioProvider(CustomTabControl tabControl) : base(tabControl) { this._ImageAlign = ContentAlignment.MiddleRight; this._Overlap = 7; // Must set after the _Radius as this is used in the calculations of the actual padding this.Padding = new Point(14, 1); }
public TabStyleIE8Provider(CustomTabControl tabControl) : base(tabControl) { this._Radius = 3; this._ShowTabCloser = true; this._CloserColorActive = Color.Red; // Must set after the _Radius as this is used in the calculations of the actual padding this.Padding = new Point(6, 5); }
public FormFindReplace(ref CustomTabControl editorTabControl, ref CustomTabControl infoTabControl) { InitializeComponent(); _editorTabControl = editorTabControl; _infoTabControl = infoTabControl; _searchResults = infoTabControl.TabPages[2].Controls.OfType <DarkTreeView>().First(); }
public TabStyleChromeProvider(CustomTabControl tabControl) : base(tabControl) { this._Overlap = 16; this._Radius = 16; this._ShowTabCloser = true; this._CloserColorActive = Color.White; // Must set after the _Radius as this is used in the calculations of the actual padding this.Padding = new Point(7, 5); }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); #region TabLeft this.customTabLeft = new CustomTabControl(); this.customTabLeft.DisplayStyle = TabStyle.VisualStudio; this.customTabLeft.TabPages.Add("tabLeftAA", "Delivery Advice "); this.customTabLeft.TabPages[0].BackColor = this.panelLeft.BackColor; this.customTabLeft.TabPages[0].Padding = new Padding(15, 0, 0, 0); this.customTabLeft.TabPages[0].Controls.Add(this.layoutLeft); this.customTabLeft.Dock = DockStyle.Fill; this.panelLeft.Controls.Add(this.customTabLeft); this.layoutLeft.ColumnStyles[this.layoutLeft.ColumnCount - 1].SizeType = SizeType.Absolute; this.layoutLeft.ColumnStyles[this.layoutLeft.ColumnCount - 1].Width = 15; #endregion TabLeft #region TabCenter this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.TabPages.Add("tabCenterAA", "Advice Line Details "); this.customTabCenter.TabPages.Add("tabCenterBB", "Description "); this.customTabCenter.TabPages.Add("tabCenterBB", "Remarks "); this.customTabCenter.TabPages[0].Controls.Add(this.gridexViewDetails); this.customTabCenter.TabPages[0].Controls.Add(this.toolStripPallet); this.customTabCenter.TabPages[1].Controls.Add(this.textexDescription); this.customTabCenter.TabPages[2].Controls.Add(this.textexRemarks); this.customTabCenter.TabPages[1].Padding = new Padding(30, 30, 30, 30); this.customTabCenter.TabPages[2].Padding = new Padding(30, 30, 30, 30); this.customTabCenter.TabPages[0].BackColor = this.panelCenter.BackColor; this.toolStripPallet.Dock = DockStyle.Left; this.gridexViewDetails.Dock = DockStyle.Fill; this.textexDescription.Dock = DockStyle.Fill; this.textexRemarks.Dock = DockStyle.Fill; this.customTabCenter.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabCenter); #endregion TabCenter this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].SizeType = SizeType.Absolute; this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].Width = 15; this.buttonExpandTop.Visible = this.naviGroupTop.Tag.ToString() == "Expandable"; this.buttonExpandTop_Click(this.buttonExpandTop, new EventArgs()); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
private void MainWindow_Load(object sender, EventArgs e) { //var p = new UserControls.TireDataViewerProperty(); //p.ShowDialog(); MainTabControl = mainTabControl; GraphTabControl = graphTabControl; GraphTreeView = GraphTree; State = MWState.Closed; LoadWindowSettings(); ProjectTreeView.AfterExpand += ProjectTreeView_AfterExpandChange; ProjectTreeView.AfterCollapse += ProjectTreeView_AfterExpandChange; }
public TabStyleVS2010Provider(CustomTabControl tabControl) : base(tabControl) { this._Radius = 3; this._ShowTabCloser = true; this._CloserColorActive = Color.Black; this._CloserColor = Color.FromArgb(117, 99, 61); this._TextColor = Color.White; this._TextColorDisabled = Color.WhiteSmoke; this._BorderColor = Color.Transparent; this._BorderColorHot = Color.FromArgb(155, 167, 183); // Must set after the _Radius as this is used in the calculations of the actual padding this.Padding = new Point(6, 5); }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); this.naviIndex.Bands[0].ClientArea.Controls.Add(this.fastGoodsIssueIndex); this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.TabPages.Add("tabDetailPallets", "Pallet Details "); this.customTabCenter.TabPages.Add("tabDetailPallets", "Carton Details "); this.customTabCenter.TabPages.Add("tabDescription", "Description "); this.customTabCenter.TabPages.Add("tabRemarks", "Remarks "); this.customTabCenter.TabPages[0].Controls.Add(this.gridexPalletDetails); this.customTabCenter.TabPages[1].Controls.Add(this.gridexCartonDetails); this.customTabCenter.TabPages[2].Controls.Add(this.textexDescription); this.customTabCenter.TabPages[3].Controls.Add(this.textexRemarks); this.customTabCenter.TabPages[2].Padding = new Padding(30, 30, 30, 30); this.customTabCenter.TabPages[3].Padding = new Padding(30, 30, 30, 30); this.customTabCenter.Dock = DockStyle.Fill; this.gridexPalletDetails.Dock = DockStyle.Fill; this.gridexCartonDetails.Dock = DockStyle.Fill; this.textexDescription.Dock = DockStyle.Fill; this.textexRemarks.Dock = DockStyle.Fill; this.panelMaster.Controls.Add(this.customTabCenter); this.naviDetails.ExpandedHeight = this.naviDetails.HeaderHeight + this.textexVoucherCodes.Size.Height + this.textexVehicle.Size.Height + this.textexVehicleDriver.Size.Height + 4 * 5 + 5; this.naviDetails.Expanded = false; this.labelCaption.Left = 68; this.labelCaption.Top = 12; if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.GoodsIssue) { ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11)); ViewHelpers.SetFont(this.MdiParent, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11)); } else { this.labelCaption.Top = this.labelCaption.Top + 1; } this.customTabCenter.SelectedIndexChanged += customTabCenter_SelectedIndexChanged; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); #region TabDetails CustomTabControl customTabDetails; customTabDetails = new CustomTabControl(); customTabDetails.DisplayStyle = TabStyle.VisualStudio; customTabDetails.Font = this.panelCenter.Font; customTabDetails.TabPages.Add("tabDetailsAA", "Low, High && Alert Details "); customTabDetails.TabPages[0].Controls.Add(this.gridexViewDetails); customTabDetails.TabPages[0].BackColor = this.panelCenter.BackColor; this.gridexViewDetails.Dock = DockStyle.Fill; #endregion TabDetails #region TabCenter this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.Font = this.panelCenter.Font; this.customTabCenter.TabPages.Add("tabCenterAA", "Settings "); this.customTabCenter.TabPages[0].Controls.Add(customTabDetails); this.customTabCenter.TabPages[0].Controls.Add(this.layoutTop); this.customTabCenter.TabPages[0].BackColor = this.panelCenter.BackColor; this.layoutTop.Dock = DockStyle.Top; customTabDetails.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabCenter); this.customTabCenter.Dock = DockStyle.Fill; #endregion TabCenter this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].SizeType = SizeType.Absolute; this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].Width = 15; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected override void InitializeTabControl() { try { this.comboDiscontinued.SelectedIndex = 0; this.checkAutoBarcode.Visible = GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Pail && GlobalEnums.NMVNOnly; //IF WE WANT AUTO AutoBarcode: JUST REMOVE: && GlobalEnums.NMVNOnly this.checkAutoCarton.Visible = GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Import; if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Pail || GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Medium4L || GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Import || (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Drum && !GlobalEnums.DrumWithDigit)) { this.labelNextPackNo.Visible = false; this.textexNextPackNo.Visible = false; this.labelBatchPackNo.Visible = false; this.textexBatchPackNo.Visible = false; this.olvNextPackNo.IsVisible = false;; this.olvBatchPackNo.IsVisible = false; } if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Drum) { this.labelNextCartonNo.Visible = false; this.textexNextCartonNo.Visible = false; } if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Drum && GlobalEnums.DrumWithDigit) { this.labelNextPalletNo.Visible = false; this.textexNextPalletNo.Visible = false; } if (GlobalEnums.CBPP) { this.labelCommodityAPICode.Visible = false; this.textexCommodityAPICode.Visible = false; this.olvCommodityAPICode.IsVisible = false; this.labelNextPalletNo.Visible = false; this.textexNextPalletNo.Visible = false; this.labelBatchPalletNo.Visible = false; this.textexBatchPalletNo.Visible = false; this.olvNextPalletNo.IsVisible = false; this.olvBatchPalletNo.IsVisible = false; } CustomTabControl customTabBatch = new CustomTabControl(); //customTabControlCustomerChannel.ImageList = this.imageListTabControl; customTabBatch.Font = this.textexCode.Font; customTabBatch.DisplayStyle = TabStyle.VisualStudio; customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; customTabBatch.TabPages.Add("Batch", "Batch Information "); customTabBatch.TabPages[0].Controls.Add(this.layoutMaster); this.naviBarMaster.Bands[0].ClientArea.Controls.Add(customTabBatch); customTabBatch.Dock = DockStyle.Fill; this.layoutMaster.Dock = DockStyle.Fill; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); #region TabLeft this.customTabLeft = new CustomTabControl(); this.customTabLeft.DisplayStyle = TabStyle.VisualStudio; this.customTabLeft.Font = this.panelLeft.Font; this.customTabLeft.TabPages.Add("tabLeftAA", "General "); this.customTabLeft.TabPages[0].BackColor = this.panelLeft.BackColor; this.customTabLeft.TabPages[0].Padding = new Padding(15, 0, 0, 0); this.customTabLeft.TabPages[0].Controls.Add(this.layoutLeft); this.customTabLeft.Dock = DockStyle.Fill; this.panelLeft.Controls.Add(this.customTabLeft); this.layoutLeft.ColumnStyles[this.layoutLeft.ColumnCount - 1].SizeType = SizeType.Absolute; this.layoutLeft.ColumnStyles[this.layoutLeft.ColumnCount - 1].Width = 15; #endregion TabLeft #region TabCenter this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.Font = this.panelCenter.Font; this.customTabCenter.TabPages.Add("tabCenterAA", "Customer Information "); this.customTabCenter.TabPages[0].Controls.Add(this.layoutTop); this.customTabCenter.TabPages[0].Padding = new Padding(15, 0, 0, 0); this.customTabCenter.TabPages[0].BackColor = this.panelCenter.BackColor; this.layoutTop.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabCenter); this.customTabCenter.Dock = DockStyle.Fill; #endregion TabCenter this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].SizeType = SizeType.Absolute; this.layoutTop.ColumnStyles[this.layoutTop.ColumnCount - 1].Width = 15; } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
public SearchBarcode(string barcode) { InitializeComponent(); this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.fastPacks.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.customTabBatch.TabPages.Add("tabPendingPacks", "Packs"); this.customTabBatch.TabPages.Add("tabPendingCartons", "Cartons"); this.customTabBatch.TabPages.Add("tabPendingPallets", "Pallets"); this.customTabBatch.TabPages[0].Controls.Add(this.fastPacks); this.customTabBatch.TabPages[0].Controls.Add(this.textFilterPack); this.customTabBatch.TabPages[1].Controls.Add(this.fastCartons); this.customTabBatch.TabPages[1].Controls.Add(this.textFilterCarton); this.customTabBatch.TabPages[2].Controls.Add(this.fastPallets); this.customTabBatch.TabPages[2].Controls.Add(this.textFilterPallet); this.textFilterPack.Dock = DockStyle.Top; this.textFilterCarton.Dock = DockStyle.Top; this.textFilterPallet.Dock = DockStyle.Top; this.fastPacks.Dock = DockStyle.Fill; this.fastCartons.Dock = DockStyle.Fill; this.fastPallets.Dock = DockStyle.Fill; this.customTabBatch.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabBatch); this.Text = "Search results for " + barcode.ToUpper(); this.scannerAPIs = new ScannerAPIs(CommonNinject.Kernel.Get <IPackRepository>(), CommonNinject.Kernel.Get <ICartonRepository>(), CommonNinject.Kernel.Get <IPalletRepository>()); this.fastPacks.SetObjects(this.scannerAPIs.SearchPacks(barcode)); this.fastCartons.SetObjects(this.scannerAPIs.SearchCartons(barcode)); this.fastPallets.SetObjects(this.scannerAPIs.SearchPallets(barcode)); this.customTabBatch.TabPages[0].Text = "Pack " + this.fastPacks.GetItemCount().ToString("N0") + " pack" + (this.fastPacks.GetItemCount() > 1 ? "s" : ""); this.customTabBatch.TabPages[1].Text = "Carton: " + this.fastCartons.GetItemCount().ToString("N0") + " carton" + (this.fastCartons.GetItemCount() > 1 ? "s" : ""); this.customTabBatch.TabPages[2].Text = "Pallet: " + this.fastPallets.GetItemCount().ToString("N0") + " pallet" + (this.fastPallets.GetItemCount() > 1 ? "s" : ""); this.customTabBatch.SelectedIndexChanged += customTabBatch_SelectedIndexChanged; //this.customTabBatch.SelectedIndexChanged += ; }
private void InitializeTabControl() { CustomTabControl customTabControlDetail = new CustomTabControl(); customTabControlDetail.ImageList = this.imageListTabControl; customTabControlDetail.TabPages.Add("Detail", "Request Detail ", 1); customTabControlDetail.TabPages[0].Controls.Add(this.dataGridViewMarketingIncentiveDetail); this.dataGridViewMarketingIncentiveDetail.Dock = DockStyle.Fill; customTabControlDetail.DisplayStyle = TabStyle.VisualStudio; customTabControlDetail.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.naviGroupDetails.Controls.Add(customTabControlDetail); this.naviGroupDetails.Controls.SetChildIndex(customTabControlDetail, 0); customTabControlDetail.Dock = DockStyle.Fill; }
protected TabStyleProvider(CustomTabControl tabControl) { this._TabControl = tabControl; this._BorderColor = Color.Empty; this._BorderColorSelected = Color.Empty; this._FocusColor = Color.Orange; if (this._TabControl.RightToLeftLayout){ this._ImageAlign = ContentAlignment.MiddleRight; } else { this._ImageAlign = ContentAlignment.MiddleLeft; } this.HotTrack = true; // Must set after the _Overlap as this is used in the calculations of the actual padding this.Padding = new Point(6,3); }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); this.tabPageWarehouses = new TabPage("Locations"); this.tabPageWarehouses.Tag = (int)GlobalEnums.ReportTabPageID.TabPageWarehouses; this.tabPageCommodities = new TabPage("Commodities"); this.tabPageCommodities.Tag = (int)GlobalEnums.ReportTabPageID.TabPageCommodities; this.tabPageCustomers = new TabPage("Customers"); this.tabPageCustomers.Tag = (int)GlobalEnums.ReportTabPageID.TabPageCustomers; this.tabPageWarehouseIssues = new TabPage("Source Warehouses"); this.tabPageWarehouseIssues.Tag = (int)GlobalEnums.ReportTabPageID.TabPageWarehouseIssues; this.tabPageWarehouseReceipts = new TabPage("Destination Warehouses"); this.tabPageWarehouseReceipts.Tag = (int)GlobalEnums.ReportTabPageID.TabPageWarehouseReceipts; this.tabPageWarehouseAdjustmentTypes = new TabPage("Adjustment Types"); this.tabPageWarehouseAdjustmentTypes.Tag = (int)GlobalEnums.ReportTabPageID.TabPageWarehouseAdjustmentTypes; this.tabPages = new TabPage[] { this.tabPageWarehouses, this.tabPageCommodities, this.tabPageCustomers, this.tabPageWarehouseIssues, this.tabPageWarehouseReceipts, this.tabPageWarehouseAdjustmentTypes }; this.customTabBatch = new CustomTabControl(); this.customTabBatch.Font = this.treeWarehouseID.Font; this.customTabBatch.DisplayStyle = TabStyle.VisualStudio; this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft; this.tabPageWarehouses.Controls.Add(this.panelWarehouseID); this.tabPageCommodities.Controls.Add(this.panelCommodities); this.tabPageCustomers.Controls.Add(this.panelCustomers); this.tabPageWarehouseIssues.Controls.Add(this.panelWarehouseIssueID); this.tabPageWarehouseReceipts.Controls.Add(this.panelWarehouseReceiptID); this.tabPageWarehouseAdjustmentTypes.Controls.Add(this.panelWarehouseAdjustmentTypeID); this.panelWarehouseID.Dock = DockStyle.Fill; this.panelCommodities.Dock = DockStyle.Fill; this.panelCustomers.Dock = DockStyle.Fill; this.panelWarehouseIssueID.Dock = DockStyle.Fill; this.panelWarehouseReceiptID.Dock = DockStyle.Fill; this.panelWarehouseAdjustmentTypeID.Dock = DockStyle.Fill; this.customTabBatch.Dock = DockStyle.Fill; this.panelCenter.Controls.Add(this.customTabBatch); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected override void InitializeTabControl() { try { base.InitializeTabControl(); this.naviIndex.Bands[0].ClientArea.Controls.Add(this.fastPickupIndex); this.customTabCenter = new CustomTabControl(); this.customTabCenter.DisplayStyle = TabStyle.VisualStudio; this.customTabCenter.TabPages.Add("tabDetailPallets", "Pickup pallet list "); this.customTabCenter.TabPages.Add("tabDescription", "Description "); this.customTabCenter.TabPages.Add("tabRemarks", "Remarks "); this.customTabCenter.TabPages[0].Controls.Add(this.gridexPalletDetails); this.customTabCenter.TabPages[1].Controls.Add(this.textexDescription); this.customTabCenter.TabPages[2].Controls.Add(this.textexRemarks); this.customTabCenter.TabPages[1].Padding = new Padding(30, 30, 30, 30); this.customTabCenter.TabPages[2].Padding = new Padding(30, 30, 30, 30); this.customTabCenter.Dock = DockStyle.Fill; this.gridexPalletDetails.Dock = DockStyle.Fill; this.textexDescription.Dock = DockStyle.Fill; this.textexRemarks.Dock = DockStyle.Fill; this.panelMaster.Controls.Add(this.customTabCenter); this.naviDetails.ExpandedHeight = this.naviDetails.HeaderHeight + this.textexTotalPalletCounts.Size.Height + this.textexTotalQuantity.Size.Height + this.textexTotalLineVolume.Size.Height + 5 + 4 * 10 + 6; this.naviDetails.Expanded = false; this.labelFillingLineName.Left = 78; this.labelFillingLineName.Top = 12; if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Pickup) { ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11)); } //ViewHelpers.SetFont(this.MdiParent, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11)); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
protected TabStyleProvider(CustomTabControl tabControl) { this._TabControl = tabControl; this._BorderColor = Color.Empty; this._BorderColorSelected = Color.Empty; this._FocusColor = Color.Orange; if (this._TabControl.RightToLeftLayout) { this._ImageAlign = ContentAlignment.MiddleRight; } else { this._ImageAlign = ContentAlignment.MiddleLeft; } this.HotTrack = true; // Must set after the _Overlap as this is used in the calculations of the actual padding this.Padding = new Point(6, 3); }
public TabStyleNoneProvider(CustomTabControl tabControl) : base(tabControl) { }
public static TabStyleProvider CreateProvider(CustomTabControl tabControl) { TabStyleProvider provider; // Depending on the display style of the tabControl generate an appropriate provider. switch (tabControl.DisplayStyle) { case TabStyle.None: provider = new TabStyleNoneProvider(tabControl); break; case TabStyle.Default: provider = new TabStyleDefaultProvider(tabControl); break; case TabStyle.Angled: provider = new TabStyleAngledProvider(tabControl); break; case TabStyle.Rounded: provider = new TabStyleRoundedProvider(tabControl); break; case TabStyle.VisualStudio: provider = new TabStyleVisualStudioProvider(tabControl); break; case TabStyle.Chrome: provider = new TabStyleChromeProvider(tabControl); break; case TabStyle.IE8: provider = new TabStyleIE8Provider(tabControl); break; case TabStyle.VS2010: provider = new TabStyleVS2010Provider(tabControl); break; default: provider = new TabStyleDefaultProvider(tabControl); break; } provider._Style = tabControl.DisplayStyle; return provider; }
private void add_cbCommType_SelectedIndexChanged(object sender, EventArgs e) { add_tcInnerPages = new CustomTabControl(); var specalism = (CommunicatorType) add_cbCommType.SelectedItem; switch (specalism) { case CommunicatorType.FlatFile: _communicator = new FileCommunicator(); add_tcInnerPagesSourceSetting.SelectedTab = pFlatFile; break; case CommunicatorType.Serial: _communicator = new SerialCommunicator(); add_tcInnerPagesSourceSetting.SelectedTab = pSerial; break; case CommunicatorType.Database: _communicator = new DatabaseCommunicator(); add_tcInnerPagesSourceSetting.SelectedTab = pDatabase; break; default: break; } }
public TabStyleDefaultProvider(CustomTabControl tabControl) : base(tabControl) { this._FocusTrack = true; this._Radius = 2; }