// Metodo Refrescar e y listar Polizas public void Refrescar_pol(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Listar_DB_Polizas(Datagrid_receptor); Cambiar_Columns_Poliza(Datagrid_receptor); Datagrid_receptor.AutoResizeColumnHeadersHeight(); }
// Refrescar y listar Tomadores public void Refrescar_tom(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Listar_DB_Tomadores(Datagrid_receptor); Cambiar_Columns_Tomadores(Datagrid_receptor); Datagrid_receptor.ColumnHeadersHeight = 50; }
// Refrescar y listar vehiculos public void Refrescar_veh(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Listar_DB_Vehiculos(Datagrid_receptor); Cambiar_Columns_Vehiculos(Datagrid_receptor); Datagrid_receptor.AutoResizeColumnHeadersHeight(); }
// Refrescar tabla public void Refrescar_Vig_Soat(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Listar_DB_Vigencia_Soat(Datagrid_receptor); Cambiar_Columns_Vig_Soat(Datagrid_receptor); Datagrid_receptor.AutoResizeColumnHeadersHeight(); }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSafetyRiskManagement)); var BorderEdges3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties5 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties6 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties7 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties8 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle4 = new DataGridViewCellStyle(); var DataGridViewCellStyle5 = new DataGridViewCellStyle(); var DataGridViewCellStyle6 = new DataGridViewCellStyle(); Label2 = new Label(); GroupBox1 = new GroupBox(); _btnSearch = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnSearch.Click += new EventHandler(btnSearch_Click); endDateTimePicker = new Bunifu.UI.WinForms.BunifuDatePicker(); yardComboBox = new Bunifu.UI.WinForms.BunifuDropdown(); startDateTimePicker = new Bunifu.UI.WinForms.BunifuDatePicker(); _btnPrintReport = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnPrintReport.Click += new EventHandler(btnPrintReport_Click); typeComboBox = new Bunifu.UI.WinForms.BunifuDropdown(); BunifuLabel3 = new Bunifu.UI.WinForms.BunifuLabel(); BunifuLabel2 = new Bunifu.UI.WinForms.BunifuLabel(); BunifuLabel1 = new Bunifu.UI.WinForms.BunifuLabel(); rblHoursPerSite = new Bunifu.UI.WinForms.BunifuRadioButton(); rblHoursPerSiteType = new Bunifu.UI.WinForms.BunifuRadioButton(); rblHoursPerEmployeeSite = new Bunifu.UI.WinForms.BunifuRadioButton(); Label1 = new Label(); Label5 = new Label(); Label4 = new Label(); Label3 = new Label(); dgvEmployees = new Bunifu.UI.WinForms.BunifuDataGridView(); BunifuLabel4 = new Bunifu.UI.WinForms.BunifuLabel(); lblTotHours = new Bunifu.UI.WinForms.BunifuLabel(); _closeLabel = new Label(); _closeLabel.Click += new EventHandler(closeLabel_Click); Label6 = new Label(); GroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)dgvEmployees).BeginInit(); SuspendLayout(); // // Label2 // Label2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label2.Dock = DockStyle.Top; Label2.Font = new Font("Microsoft Sans Serif", 22.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.White; Label2.Location = new Point(0, 0); Label2.Name = "Label2"; Label2.Size = new Size(1099, 41); Label2.TabIndex = 3; Label2.TextAlign = ContentAlignment.MiddleCenter; // // GroupBox1 // GroupBox1.Controls.Add(_btnSearch); GroupBox1.Controls.Add(endDateTimePicker); GroupBox1.Controls.Add(yardComboBox); GroupBox1.Controls.Add(startDateTimePicker); GroupBox1.Controls.Add(_btnPrintReport); GroupBox1.Controls.Add(typeComboBox); GroupBox1.Controls.Add(BunifuLabel3); GroupBox1.Controls.Add(BunifuLabel2); GroupBox1.Controls.Add(BunifuLabel1); GroupBox1.Controls.Add(rblHoursPerSite); GroupBox1.Controls.Add(rblHoursPerSiteType); GroupBox1.Controls.Add(rblHoursPerEmployeeSite); GroupBox1.Controls.Add(Label1); GroupBox1.Controls.Add(Label5); GroupBox1.Controls.Add(Label4); GroupBox1.Controls.Add(Label3); GroupBox1.Font = new Font("Microsoft Sans Serif", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); GroupBox1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); GroupBox1.Location = new Point(57, 90); GroupBox1.Name = "GroupBox1"; GroupBox1.Size = new Size(1030, 107); GroupBox1.TabIndex = 7; GroupBox1.TabStop = false; GroupBox1.Text = "1 - Filters"; // // btnSearch // _btnSearch.AllowToggling = false; _btnSearch.AnimationSpeed = 200; _btnSearch.AutoGenerateColors = false; _btnSearch.BackColor = Color.Transparent; _btnSearch.BackColor1 = Color.Teal; _btnSearch.BackgroundImage = (Image)resources.GetObject("btnSearch.BackgroundImage"); _btnSearch.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnSearch.ButtonText = "Search"; _btnSearch.ButtonTextMarginLeft = 0; _btnSearch.ColorContrastOnClick = 45; _btnSearch.ColorContrastOnHover = 45; _btnSearch.Cursor = Cursors.Hand; BorderEdges3.BottomLeft = true; BorderEdges3.BottomRight = true; BorderEdges3.TopLeft = true; BorderEdges3.TopRight = true; _btnSearch.CustomizableEdges = BorderEdges3; _btnSearch.DialogResult = DialogResult.None; _btnSearch.DisabledBorderColor = Color.Empty; _btnSearch.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnSearch.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnSearch.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnSearch.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnSearch.ForeColor = Color.White; _btnSearch.IconLeftCursor = Cursors.Hand; _btnSearch.IconMarginLeft = 11; _btnSearch.IconPadding = 10; _btnSearch.IconRightCursor = Cursors.Hand; _btnSearch.IdleBorderColor = Color.Teal; _btnSearch.IdleBorderRadius = 3; _btnSearch.IdleBorderThickness = 1; _btnSearch.IdleFillColor = Color.Teal; _btnSearch.IdleIconLeftImage = null; _btnSearch.IdleIconRightImage = null; _btnSearch.IndicateFocus = true; _btnSearch.Location = new Point(900, 11); _btnSearch.Name = "_btnSearch"; StateProperties5.BorderColor = Color.MediumTurquoise; StateProperties5.BorderRadius = 3; StateProperties5.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties5.BorderThickness = 1; StateProperties5.FillColor = Color.MediumTurquoise; StateProperties5.ForeColor = Color.White; StateProperties5.IconLeftImage = null; StateProperties5.IconRightImage = null; _btnSearch.onHoverState = StateProperties5; StateProperties6.BorderColor = Color.Teal; StateProperties6.BorderRadius = 3; StateProperties6.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties6.BorderThickness = 1; StateProperties6.FillColor = Color.Teal; StateProperties6.ForeColor = Color.White; StateProperties6.IconLeftImage = null; StateProperties6.IconRightImage = null; _btnSearch.OnPressedState = StateProperties6; _btnSearch.Size = new Size(128, 38); _btnSearch.TabIndex = 68; _btnSearch.TextAlign = ContentAlignment.MiddleCenter; _btnSearch.TextMarginLeft = 0; _btnSearch.UseDefaultRadiusAndThickness = true; // // endDateTimePicker // endDateTimePicker.BorderRadius = 3; endDateTimePicker.Color = Color.Teal; endDateTimePicker.CustomFormat = "MMM dd, yyyy"; endDateTimePicker.DateBorderThickness = Bunifu.UI.WinForms.BunifuDatePicker.BorderThickness.Thick; endDateTimePicker.DateTextAlign = Bunifu.UI.WinForms.BunifuDatePicker.TextAlign.Left; endDateTimePicker.DisabledColor = Color.Gray; endDateTimePicker.DisplayWeekNumbers = false; endDateTimePicker.DPHeight = 0; endDateTimePicker.DropDownAlign = LeftRightAlignment.Right; endDateTimePicker.FillDatePicker = false; endDateTimePicker.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); endDateTimePicker.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); endDateTimePicker.Format = DateTimePickerFormat.Custom; endDateTimePicker.Icon = (Image)resources.GetObject("endDateTimePicker.Icon"); endDateTimePicker.IconColor = Color.Teal; endDateTimePicker.IconLocation = Bunifu.UI.WinForms.BunifuDatePicker.Indicator.Right; endDateTimePicker.Location = new Point(347, 65); endDateTimePicker.MinimumSize = new Size(214, 34); endDateTimePicker.Name = "endDateTimePicker"; endDateTimePicker.Size = new Size(214, 34); endDateTimePicker.TabIndex = 123; // // yardComboBox // yardComboBox.BackColor = Color.Snow; yardComboBox.BorderRadius = 3; yardComboBox.Color = Color.Teal; yardComboBox.Direction = Bunifu.UI.WinForms.BunifuDropdown.Directions.Down; yardComboBox.DisabledColor = Color.Gray; yardComboBox.DrawMode = DrawMode.OwnerDrawFixed; yardComboBox.DropdownBorderThickness = Bunifu.UI.WinForms.BunifuDropdown.BorderThickness.Thick; yardComboBox.DropDownStyle = ComboBoxStyle.DropDownList; yardComboBox.DropDownTextAlign = Bunifu.UI.WinForms.BunifuDropdown.TextAlign.Left; yardComboBox.FillDropDown = false; yardComboBox.FillIndicator = true; yardComboBox.FlatStyle = FlatStyle.Flat; yardComboBox.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); yardComboBox.ForeColor = SystemColors.ControlDarkDark; yardComboBox.FormattingEnabled = true; yardComboBox.Icon = null; yardComboBox.IndicatorColor = Color.Teal; yardComboBox.IndicatorLocation = Bunifu.UI.WinForms.BunifuDropdown.Indicator.Right; yardComboBox.ItemBackColor = Color.White; yardComboBox.ItemBorderColor = Color.White; yardComboBox.ItemForeColor = SystemColors.ControlDarkDark; yardComboBox.ItemHeight = 28; yardComboBox.ItemHighLightColor = Color.Gray; yardComboBox.Items.AddRange(new object[] { "All", "Ewen", "Lindsey", "Remote" }); yardComboBox.Location = new Point(92, 65); yardComboBox.MaxDropDownItems = 50; yardComboBox.Name = "yardComboBox"; yardComboBox.Size = new Size(162, 34); yardComboBox.TabIndex = 122; yardComboBox.Text = null; // // startDateTimePicker // startDateTimePicker.BorderRadius = 3; startDateTimePicker.Color = Color.Teal; startDateTimePicker.CustomFormat = "MMM dd, yyyy"; startDateTimePicker.DateBorderThickness = Bunifu.UI.WinForms.BunifuDatePicker.BorderThickness.Thick; startDateTimePicker.DateTextAlign = Bunifu.UI.WinForms.BunifuDatePicker.TextAlign.Left; startDateTimePicker.DisabledColor = Color.Gray; startDateTimePicker.DisplayWeekNumbers = false; startDateTimePicker.DPHeight = 0; startDateTimePicker.DropDownAlign = LeftRightAlignment.Right; startDateTimePicker.FillDatePicker = false; startDateTimePicker.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); startDateTimePicker.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); startDateTimePicker.Format = DateTimePickerFormat.Custom; startDateTimePicker.Icon = (Image)resources.GetObject("startDateTimePicker.Icon"); startDateTimePicker.IconColor = Color.Teal; startDateTimePicker.IconLocation = Bunifu.UI.WinForms.BunifuDatePicker.Indicator.Right; startDateTimePicker.Location = new Point(347, 25); startDateTimePicker.MinimumSize = new Size(214, 34); startDateTimePicker.Name = "startDateTimePicker"; startDateTimePicker.Size = new Size(214, 34); startDateTimePicker.TabIndex = 122; // // btnPrintReport // _btnPrintReport.AllowToggling = false; _btnPrintReport.AnimationSpeed = 200; _btnPrintReport.AutoGenerateColors = false; _btnPrintReport.BackColor = Color.Transparent; _btnPrintReport.BackColor1 = Color.DodgerBlue; _btnPrintReport.BackgroundImage = (Image)resources.GetObject("btnPrintReport.BackgroundImage"); _btnPrintReport.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnPrintReport.ButtonText = "Print"; _btnPrintReport.ButtonTextMarginLeft = 0; _btnPrintReport.ColorContrastOnClick = 45; _btnPrintReport.ColorContrastOnHover = 45; _btnPrintReport.Cursor = Cursors.Hand; BorderEdges4.BottomLeft = true; BorderEdges4.BottomRight = true; BorderEdges4.TopLeft = true; BorderEdges4.TopRight = true; _btnPrintReport.CustomizableEdges = BorderEdges4; _btnPrintReport.DialogResult = DialogResult.None; _btnPrintReport.DisabledBorderColor = Color.Empty; _btnPrintReport.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnPrintReport.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnPrintReport.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnPrintReport.Font = new Font("Segoe UI Semibold", 12.0f); _btnPrintReport.ForeColor = Color.White; _btnPrintReport.IconLeftCursor = Cursors.Hand; _btnPrintReport.IconMarginLeft = 11; _btnPrintReport.IconPadding = 10; _btnPrintReport.IconRightCursor = Cursors.Hand; _btnPrintReport.IdleBorderColor = Color.DodgerBlue; _btnPrintReport.IdleBorderRadius = 3; _btnPrintReport.IdleBorderThickness = 1; _btnPrintReport.IdleFillColor = Color.DodgerBlue; _btnPrintReport.IdleIconLeftImage = null; _btnPrintReport.IdleIconRightImage = null; _btnPrintReport.IndicateFocus = false; _btnPrintReport.Location = new Point(900, 57); _btnPrintReport.Name = "_btnPrintReport"; StateProperties7.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties7.BorderRadius = 3; StateProperties7.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties7.BorderThickness = 1; StateProperties7.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties7.ForeColor = Color.White; StateProperties7.IconLeftImage = null; StateProperties7.IconRightImage = null; _btnPrintReport.onHoverState = StateProperties7; StateProperties8.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(40)), Conversions.ToInteger(Conversions.ToByte(96)), Conversions.ToInteger(Conversions.ToByte(144))); StateProperties8.BorderRadius = 3; StateProperties8.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties8.BorderThickness = 1; StateProperties8.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(40)), Conversions.ToInteger(Conversions.ToByte(96)), Conversions.ToInteger(Conversions.ToByte(144))); StateProperties8.ForeColor = Color.White; StateProperties8.IconLeftImage = null; StateProperties8.IconRightImage = null; _btnPrintReport.OnPressedState = StateProperties8; _btnPrintReport.Size = new Size(128, 38); _btnPrintReport.TabIndex = 61; _btnPrintReport.TextAlign = ContentAlignment.MiddleCenter; _btnPrintReport.TextMarginLeft = 0; _btnPrintReport.UseDefaultRadiusAndThickness = true; // // typeComboBox // typeComboBox.BackColor = Color.Snow; typeComboBox.BorderRadius = 3; typeComboBox.Color = Color.Teal; typeComboBox.Direction = Bunifu.UI.WinForms.BunifuDropdown.Directions.Down; typeComboBox.DisabledColor = Color.Gray; typeComboBox.DrawMode = DrawMode.OwnerDrawFixed; typeComboBox.DropdownBorderThickness = Bunifu.UI.WinForms.BunifuDropdown.BorderThickness.Thick; typeComboBox.DropDownStyle = ComboBoxStyle.DropDownList; typeComboBox.DropDownTextAlign = Bunifu.UI.WinForms.BunifuDropdown.TextAlign.Left; typeComboBox.FillDropDown = false; typeComboBox.FillIndicator = true; typeComboBox.FlatStyle = FlatStyle.Flat; typeComboBox.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); typeComboBox.ForeColor = SystemColors.ControlDarkDark; typeComboBox.FormattingEnabled = true; typeComboBox.Icon = null; typeComboBox.IndicatorColor = Color.Teal; typeComboBox.IndicatorLocation = Bunifu.UI.WinForms.BunifuDropdown.Indicator.Right; typeComboBox.ItemBackColor = Color.White; typeComboBox.ItemBorderColor = Color.White; typeComboBox.ItemForeColor = SystemColors.ControlDarkDark; typeComboBox.ItemHeight = 28; typeComboBox.ItemHighLightColor = Color.Gray; typeComboBox.Items.AddRange(new object[] { "All", "Crew", "Office" }); typeComboBox.Location = new Point(92, 25); typeComboBox.MaxDropDownItems = 50; typeComboBox.Name = "typeComboBox"; typeComboBox.Size = new Size(162, 34); typeComboBox.TabIndex = 120; typeComboBox.Text = null; // // BunifuLabel3 // BunifuLabel3.AutoEllipsis = false; BunifuLabel3.CursorType = null; BunifuLabel3.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); BunifuLabel3.Location = new Point(621, 78); BunifuLabel3.Name = "BunifuLabel3"; BunifuLabel3.RightToLeft = RightToLeft.No; BunifuLabel3.Size = new Size(264, 24); BunifuLabel3.TabIndex = 25; BunifuLabel3.Text = "Hours per Employee and Site"; BunifuLabel3.TextAlignment = ContentAlignment.TopLeft; BunifuLabel3.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // BunifuLabel2 // BunifuLabel2.AutoEllipsis = false; BunifuLabel2.CursorType = null; BunifuLabel2.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel2.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); BunifuLabel2.Location = new Point(621, 50); BunifuLabel2.Name = "BunifuLabel2"; BunifuLabel2.RightToLeft = RightToLeft.No; BunifuLabel2.Size = new Size(229, 24); BunifuLabel2.TabIndex = 24; BunifuLabel2.Text = "Hours per Yard and Type"; BunifuLabel2.TextAlignment = ContentAlignment.TopLeft; BunifuLabel2.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // BunifuLabel1 // BunifuLabel1.AutoEllipsis = false; BunifuLabel1.CursorType = null; BunifuLabel1.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); BunifuLabel1.Location = new Point(621, 22); BunifuLabel1.Name = "BunifuLabel1"; BunifuLabel1.RightToLeft = RightToLeft.No; BunifuLabel1.Size = new Size(139, 24); BunifuLabel1.TabIndex = 23; BunifuLabel1.Text = "Hours per Yard"; BunifuLabel1.TextAlignment = ContentAlignment.TopLeft; BunifuLabel1.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // rblHoursPerSite // rblHoursPerSite.Checked = false; rblHoursPerSite.Location = new Point(590, 22); rblHoursPerSite.Name = "rblHoursPerSite"; rblHoursPerSite.OutlineColor = Color.Teal; rblHoursPerSite.RadioColor = Color.Teal; rblHoursPerSite.Size = new Size(25, 25); rblHoursPerSite.TabIndex = 22; rblHoursPerSite.Text = null; // // rblHoursPerSiteType // rblHoursPerSiteType.Checked = false; rblHoursPerSiteType.Location = new Point(590, 50); rblHoursPerSiteType.Name = "rblHoursPerSiteType"; rblHoursPerSiteType.OutlineColor = Color.Teal; rblHoursPerSiteType.RadioColor = Color.Teal; rblHoursPerSiteType.Size = new Size(25, 25); rblHoursPerSiteType.TabIndex = 21; rblHoursPerSiteType.Text = null; // // rblHoursPerEmployeeSite // rblHoursPerEmployeeSite.Checked = true; rblHoursPerEmployeeSite.Location = new Point(590, 76); rblHoursPerEmployeeSite.Name = "rblHoursPerEmployeeSite"; rblHoursPerEmployeeSite.OutlineColor = Color.Teal; rblHoursPerEmployeeSite.RadioColor = Color.Teal; rblHoursPerEmployeeSite.Size = new Size(25, 25); rblHoursPerEmployeeSite.TabIndex = 20; rblHoursPerEmployeeSite.Text = null; // // Label1 // Label1.AutoSize = true; Label1.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Location = new Point(260, 71); Label1.Name = "Label1"; Label1.Size = new Size(93, 24); Label1.TabIndex = 18; Label1.Text = "End Date:"; // // Label5 // Label5.AutoSize = true; Label5.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label5.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label5.Location = new Point(260, 33); Label5.Name = "Label5"; Label5.Size = new Size(94, 24); Label5.TabIndex = 11; Label5.Text = "Start Date:"; // // Label4 // Label4.AutoSize = true; Label4.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label4.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label4.Location = new Point(39, 73); Label4.Name = "Label4"; Label4.Size = new Size(54, 24); Label4.TabIndex = 9; Label4.Text = "Yard:"; // // Label3 // Label3.AutoSize = true; Label3.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label3.Location = new Point(39, 33); Label3.Name = "Label3"; Label3.Size = new Size(58, 24); Label3.TabIndex = 7; Label3.Text = "Type:"; // // dgvEmployees // dgvEmployees.AllowCustomTheming = true; dgvEmployees.AllowUserToAddRows = false; dgvEmployees.AllowUserToDeleteRows = false; dgvEmployees.AllowUserToResizeColumns = false; dgvEmployees.AllowUserToResizeRows = false; DataGridViewCellStyle4.BackColor = Color.White; DataGridViewCellStyle4.ForeColor = Color.Black; DataGridViewCellStyle4.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvEmployees.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4; dgvEmployees.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvEmployees.BackgroundColor = Color.White; dgvEmployees.BorderStyle = BorderStyle.None; dgvEmployees.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; dgvEmployees.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle5.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle5.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle5.ForeColor = Color.White; DataGridViewCellStyle5.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle5.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle5.WrapMode = DataGridViewTriState.True; dgvEmployees.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle5; dgvEmployees.ColumnHeadersHeight = 40; dgvEmployees.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; dgvEmployees.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvEmployees.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; dgvEmployees.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); dgvEmployees.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; dgvEmployees.CurrentTheme.BackColor = Color.Snow; dgvEmployees.CurrentTheme.GridColor = Color.Gray; dgvEmployees.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvEmployees.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); dgvEmployees.CurrentTheme.HeaderStyle.ForeColor = Color.White; dgvEmployees.CurrentTheme.Name = null; dgvEmployees.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; dgvEmployees.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvEmployees.CurrentTheme.RowsStyle.ForeColor = Color.Black; dgvEmployees.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; dgvEmployees.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle6.BackColor = Color.WhiteSmoke; DataGridViewCellStyle6.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle6.ForeColor = Color.Black; DataGridViewCellStyle6.SelectionBackColor = Color.Gray; DataGridViewCellStyle6.SelectionForeColor = Color.Black; DataGridViewCellStyle6.WrapMode = DataGridViewTriState.False; dgvEmployees.DefaultCellStyle = DataGridViewCellStyle6; dgvEmployees.EnableHeadersVisualStyles = false; dgvEmployees.GridColor = Color.Gray; dgvEmployees.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvEmployees.HeaderBgColor = Color.Empty; dgvEmployees.HeaderForeColor = Color.White; dgvEmployees.Location = new Point(57, 212); dgvEmployees.MultiSelect = false; dgvEmployees.Name = "dgvEmployees"; dgvEmployees.ReadOnly = true; dgvEmployees.RowHeadersVisible = false; dgvEmployees.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; dgvEmployees.RowTemplate.Height = 40; dgvEmployees.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvEmployees.Size = new Size(1024, 422); dgvEmployees.TabIndex = 58; dgvEmployees.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // BunifuLabel4 // BunifuLabel4.AutoEllipsis = false; BunifuLabel4.CursorType = null; BunifuLabel4.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel4.Location = new Point(760, 662); BunifuLabel4.Name = "BunifuLabel4"; BunifuLabel4.RightToLeft = RightToLeft.No; BunifuLabel4.Size = new Size(111, 24); BunifuLabel4.TabIndex = 26; BunifuLabel4.Text = "Total hours:"; BunifuLabel4.TextAlignment = ContentAlignment.TopLeft; BunifuLabel4.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // lblTotHours // lblTotHours.AutoEllipsis = false; lblTotHours.CursorType = null; lblTotHours.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblTotHours.Location = new Point(870, 662); lblTotHours.Name = "lblTotHours"; lblTotHours.RightToLeft = RightToLeft.No; lblTotHours.Size = new Size(86, 24); lblTotHours.TabIndex = 59; lblTotHours.Text = "TotHours"; lblTotHours.TextAlignment = ContentAlignment.TopLeft; lblTotHours.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // closeLabel // _closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeLabel.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeLabel.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeLabel.ForeColor = Color.White; _closeLabel.Location = new Point(1057, -3); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(40, 41); _closeLabel.TabIndex = 142; _closeLabel.Text = "🗙"; _closeLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label6 // Label6.AutoSize = true; Label6.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); Label6.Location = new Point(47, 58); Label6.Name = "Label6"; Label6.Size = new Size(163, 26); Label6.TabIndex = 143; Label6.Text = "Hours Worked"; // // FrmSafetyRiskManagement // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.Snow; ClientSize = new Size(1099, 705); ControlBox = false; Controls.Add(Label6); Controls.Add(_closeLabel); Controls.Add(lblTotHours); Controls.Add(BunifuLabel4); Controls.Add(dgvEmployees); Controls.Add(GroupBox1); Controls.Add(Label2); FormBorderStyle = FormBorderStyle.None; Name = "FrmSafetyRiskManagement"; StartPosition = FormStartPosition.CenterScreen; GroupBox1.ResumeLayout(false); GroupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)dgvEmployees).EndInit(); Load += new EventHandler(FrmSafetyRiskManagement_Load); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(frmReturnSplitMiniUnit)); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); _closeLabel = new Label(); _closeLabel.Click += new EventHandler(closeLabel_Click); Label12 = new Label(); gboMain = new GroupBox(); dgvMiniUnit = new Bunifu.UI.WinForms.BunifuDataGridView(); Label1 = new Label(); nudMaxSplitMU = new NumericUpDown(); lblMUSplit = new Label(); _btnCancel = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnCancel.Click += new EventHandler(btnCancel_Click); _btnReturn = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnReturn.Click += new EventHandler(btnReturn_Click); gboMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)dgvMiniUnit).BeginInit(); ((System.ComponentModel.ISupportInitialize)nudMaxSplitMU).BeginInit(); SuspendLayout(); // // closeLabel // _closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeLabel.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeLabel.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeLabel.ForeColor = Color.White; _closeLabel.Location = new Point(561, -2); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(48, 45); _closeLabel.TabIndex = 141; _closeLabel.Text = "🗙"; _closeLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label12 // Label12.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Dock = DockStyle.Top; Label12.Font = new Font("Microsoft Sans Serif", 24.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Location = new Point(0, 0); Label12.Name = "Label12"; Label12.Size = new Size(611, 46); Label12.TabIndex = 140; Label12.TextAlign = ContentAlignment.MiddleCenter; // // gboMain // gboMain.Controls.Add(dgvMiniUnit); gboMain.Controls.Add(Label1); gboMain.Controls.Add(nudMaxSplitMU); gboMain.Controls.Add(lblMUSplit); gboMain.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); gboMain.Location = new Point(13, 66); gboMain.Name = "gboMain"; gboMain.Size = new Size(584, 255); gboMain.TabIndex = 153; gboMain.TabStop = false; gboMain.Text = "GroupBox1"; // // dgvMiniUnit // dgvMiniUnit.AllowCustomTheming = true; dgvMiniUnit.AllowUserToAddRows = false; dgvMiniUnit.AllowUserToDeleteRows = false; dgvMiniUnit.AllowUserToResizeColumns = false; dgvMiniUnit.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvMiniUnit.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; dgvMiniUnit.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvMiniUnit.BackgroundColor = Color.White; dgvMiniUnit.BorderStyle = BorderStyle.None; dgvMiniUnit.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; dgvMiniUnit.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; dgvMiniUnit.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; dgvMiniUnit.ColumnHeadersHeight = 40; dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; dgvMiniUnit.CurrentTheme.BackColor = Color.Snow; dgvMiniUnit.CurrentTheme.GridColor = Color.Gray; dgvMiniUnit.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvMiniUnit.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); dgvMiniUnit.CurrentTheme.HeaderStyle.ForeColor = Color.White; dgvMiniUnit.CurrentTheme.Name = null; dgvMiniUnit.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; dgvMiniUnit.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvMiniUnit.CurrentTheme.RowsStyle.ForeColor = Color.Black; dgvMiniUnit.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; dgvMiniUnit.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; dgvMiniUnit.DefaultCellStyle = DataGridViewCellStyle3; dgvMiniUnit.EnableHeadersVisualStyles = false; dgvMiniUnit.GridColor = Color.Gray; dgvMiniUnit.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvMiniUnit.HeaderBgColor = Color.Empty; dgvMiniUnit.HeaderForeColor = Color.White; dgvMiniUnit.Location = new Point(10, 48); dgvMiniUnit.MultiSelect = false; dgvMiniUnit.Name = "dgvMiniUnit"; dgvMiniUnit.ReadOnly = true; dgvMiniUnit.RowHeadersVisible = false; dgvMiniUnit.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; dgvMiniUnit.RowTemplate.Height = 40; dgvMiniUnit.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvMiniUnit.Size = new Size(319, 191); dgvMiniUnit.TabIndex = 153; dgvMiniUnit.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // Label1 // Label1.Anchor = AnchorStyles.Left; Label1.AutoSize = true; Label1.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Location = new Point(6, 24); Label1.Name = "Label1"; Label1.Size = new Size(251, 21); Label1.TabIndex = 153; Label1.Text = "Select Mini Unit for Receive Return"; // // nudMaxSplitMU // nudMaxSplitMU.Anchor = AnchorStyles.Left; nudMaxSplitMU.Enabled = false; nudMaxSplitMU.Font = new Font("Segoe UI", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); nudMaxSplitMU.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); nudMaxSplitMU.Location = new Point(488, 60); nudMaxSplitMU.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); nudMaxSplitMU.Name = "nudMaxSplitMU"; nudMaxSplitMU.Size = new Size(74, 32); nudMaxSplitMU.TabIndex = 151; nudMaxSplitMU.TextAlign = HorizontalAlignment.Center; // // lblMUSplit // lblMUSplit.Anchor = AnchorStyles.Left; lblMUSplit.AutoSize = true; lblMUSplit.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblMUSplit.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lblMUSplit.Location = new Point(345, 65); lblMUSplit.Name = "lblMUSplit"; lblMUSplit.Size = new Size(95, 21); lblMUSplit.TabIndex = 150; lblMUSplit.Text = "M.U. Return:"; // // btnCancel // _btnCancel.AllowToggling = false; _btnCancel.Anchor = AnchorStyles.Right; _btnCancel.AnimationSpeed = 200; _btnCancel.AutoGenerateColors = false; _btnCancel.BackColor = Color.Transparent; _btnCancel.BackColor1 = Color.White; _btnCancel.BackgroundImage = (Image)resources.GetObject("btnCancel.BackgroundImage"); _btnCancel.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnCancel.ButtonText = "Cancel"; _btnCancel.ButtonTextMarginLeft = 0; _btnCancel.ColorContrastOnClick = 45; _btnCancel.ColorContrastOnHover = 45; _btnCancel.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _btnCancel.CustomizableEdges = BorderEdges1; _btnCancel.DialogResult = DialogResult.None; _btnCancel.DisabledBorderColor = Color.Empty; _btnCancel.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnCancel.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnCancel.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnCancel.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnCancel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _btnCancel.IconLeftCursor = Cursors.Hand; _btnCancel.IconMarginLeft = 11; _btnCancel.IconPadding = 10; _btnCancel.IconRightCursor = Cursors.Hand; _btnCancel.IdleBorderColor = Color.Gray; _btnCancel.IdleBorderRadius = 3; _btnCancel.IdleBorderThickness = 1; _btnCancel.IdleFillColor = Color.White; _btnCancel.IdleIconLeftImage = null; _btnCancel.IdleIconRightImage = null; _btnCancel.IndicateFocus = true; _btnCancel.Location = new Point(507, 340); _btnCancel.Name = "_btnCancel"; StateProperties1.BorderColor = Color.DarkGray; StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.DarkGray; StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; _btnCancel.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); StateProperties2.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; _btnCancel.OnPressedState = StateProperties2; _btnCancel.Size = new Size(86, 34); _btnCancel.TabIndex = 154; _btnCancel.TextAlign = ContentAlignment.MiddleCenter; _btnCancel.TextMarginLeft = 0; _btnCancel.UseDefaultRadiusAndThickness = true; // // btnReturn // _btnReturn.AllowToggling = false; _btnReturn.AnimationSpeed = 200; _btnReturn.AutoGenerateColors = false; _btnReturn.BackColor = Color.Transparent; _btnReturn.BackColor1 = Color.IndianRed; _btnReturn.BackgroundImage = (Image)resources.GetObject("btnReturn.BackgroundImage"); _btnReturn.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnReturn.ButtonText = "Return"; _btnReturn.ButtonTextMarginLeft = 0; _btnReturn.ColorContrastOnClick = 45; _btnReturn.ColorContrastOnHover = 45; _btnReturn.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _btnReturn.CustomizableEdges = BorderEdges2; _btnReturn.DialogResult = DialogResult.None; _btnReturn.DisabledBorderColor = Color.Empty; _btnReturn.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnReturn.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnReturn.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnReturn.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnReturn.ForeColor = Color.White; _btnReturn.IconLeftCursor = Cursors.Hand; _btnReturn.IconMarginLeft = 11; _btnReturn.IconPadding = 10; _btnReturn.IconRightCursor = Cursors.Hand; _btnReturn.IdleBorderColor = Color.IndianRed; _btnReturn.IdleBorderRadius = 3; _btnReturn.IdleBorderThickness = 1; _btnReturn.IdleFillColor = Color.IndianRed; _btnReturn.IdleIconLeftImage = null; _btnReturn.IdleIconRightImage = null; _btnReturn.IndicateFocus = true; _btnReturn.Location = new Point(392, 340); _btnReturn.Name = "_btnReturn"; StateProperties3.BorderColor = Color.LightCoral; StateProperties3.BorderRadius = 3; StateProperties3.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties3.BorderThickness = 1; StateProperties3.FillColor = Color.LightCoral; StateProperties3.ForeColor = Color.White; StateProperties3.IconLeftImage = null; StateProperties3.IconRightImage = null; _btnReturn.onHoverState = StateProperties3; StateProperties4.BorderColor = Color.IndianRed; StateProperties4.BorderRadius = 3; StateProperties4.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties4.BorderThickness = 1; StateProperties4.FillColor = Color.IndianRed; StateProperties4.ForeColor = Color.White; StateProperties4.IconLeftImage = null; StateProperties4.IconRightImage = null; _btnReturn.OnPressedState = StateProperties4; _btnReturn.Size = new Size(96, 34); _btnReturn.TabIndex = 156; _btnReturn.TextAlign = ContentAlignment.MiddleCenter; _btnReturn.TextMarginLeft = 0; _btnReturn.UseDefaultRadiusAndThickness = true; // // frmReturnSplitMiniUnit // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(611, 386); Controls.Add(_btnReturn); Controls.Add(_btnCancel); Controls.Add(gboMain); Controls.Add(_closeLabel); Controls.Add(Label12); FormBorderStyle = FormBorderStyle.None; Name = "frmReturnSplitMiniUnit"; StartPosition = FormStartPosition.CenterScreen; Text = "frmReturnSplitMiniUnit"; gboMain.ResumeLayout(false); gboMain.PerformLayout(); ((System.ComponentModel.ISupportInitialize)dgvMiniUnit).EndInit(); ((System.ComponentModel.ISupportInitialize)nudMaxSplitMU).EndInit(); Load += new EventHandler(frmReturnSplitMiniUnit_Load); ResumeLayout(false); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMiniBookingWarning)); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); _closeFlatButton = new Bunifu.Framework.UI.BunifuFlatButton(); _closeFlatButton.Click += new EventHandler(closeFlatButton_Click); Label8 = new Label(); buttonsPanel = new TableLayoutPanel(); _proceedButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _proceedButton.Click += new EventHandler(proceedButton_Click); _cancelButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _cancelButton.Click += new EventHandler(cancelButton_Click); Label9 = new Label(); Label3 = new Label(); Panel4 = new Panel(); _miniBkDataGridView = new Bunifu.UI.WinForms.BunifuDataGridView(); _miniBkDataGridView.CellContentClick += new DataGridViewCellEventHandler(miniBkDataGridView_CellContentClick); VWBookingMinibooking = new BindingSource(components); Column1 = new DataGridViewCheckBoxColumn(); BookingNumberDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); CustomerNameDataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn(); NumberOfContainer = new DataGridViewTextBoxColumn(); buttonsPanel.SuspendLayout(); Panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)_miniBkDataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)VWBookingMinibooking).BeginInit(); SuspendLayout(); // // closeFlatButton // _closeFlatButton.Active = false; _closeFlatButton.Activecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeFlatButton.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.BackgroundImageLayout = ImageLayout.Stretch; _closeFlatButton.BorderRadius = 0; _closeFlatButton.ButtonText = "🗙"; _closeFlatButton.Cursor = Cursors.Hand; _closeFlatButton.DisabledColor = Color.Gray; _closeFlatButton.Iconcolor = Color.Transparent; _closeFlatButton.Iconimage = null; _closeFlatButton.Iconimage_right = null; _closeFlatButton.Iconimage_right_Selected = null; _closeFlatButton.Iconimage_Selected = null; _closeFlatButton.IconMarginLeft = 0; _closeFlatButton.IconMarginRight = 0; _closeFlatButton.IconRightVisible = true; _closeFlatButton.IconRightZoom = 0d; _closeFlatButton.IconVisible = true; _closeFlatButton.IconZoom = 90.0d; _closeFlatButton.IsTab = false; _closeFlatButton.Location = new Point(555, 0); _closeFlatButton.Name = "_closeFlatButton"; _closeFlatButton.Normalcolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.OnHovercolor = Color.Gray; _closeFlatButton.OnHoverTextColor = Color.White; _closeFlatButton.selected = false; _closeFlatButton.Size = new Size(43, 41); _closeFlatButton.TabIndex = 168; _closeFlatButton.Text = "🗙"; _closeFlatButton.TextAlign = ContentAlignment.MiddleCenter; _closeFlatButton.Textcolor = Color.White; _closeFlatButton.TextFont = new Font("Microsoft Sans Serif", 18.32727f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); // // Label8 // Label8.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label8.Dock = DockStyle.Top; Label8.Font = new Font("Segoe UI", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label8.ForeColor = Color.White; Label8.Location = new Point(0, 0); Label8.Name = "Label8"; Label8.Size = new Size(598, 41); Label8.TabIndex = 167; Label8.TextAlign = ContentAlignment.MiddleCenter; // // buttonsPanel // buttonsPanel.Anchor = AnchorStyles.None; buttonsPanel.ColumnCount = 2; buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.0f)); buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.0f)); buttonsPanel.Controls.Add(_proceedButton, 0, 0); buttonsPanel.Controls.Add(_cancelButton, 1, 0); buttonsPanel.Location = new Point(185, 459); buttonsPanel.Name = "buttonsPanel"; buttonsPanel.RowCount = 1; buttonsPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50.0f)); buttonsPanel.Size = new Size(217, 39); buttonsPanel.TabIndex = 169; // // proceedButton // _proceedButton.AllowToggling = false; _proceedButton.AnimationSpeed = 200; _proceedButton.AutoGenerateColors = false; _proceedButton.BackColor = Color.Transparent; _proceedButton.BackColor1 = Color.Teal; _proceedButton.BackgroundImage = (Image)resources.GetObject("proceedButton.BackgroundImage"); _proceedButton.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _proceedButton.ButtonText = "Proceed"; _proceedButton.ButtonTextMarginLeft = 0; _proceedButton.ColorContrastOnClick = 45; _proceedButton.ColorContrastOnHover = 45; _proceedButton.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _proceedButton.CustomizableEdges = BorderEdges1; _proceedButton.DialogResult = DialogResult.None; _proceedButton.DisabledBorderColor = Color.Empty; _proceedButton.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _proceedButton.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _proceedButton.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _proceedButton.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _proceedButton.ForeColor = Color.White; _proceedButton.IconLeftCursor = Cursors.Hand; _proceedButton.IconMarginLeft = 11; _proceedButton.IconPadding = 10; _proceedButton.IconRightCursor = Cursors.Hand; _proceedButton.IdleBorderColor = Color.Teal; _proceedButton.IdleBorderRadius = 3; _proceedButton.IdleBorderThickness = 1; _proceedButton.IdleFillColor = Color.Teal; _proceedButton.IdleIconLeftImage = null; _proceedButton.IdleIconRightImage = null; _proceedButton.IndicateFocus = true; _proceedButton.Location = new Point(3, 3); _proceedButton.Name = "_proceedButton"; StateProperties1.BorderColor = Color.MediumTurquoise; StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.MediumTurquoise; StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; _proceedButton.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.Teal; StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.Teal; StateProperties2.ForeColor = Color.White; StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; _proceedButton.OnPressedState = StateProperties2; _proceedButton.Size = new Size(102, 33); _proceedButton.TabIndex = 136; _proceedButton.TextAlign = ContentAlignment.MiddleCenter; _proceedButton.TextMarginLeft = 0; _proceedButton.UseDefaultRadiusAndThickness = true; // // cancelButton // _cancelButton.AllowToggling = false; _cancelButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _cancelButton.AnimationSpeed = 200; _cancelButton.AutoGenerateColors = false; _cancelButton.BackColor = Color.Transparent; _cancelButton.BackColor1 = Color.White; _cancelButton.BackgroundImage = (Image)resources.GetObject("cancelButton.BackgroundImage"); _cancelButton.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _cancelButton.ButtonText = "Cancel"; _cancelButton.ButtonTextMarginLeft = 0; _cancelButton.ColorContrastOnClick = 45; _cancelButton.ColorContrastOnHover = 45; _cancelButton.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _cancelButton.CustomizableEdges = BorderEdges2; _cancelButton.DialogResult = DialogResult.None; _cancelButton.DisabledBorderColor = Color.Empty; _cancelButton.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _cancelButton.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _cancelButton.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _cancelButton.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _cancelButton.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _cancelButton.IconLeftCursor = Cursors.Hand; _cancelButton.IconMarginLeft = 11; _cancelButton.IconPadding = 10; _cancelButton.IconRightCursor = Cursors.Hand; _cancelButton.IdleBorderColor = Color.Gray; _cancelButton.IdleBorderRadius = 3; _cancelButton.IdleBorderThickness = 1; _cancelButton.IdleFillColor = Color.White; _cancelButton.IdleIconLeftImage = null; _cancelButton.IdleIconRightImage = null; _cancelButton.IndicateFocus = true; _cancelButton.Location = new Point(111, 3); _cancelButton.Name = "_cancelButton"; StateProperties3.BorderColor = Color.DarkGray; StateProperties3.BorderRadius = 3; StateProperties3.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties3.BorderThickness = 1; StateProperties3.FillColor = Color.DarkGray; StateProperties3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties3.IconLeftImage = null; StateProperties3.IconRightImage = null; _cancelButton.onHoverState = StateProperties3; StateProperties4.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties4.BorderRadius = 3; StateProperties4.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties4.BorderThickness = 1; StateProperties4.FillColor = Color.White; StateProperties4.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties4.IconLeftImage = null; StateProperties4.IconRightImage = null; _cancelButton.OnPressedState = StateProperties4; _cancelButton.Size = new Size(103, 33); _cancelButton.TabIndex = 137; _cancelButton.TextAlign = ContentAlignment.MiddleCenter; _cancelButton.TextMarginLeft = 0; _cancelButton.UseDefaultRadiusAndThickness = true; // // Label9 // Label9.Anchor = AnchorStyles.None; Label9.AutoSize = true; Label9.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label9.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); Label9.Location = new Point(24, 54); Label9.Margin = new Padding(0); Label9.Name = "Label9"; Label9.Size = new Size(280, 21); Label9.TabIndex = 170; Label9.Text = "Choose Minibookings to be assigned"; Label9.TextAlign = ContentAlignment.MiddleRight; // // Label3 // Label3.Anchor = AnchorStyles.None; Label3.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label3.Location = new Point(29, 79); Label3.Margin = new Padding(0); Label3.Name = "Label3"; Label3.Size = new Size(560, 51); Label3.TabIndex = 171; Label3.Text = "The selected bookings has mini bookings. Please, select the mini bookings you wis" + "h to assign to the unit sources."; Label3.TextAlign = ContentAlignment.MiddleLeft; // // Panel4 // Panel4.Anchor = AnchorStyles.None; Panel4.BorderStyle = BorderStyle.FixedSingle; Panel4.Controls.Add(_miniBkDataGridView); Panel4.Location = new Point(24, 142); Panel4.Name = "Panel4"; Panel4.Size = new Size(545, 301); Panel4.TabIndex = 172; // // miniBkDataGridView // _miniBkDataGridView.AllowCustomTheming = true; _miniBkDataGridView.AllowUserToAddRows = false; _miniBkDataGridView.AllowUserToDeleteRows = false; _miniBkDataGridView.AllowUserToOrderColumns = true; _miniBkDataGridView.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _miniBkDataGridView.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; _miniBkDataGridView.AutoGenerateColumns = false; _miniBkDataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; _miniBkDataGridView.BackgroundColor = Color.White; _miniBkDataGridView.BorderStyle = BorderStyle.None; _miniBkDataGridView.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; _miniBkDataGridView.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText; _miniBkDataGridView.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; _miniBkDataGridView.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; _miniBkDataGridView.ColumnHeadersHeight = 30; _miniBkDataGridView.Columns.AddRange(new DataGridViewColumn[] { Column1, BookingNumberDataGridViewTextBoxColumn, CustomerNameDataGridViewTextBoxColumn1, NumberOfContainer }); _miniBkDataGridView.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; _miniBkDataGridView.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _miniBkDataGridView.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; _miniBkDataGridView.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); _miniBkDataGridView.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; _miniBkDataGridView.CurrentTheme.BackColor = Color.Snow; _miniBkDataGridView.CurrentTheme.GridColor = Color.Gray; _miniBkDataGridView.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _miniBkDataGridView.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); _miniBkDataGridView.CurrentTheme.HeaderStyle.ForeColor = Color.White; _miniBkDataGridView.CurrentTheme.Name = null; _miniBkDataGridView.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; _miniBkDataGridView.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _miniBkDataGridView.CurrentTheme.RowsStyle.ForeColor = Color.Black; _miniBkDataGridView.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; _miniBkDataGridView.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; _miniBkDataGridView.DataSource = VWBookingMinibooking; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; _miniBkDataGridView.DefaultCellStyle = DataGridViewCellStyle3; _miniBkDataGridView.Dock = DockStyle.Fill; _miniBkDataGridView.EnableHeadersVisualStyles = false; _miniBkDataGridView.GridColor = Color.Gray; _miniBkDataGridView.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _miniBkDataGridView.HeaderBgColor = Color.Empty; _miniBkDataGridView.HeaderForeColor = Color.White; _miniBkDataGridView.Location = new Point(0, 0); _miniBkDataGridView.MultiSelect = false; _miniBkDataGridView.Name = "_miniBkDataGridView"; _miniBkDataGridView.ReadOnly = true; _miniBkDataGridView.RowHeadersVisible = false; _miniBkDataGridView.RowHeadersWidth = 51; _miniBkDataGridView.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; _miniBkDataGridView.RowTemplate.Height = 30; _miniBkDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _miniBkDataGridView.Size = new Size(543, 299); _miniBkDataGridView.TabIndex = 175; _miniBkDataGridView.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // VWBookingMinibooking // VWBookingMinibooking.DataSource = typeof(ModelLayer.VW_BookingMinibooking); // // Column1 // Column1.FillWeight = 36.33178f; Column1.HeaderText = ""; Column1.Name = "Column1"; Column1.ReadOnly = true; // // BookingNumberDataGridViewTextBoxColumn // BookingNumberDataGridViewTextBoxColumn.DataPropertyName = "MinibookingNumber"; BookingNumberDataGridViewTextBoxColumn.FillWeight = 145.4501f; BookingNumberDataGridViewTextBoxColumn.HeaderText = "Booking #"; BookingNumberDataGridViewTextBoxColumn.Name = "BookingNumberDataGridViewTextBoxColumn"; BookingNumberDataGridViewTextBoxColumn.ReadOnly = true; // // CustomerNameDataGridViewTextBoxColumn1 // CustomerNameDataGridViewTextBoxColumn1.DataPropertyName = "CustomerName"; CustomerNameDataGridViewTextBoxColumn1.FillWeight = 211.3493f; CustomerNameDataGridViewTextBoxColumn1.HeaderText = "Customer Name"; CustomerNameDataGridViewTextBoxColumn1.Name = "CustomerNameDataGridViewTextBoxColumn1"; CustomerNameDataGridViewTextBoxColumn1.ReadOnly = true; // // NumberOfContainer // NumberOfContainer.DataPropertyName = "NumberOfContainer"; NumberOfContainer.FillWeight = 84.02622f; NumberOfContainer.HeaderText = "# Cans"; NumberOfContainer.Name = "NumberOfContainer"; NumberOfContainer.ReadOnly = true; // // FrmMiniBookingWarning // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(598, 510); Controls.Add(Panel4); Controls.Add(Label3); Controls.Add(Label9); Controls.Add(buttonsPanel); Controls.Add(_closeFlatButton); Controls.Add(Label8); FormBorderStyle = FormBorderStyle.None; Name = "FrmMiniBookingWarning"; Text = "FrmMiniUnitWarning"; buttonsPanel.ResumeLayout(false); Panel4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)_miniBkDataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)VWBookingMinibooking).EndInit(); Load += new EventHandler(FrmMiniBookingWarning_Load); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { var DataGridViewCellStyle13 = new DataGridViewCellStyle(); var DataGridViewCellStyle14 = new DataGridViewCellStyle(); var DataGridViewCellStyle16 = new DataGridViewCellStyle(); var DataGridViewCellStyle15 = new DataGridViewCellStyle(); employeeNameLabel = new Label(); dateLabel = new Label(); Label9 = new Label(); TableLayoutPanel3 = new TableLayoutPanel(); Label11 = new Label(); deviceNameLabel = new Label(); siteLocationLabel = new Label(); Label10 = new Label(); Label1 = new Label(); modifiedOnLabel = new Label(); TableLayoutPanel4 = new TableLayoutPanel(); Label6 = new Label(); workDoneLabel = new Label(); Panel4 = new Panel(); _entryDetailsDataGrid = new Bunifu.UI.WinForms.BunifuDataGridView(); _entryDetailsDataGrid.SelectionChanged += new EventHandler(entryDetailsDataGrid_SelectionChanged); reasonLabel = new CustomizedControlsLibrary.ShapedLabel(); _closeLabel = new Label(); _closeLabel.MouseHover += new EventHandler(closeLabel_MouseHover); _closeLabel.MouseLeave += new EventHandler(closeLabel_MouseLeave); _closeLabel.Click += new EventHandler(closeLabel_Click); Label12 = new Label(); Column6 = new DataGridViewTextBoxColumn(); Column1 = new DataGridViewTextBoxColumn(); Column2 = new DataGridViewTextBoxColumn(); Column4 = new DataGridViewTextBoxColumn(); Column3 = new DataGridViewTextBoxColumn(); Column5 = new DataGridViewTextBoxColumn(); Column7 = new DataGridViewTextBoxColumn(); Column8 = new DataGridViewTextBoxColumn(); Column9 = new DataGridViewTextBoxColumn(); Column10 = new DataGridViewTextBoxColumn(); Column11 = new DataGridViewTextBoxColumn(); TableLayoutPanel3.SuspendLayout(); TableLayoutPanel4.SuspendLayout(); Panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)_entryDetailsDataGrid).BeginInit(); SuspendLayout(); // // employeeNameLabel // employeeNameLabel.BackColor = Color.White; employeeNameLabel.Font = new Font("Segoe UI Semibold", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); employeeNameLabel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); employeeNameLabel.Location = new Point(45, 49); employeeNameLabel.Margin = new Padding(1, 0, 1, 0); employeeNameLabel.Name = "employeeNameLabel"; employeeNameLabel.Size = new Size(319, 39); employeeNameLabel.TabIndex = 11; employeeNameLabel.Text = "John Doe"; employeeNameLabel.TextAlign = ContentAlignment.MiddleLeft; // // dateLabel // dateLabel.BackColor = Color.White; dateLabel.BorderStyle = BorderStyle.FixedSingle; dateLabel.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); dateLabel.ForeColor = Color.DimGray; dateLabel.Location = new Point(225, 89); dateLabel.Margin = new Padding(1, 0, 1, 0); dateLabel.Name = "dateLabel"; dateLabel.Size = new Size(165, 33); dateLabel.TabIndex = 16; dateLabel.Text = "Jan 9, 2019"; dateLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label9 // Label9.AutoSize = true; Label9.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold); Label9.Location = new Point(59, 359); Label9.Margin = new Padding(1, 0, 1, 0); Label9.Name = "Label9"; Label9.Size = new Size(63, 25); Label9.TabIndex = 14; Label9.Text = "Notes"; // // TableLayoutPanel3 // TableLayoutPanel3.ColumnCount = 2; TableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 42.71844f)); TableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 57.28156f)); TableLayoutPanel3.Controls.Add(Label11, 0, 0); TableLayoutPanel3.Controls.Add(deviceNameLabel, 1, 1); TableLayoutPanel3.Controls.Add(siteLocationLabel, 1, 0); TableLayoutPanel3.Controls.Add(Label10, 0, 1); TableLayoutPanel3.Controls.Add(Label1, 0, 2); TableLayoutPanel3.Controls.Add(modifiedOnLabel, 1, 2); TableLayoutPanel3.Location = new Point(590, 120); TableLayoutPanel3.Margin = new Padding(1); TableLayoutPanel3.Name = "TableLayoutPanel3"; TableLayoutPanel3.RowCount = 3; TableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f)); TableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 35.10638f)); TableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 31.91489f)); TableLayoutPanel3.Size = new Size(412, 94); TableLayoutPanel3.TabIndex = 18; // // Label11 // Label11.Anchor = AnchorStyles.Top | AnchorStyles.Right; Label11.AutoSize = true; Label11.BackColor = Color.White; Label11.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label11.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label11.Location = new Point(47, 0); Label11.Margin = new Padding(1, 0, 1, 0); Label11.Name = "Label11"; Label11.Size = new Size(127, 25); Label11.TabIndex = 1; Label11.Text = "Site Location:"; Label11.TextAlign = ContentAlignment.MiddleCenter; // // deviceNameLabel // deviceNameLabel.AutoSize = true; deviceNameLabel.BackColor = Color.White; deviceNameLabel.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); deviceNameLabel.Location = new Point(176, 31); deviceNameLabel.Margin = new Padding(1, 0, 1, 0); deviceNameLabel.Name = "deviceNameLabel"; deviceNameLabel.Size = new Size(45, 25); deviceNameLabel.TabIndex = 13; deviceNameLabel.Text = "N/A"; deviceNameLabel.TextAlign = ContentAlignment.MiddleCenter; // // siteLocationLabel // siteLocationLabel.AutoSize = true; siteLocationLabel.BackColor = Color.White; siteLocationLabel.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); siteLocationLabel.Location = new Point(176, 0); siteLocationLabel.Margin = new Padding(1, 0, 1, 0); siteLocationLabel.Name = "siteLocationLabel"; siteLocationLabel.Size = new Size(45, 25); siteLocationLabel.TabIndex = 11; siteLocationLabel.Text = "N/A"; siteLocationLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label10 // Label10.Anchor = AnchorStyles.Top | AnchorStyles.Right; Label10.BackColor = Color.White; Label10.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label10.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label10.Location = new Point(1, 31); Label10.Margin = new Padding(1, 0, 1, 0); Label10.Name = "Label10"; Label10.Size = new Size(173, 27); Label10.TabIndex = 12; Label10.Text = "Device Name:"; Label10.TextAlign = ContentAlignment.MiddleRight; // // Label1 // Label1.Anchor = AnchorStyles.Top | AnchorStyles.Right; Label1.BackColor = Color.White; Label1.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Location = new Point(1, 63); Label1.Margin = new Padding(1, 0, 1, 0); Label1.Name = "Label1"; Label1.Size = new Size(173, 27); Label1.TabIndex = 14; Label1.Text = "Modification Date:"; Label1.TextAlign = ContentAlignment.MiddleRight; // // modifiedOnLabel // modifiedOnLabel.AutoSize = true; modifiedOnLabel.BackColor = Color.White; modifiedOnLabel.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); modifiedOnLabel.Location = new Point(176, 63); modifiedOnLabel.Margin = new Padding(1, 0, 1, 0); modifiedOnLabel.Name = "modifiedOnLabel"; modifiedOnLabel.Size = new Size(45, 25); modifiedOnLabel.TabIndex = 15; modifiedOnLabel.Text = "N/A"; modifiedOnLabel.TextAlign = ContentAlignment.MiddleCenter; // // TableLayoutPanel4 // TableLayoutPanel4.ColumnCount = 2; TableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.2994f)); TableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 234.0f)); TableLayoutPanel4.Controls.Add(Label6, 0, 0); TableLayoutPanel4.Controls.Add(workDoneLabel, 1, 0); TableLayoutPanel4.Location = new Point(590, 230); TableLayoutPanel4.Margin = new Padding(1); TableLayoutPanel4.Name = "TableLayoutPanel4"; TableLayoutPanel4.RowCount = 1; TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 20.625f)); TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 130.0f)); TableLayoutPanel4.Size = new Size(412, 130); TableLayoutPanel4.TabIndex = 19; // // Label6 // Label6.Anchor = AnchorStyles.Top | AnchorStyles.Right; Label6.AutoSize = true; Label6.BackColor = Color.White; Label6.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label6.Location = new Point(19, 0); Label6.Margin = new Padding(1, 0, 1, 0); Label6.Name = "Label6"; Label6.Size = new Size(158, 25); Label6.TabIndex = 1; Label6.Text = "Work Performed:"; Label6.TextAlign = ContentAlignment.MiddleRight; // // workDoneLabel // workDoneLabel.AutoSize = true; workDoneLabel.BackColor = Color.White; workDoneLabel.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); workDoneLabel.Location = new Point(179, 0); workDoneLabel.Margin = new Padding(1, 0, 1, 0); workDoneLabel.Name = "workDoneLabel"; workDoneLabel.Size = new Size(45, 25); workDoneLabel.TabIndex = 12; workDoneLabel.Text = "N/A"; workDoneLabel.TextAlign = ContentAlignment.MiddleCenter; // // Panel4 // Panel4.Anchor = AnchorStyles.Top; Panel4.BorderStyle = BorderStyle.FixedSingle; Panel4.Controls.Add(_entryDetailsDataGrid); Panel4.Location = new Point(42, 120); Panel4.Name = "Panel4"; Panel4.Size = new Size(543, 218); Panel4.TabIndex = 111; // // entryDetailsDataGrid // _entryDetailsDataGrid.AllowCustomTheming = true; _entryDetailsDataGrid.AllowUserToAddRows = false; _entryDetailsDataGrid.AllowUserToDeleteRows = false; _entryDetailsDataGrid.AllowUserToResizeRows = false; DataGridViewCellStyle13.BackColor = Color.White; DataGridViewCellStyle13.ForeColor = Color.Black; DataGridViewCellStyle13.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _entryDetailsDataGrid.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13; _entryDetailsDataGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; _entryDetailsDataGrid.BackgroundColor = Color.White; _entryDetailsDataGrid.BorderStyle = BorderStyle.None; _entryDetailsDataGrid.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; _entryDetailsDataGrid.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle14.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle14.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle14.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle14.ForeColor = Color.White; DataGridViewCellStyle14.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle14.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle14.WrapMode = DataGridViewTriState.True; _entryDetailsDataGrid.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle14; _entryDetailsDataGrid.ColumnHeadersHeight = 40; _entryDetailsDataGrid.Columns.AddRange(new DataGridViewColumn[] { Column6, Column1, Column2, Column4, Column3, Column5, Column7, Column8, Column9, Column10, Column11 }); _entryDetailsDataGrid.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; _entryDetailsDataGrid.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _entryDetailsDataGrid.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; _entryDetailsDataGrid.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); _entryDetailsDataGrid.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; _entryDetailsDataGrid.CurrentTheme.BackColor = Color.Snow; _entryDetailsDataGrid.CurrentTheme.GridColor = Color.Gray; _entryDetailsDataGrid.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _entryDetailsDataGrid.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); _entryDetailsDataGrid.CurrentTheme.HeaderStyle.ForeColor = Color.White; _entryDetailsDataGrid.CurrentTheme.Name = null; _entryDetailsDataGrid.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; _entryDetailsDataGrid.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _entryDetailsDataGrid.CurrentTheme.RowsStyle.ForeColor = Color.Black; _entryDetailsDataGrid.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; _entryDetailsDataGrid.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle16.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle16.BackColor = Color.WhiteSmoke; DataGridViewCellStyle16.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle16.ForeColor = Color.Black; DataGridViewCellStyle16.SelectionBackColor = Color.Gray; DataGridViewCellStyle16.SelectionForeColor = Color.Black; DataGridViewCellStyle16.WrapMode = DataGridViewTriState.False; _entryDetailsDataGrid.DefaultCellStyle = DataGridViewCellStyle16; _entryDetailsDataGrid.Dock = DockStyle.Fill; _entryDetailsDataGrid.EnableHeadersVisualStyles = false; _entryDetailsDataGrid.GridColor = Color.Gray; _entryDetailsDataGrid.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _entryDetailsDataGrid.HeaderBgColor = Color.Empty; _entryDetailsDataGrid.HeaderForeColor = Color.White; _entryDetailsDataGrid.Location = new Point(0, 0); _entryDetailsDataGrid.Name = "_entryDetailsDataGrid"; _entryDetailsDataGrid.ReadOnly = true; _entryDetailsDataGrid.RowHeadersVisible = false; _entryDetailsDataGrid.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; _entryDetailsDataGrid.RowTemplate.Height = 40; _entryDetailsDataGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _entryDetailsDataGrid.Size = new Size(541, 216); _entryDetailsDataGrid.TabIndex = 57; _entryDetailsDataGrid.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // reasonLabel // reasonLabel.BackColor = Color.PapayaWhip; reasonLabel.BorderColor = Color.White; reasonLabel.Edge = 50; reasonLabel.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); reasonLabel.Location = new Point(59, 387); reasonLabel.Name = "reasonLabel"; reasonLabel.Padding = new Padding(5); reasonLabel.Size = new Size(686, 105); reasonLabel.TabIndex = 112; reasonLabel.Text = "N/A"; // // closeLabel // _closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeLabel.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeLabel.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeLabel.ForeColor = Color.White; _closeLabel.Location = new Point(981, 0); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(48, 46); _closeLabel.TabIndex = 114; _closeLabel.Text = "🗙"; _closeLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label12 // Label12.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Dock = DockStyle.Top; Label12.Font = new Font("Microsoft Sans Serif", 24.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Location = new Point(0, 0); Label12.Name = "Label12"; Label12.Size = new Size(1029, 46); Label12.TabIndex = 113; Label12.TextAlign = ContentAlignment.MiddleCenter; // // Column6 // DataGridViewCellStyle15.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle15.WrapMode = DataGridViewTriState.False; Column6.DefaultCellStyle = DataGridViewCellStyle15; Column6.FillWeight = 60.9197f; Column6.HeaderText = "Clock In"; Column6.Name = "Column6"; Column6.ReadOnly = true; Column6.Resizable = DataGridViewTriState.True; // // Column1 // Column1.FillWeight = 71.14038f; Column1.HeaderText = "Clock Out"; Column1.Name = "Column1"; Column1.ReadOnly = true; // // Column2 // Column2.FillWeight = 137.7865f; Column2.HeaderText = "Punched By"; Column2.Name = "Column2"; Column2.ReadOnly = true; // // Column4 // Column4.FillWeight = 118.181f; Column4.HeaderText = "Modified Field"; Column4.Name = "Column4"; Column4.ReadOnly = true; // // Column3 // Column3.FillWeight = 127.3232f; Column3.HeaderText = "Notes"; Column3.Name = "Column3"; Column3.ReadOnly = true; Column3.Visible = false; // // Column5 // Column5.FillWeight = 75.70589f; Column5.HeaderText = "Site Location"; Column5.Name = "Column5"; Column5.ReadOnly = true; Column5.Visible = false; // // Column7 // Column7.FillWeight = 69.87342f; Column7.HeaderText = "Device Name"; Column7.Name = "Column7"; Column7.ReadOnly = true; Column7.Visible = false; // // Column8 // Column8.FillWeight = 127.3232f; Column8.HeaderText = "Modification Date"; Column8.Name = "Column8"; Column8.ReadOnly = true; Column8.Visible = false; // // Column9 // Column9.HeaderText = "type"; Column9.Name = "Column9"; Column9.ReadOnly = true; Column9.Visible = false; // // Column10 // Column10.HeaderText = "punchType"; Column10.Name = "Column10"; Column10.ReadOnly = true; Column10.Visible = false; // // Column11 // Column11.HeaderText = "jobDescription"; Column11.Name = "Column11"; Column11.ReadOnly = true; Column11.Visible = false; // // FrmDetailedEntry // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(1029, 555); ControlBox = false; Controls.Add(_closeLabel); Controls.Add(Label12); Controls.Add(reasonLabel); Controls.Add(Panel4); Controls.Add(TableLayoutPanel4); Controls.Add(TableLayoutPanel3); Controls.Add(employeeNameLabel); Controls.Add(dateLabel); Controls.Add(Label9); FormBorderStyle = FormBorderStyle.FixedSingle; Margin = new Padding(2); Name = "FrmDetailedEntry"; StartPosition = FormStartPosition.CenterParent; TableLayoutPanel3.ResumeLayout(false); TableLayoutPanel3.PerformLayout(); TableLayoutPanel4.ResumeLayout(false); TableLayoutPanel4.PerformLayout(); Panel4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)_entryDetailsDataGrid).EndInit(); Load += new EventHandler(FrmDetailedEntry_Load); ResumeLayout(false); PerformLayout(); }
// Refrescar usuarios public void Refrescar_usuarios(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Listar_usuarios(Datagrid_receptor); Cambiar_columns(Datagrid_receptor); //Datagrid_receptor.AutoResizeColumnHeadersHeight(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAddCompanyToDriver)); var BorderEdges3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties5 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties6 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); var DataGridViewCellStyle4 = new DataGridViewCellStyle(); _closeLabel = new Label(); _closeLabel.Click += new EventHandler(closeLabel_Click); Label2 = new Label(); BunifuLabel7 = new Bunifu.UI.WinForms.BunifuLabel(); TableLayoutPanel2 = new TableLayoutPanel(); TableLayoutPanel1 = new TableLayoutPanel(); _ckbEdit = new CheckBox(); _ckbEdit.Click += new EventHandler(ckbEdit_Click); _btnSave = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnSave.Click += new EventHandler(btnSave_Click); _btnDisconnect = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnDisconnect.Click += new EventHandler(btnDisconnect_Click); _btnLink = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnLink.Click += new EventHandler(btnLink_Click); Label6 = new Label(); ddlTruckCompany = new ComboBox(); CompaniesNameBindingSource = new BindingSource(components); _dgvTruckDriverCompany = new Bunifu.UI.WinForms.BunifuDataGridView(); _dgvTruckDriverCompany.CellClick += new DataGridViewCellEventHandler(dgvTruckDriverCompany_CellClick); DataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn(); PortPassId = new DataGridViewTextBoxColumn(); TruckNumberDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); FirstNameDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); LastNameDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); FullNameDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); SuspendTruckDriverDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn(); TruckDriverListBindingSourceGridView = new BindingSource(components); Panel2 = new Panel(); lblNameDriver = new Label(); TableLayoutPanel2.SuspendLayout(); TableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)CompaniesNameBindingSource).BeginInit(); ((System.ComponentModel.ISupportInitialize)_dgvTruckDriverCompany).BeginInit(); ((System.ComponentModel.ISupportInitialize)TruckDriverListBindingSourceGridView).BeginInit(); Panel2.SuspendLayout(); SuspendLayout(); // // closeLabel // _closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeLabel.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeLabel.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeLabel.ForeColor = Color.White; _closeLabel.Location = new Point(892, -1); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(40, 41); _closeLabel.TabIndex = 146; _closeLabel.Text = "🗙"; _closeLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label2 // Label2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label2.Dock = DockStyle.Top; Label2.Font = new Font("Microsoft Sans Serif", 22.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.White; Label2.Location = new Point(0, 0); Label2.Name = "Label2"; Label2.Size = new Size(932, 41); Label2.TabIndex = 145; Label2.TextAlign = ContentAlignment.MiddleCenter; // // BunifuLabel7 // BunifuLabel7.AutoEllipsis = false; BunifuLabel7.CursorType = null; BunifuLabel7.Font = new Font("Microsoft Sans Serif", 14.0f); BunifuLabel7.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); BunifuLabel7.Location = new Point(12, 60); BunifuLabel7.Name = "BunifuLabel7"; BunifuLabel7.RightToLeft = RightToLeft.No; BunifuLabel7.Size = new Size(239, 26); BunifuLabel7.TabIndex = 238; BunifuLabel7.Text = "Connect Company to Driver:"; BunifuLabel7.TextAlignment = ContentAlignment.TopLeft; BunifuLabel7.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // TableLayoutPanel2 // TableLayoutPanel2.ColumnCount = 3; TableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f)); TableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 625.0f)); TableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 185.0f)); TableLayoutPanel2.Controls.Add(_btnDisconnect, 2, 1); TableLayoutPanel2.Controls.Add(_btnLink, 2, 0); TableLayoutPanel2.Controls.Add(Label6, 0, 0); TableLayoutPanel2.Controls.Add(ddlTruckCompany, 1, 0); TableLayoutPanel2.Location = new Point(5, 5); TableLayoutPanel2.Name = "TableLayoutPanel2"; TableLayoutPanel2.RowCount = 2; TableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 40.0f)); TableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 40.0f)); TableLayoutPanel2.Size = new Size(897, 80); TableLayoutPanel2.TabIndex = 239; // // TableLayoutPanel1 // TableLayoutPanel1.Anchor = AnchorStyles.Left; TableLayoutPanel1.ColumnCount = 2; TableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 35.71429f)); TableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 64.28571f)); TableLayoutPanel1.Controls.Add(_ckbEdit, 0, 0); TableLayoutPanel1.Controls.Add(_btnSave, 1, 0); TableLayoutPanel1.Location = new Point(718, 86); TableLayoutPanel1.Name = "TableLayoutPanel1"; TableLayoutPanel1.RowCount = 1; TableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50.0f)); TableLayoutPanel1.Size = new Size(184, 39); TableLayoutPanel1.TabIndex = 245; // // ckbEdit // _ckbEdit.Anchor = AnchorStyles.None; _ckbEdit.AutoSize = true; _ckbEdit.Location = new Point(10, 11); _ckbEdit.Name = "_ckbEdit"; _ckbEdit.Size = new Size(44, 17); _ckbEdit.TabIndex = 244; _ckbEdit.Text = "Edit"; _ckbEdit.UseVisualStyleBackColor = true; // // btnSave // _btnSave.AllowToggling = false; _btnSave.Anchor = AnchorStyles.None; _btnSave.AnimationSpeed = 200; _btnSave.AutoGenerateColors = false; _btnSave.BackColor = Color.Transparent; _btnSave.BackColor1 = Color.Teal; _btnSave.BackgroundImage = (Image)resources.GetObject("btnSave.BackgroundImage"); _btnSave.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnSave.ButtonText = "Save"; _btnSave.ButtonTextMarginLeft = 0; _btnSave.ColorContrastOnClick = 45; _btnSave.ColorContrastOnHover = 45; _btnSave.Cursor = Cursors.Hand; BorderEdges3.BottomLeft = true; BorderEdges3.BottomRight = true; BorderEdges3.TopLeft = true; BorderEdges3.TopRight = true; _btnSave.CustomizableEdges = BorderEdges3; _btnSave.DialogResult = DialogResult.None; _btnSave.DisabledBorderColor = Color.Empty; _btnSave.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnSave.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnSave.Enabled = false; _btnSave.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnSave.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnSave.ForeColor = Color.White; _btnSave.IconLeftCursor = Cursors.Hand; _btnSave.IconMarginLeft = 11; _btnSave.IconPadding = 10; _btnSave.IconRightCursor = Cursors.Hand; _btnSave.IdleBorderColor = Color.Teal; _btnSave.IdleBorderRadius = 3; _btnSave.IdleBorderThickness = 1; _btnSave.IdleFillColor = Color.Teal; _btnSave.IdleIconLeftImage = null; _btnSave.IdleIconRightImage = null; _btnSave.IndicateFocus = true; _btnSave.Location = new Point(68, 3); _btnSave.Name = "_btnSave"; StateProperties5.BorderColor = Color.MediumTurquoise; StateProperties5.BorderRadius = 3; StateProperties5.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties5.BorderThickness = 1; StateProperties5.FillColor = Color.MediumTurquoise; StateProperties5.ForeColor = Color.White; StateProperties5.IconLeftImage = null; StateProperties5.IconRightImage = null; _btnSave.onHoverState = StateProperties5; StateProperties6.BorderColor = Color.Teal; StateProperties6.BorderRadius = 3; StateProperties6.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties6.BorderThickness = 1; StateProperties6.FillColor = Color.Teal; StateProperties6.ForeColor = Color.White; StateProperties6.IconLeftImage = null; StateProperties6.IconRightImage = null; _btnSave.OnPressedState = StateProperties6; _btnSave.Size = new Size(113, 33); _btnSave.TabIndex = 242; _btnSave.TextAlign = ContentAlignment.MiddleCenter; _btnSave.TextMarginLeft = 0; _btnSave.UseDefaultRadiusAndThickness = true; // // btnDisconnect // _btnDisconnect.AllowToggling = false; _btnDisconnect.Anchor = AnchorStyles.Right; _btnDisconnect.AnimationSpeed = 200; _btnDisconnect.AutoGenerateColors = false; _btnDisconnect.BackColor = Color.Transparent; _btnDisconnect.BackColor1 = Color.IndianRed; _btnDisconnect.BackgroundImage = (Image)resources.GetObject("btnDisconnect.BackgroundImage"); _btnDisconnect.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnDisconnect.ButtonText = "Disconnect"; _btnDisconnect.ButtonTextMarginLeft = 0; _btnDisconnect.ColorContrastOnClick = 45; _btnDisconnect.ColorContrastOnHover = 45; _btnDisconnect.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _btnDisconnect.CustomizableEdges = BorderEdges1; _btnDisconnect.DialogResult = DialogResult.None; _btnDisconnect.DisabledBorderColor = Color.Empty; _btnDisconnect.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnDisconnect.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnDisconnect.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnDisconnect.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnDisconnect.ForeColor = Color.White; _btnDisconnect.IconLeftCursor = Cursors.Hand; _btnDisconnect.IconMarginLeft = 11; _btnDisconnect.IconPadding = 10; _btnDisconnect.IconRightCursor = Cursors.Hand; _btnDisconnect.IdleBorderColor = Color.IndianRed; _btnDisconnect.IdleBorderRadius = 3; _btnDisconnect.IdleBorderThickness = 1; _btnDisconnect.IdleFillColor = Color.IndianRed; _btnDisconnect.IdleIconLeftImage = null; _btnDisconnect.IdleIconRightImage = null; _btnDisconnect.IndicateFocus = true; _btnDisconnect.Location = new Point(723, 43); _btnDisconnect.Name = "_btnDisconnect"; StateProperties1.BorderColor = Color.Salmon; StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.Salmon; StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; _btnDisconnect.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.IndianRed; StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.IndianRed; StateProperties2.ForeColor = Color.White; StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; _btnDisconnect.OnPressedState = StateProperties2; _btnDisconnect.Size = new Size(171, 34); _btnDisconnect.TabIndex = 242; _btnDisconnect.TextAlign = ContentAlignment.MiddleCenter; _btnDisconnect.TextMarginLeft = 0; _btnDisconnect.UseDefaultRadiusAndThickness = true; // // btnLink // _btnLink.AllowToggling = false; _btnLink.Anchor = AnchorStyles.Right; _btnLink.AnimationSpeed = 200; _btnLink.AutoGenerateColors = false; _btnLink.BackColor = Color.Transparent; _btnLink.BackColor1 = Color.Teal; _btnLink.BackgroundImage = (Image)resources.GetObject("btnLink.BackgroundImage"); _btnLink.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnLink.ButtonText = "Connect"; _btnLink.ButtonTextMarginLeft = 0; _btnLink.ColorContrastOnClick = 45; _btnLink.ColorContrastOnHover = 45; _btnLink.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _btnLink.CustomizableEdges = BorderEdges2; _btnLink.DialogResult = DialogResult.None; _btnLink.DisabledBorderColor = Color.Empty; _btnLink.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnLink.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnLink.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnLink.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnLink.ForeColor = Color.White; _btnLink.IconLeftCursor = Cursors.Hand; _btnLink.IconMarginLeft = 11; _btnLink.IconPadding = 10; _btnLink.IconRightCursor = Cursors.Hand; _btnLink.IdleBorderColor = Color.Teal; _btnLink.IdleBorderRadius = 3; _btnLink.IdleBorderThickness = 1; _btnLink.IdleFillColor = Color.Teal; _btnLink.IdleIconLeftImage = null; _btnLink.IdleIconRightImage = null; _btnLink.IndicateFocus = true; _btnLink.Location = new Point(723, 3); _btnLink.Name = "_btnLink"; StateProperties3.BorderColor = Color.MediumTurquoise; StateProperties3.BorderRadius = 3; StateProperties3.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties3.BorderThickness = 1; StateProperties3.FillColor = Color.MediumTurquoise; StateProperties3.ForeColor = Color.White; StateProperties3.IconLeftImage = null; StateProperties3.IconRightImage = null; _btnLink.onHoverState = StateProperties3; StateProperties4.BorderColor = Color.Teal; StateProperties4.BorderRadius = 3; StateProperties4.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties4.BorderThickness = 1; StateProperties4.FillColor = Color.Teal; StateProperties4.ForeColor = Color.White; StateProperties4.IconLeftImage = null; StateProperties4.IconRightImage = null; _btnLink.OnPressedState = StateProperties4; _btnLink.Size = new Size(171, 34); _btnLink.TabIndex = 241; _btnLink.TextAlign = ContentAlignment.MiddleCenter; _btnLink.TextMarginLeft = 0; _btnLink.UseDefaultRadiusAndThickness = true; // // Label6 // Label6.Anchor = AnchorStyles.Left; Label6.AutoSize = true; Label6.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label6.Location = new Point(3, 10); Label6.Name = "Label6"; Label6.Size = new Size(80, 20); Label6.TabIndex = 211; Label6.Text = "Company:"; // // ddlTruckCompany // ddlTruckCompany.AutoCompleteMode = AutoCompleteMode.Append; ddlTruckCompany.AutoCompleteSource = AutoCompleteSource.ListItems; ddlTruckCompany.DataSource = CompaniesNameBindingSource; ddlTruckCompany.DisplayMember = "CompanyName"; ddlTruckCompany.Font = new Font("Microsoft Sans Serif", 14.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); ddlTruckCompany.FormattingEnabled = true; ddlTruckCompany.Location = new Point(90, 3); ddlTruckCompany.Name = "ddlTruckCompany"; ddlTruckCompany.Size = new Size(592, 32); ddlTruckCompany.TabIndex = 237; ddlTruckCompany.ValueMember = "CompanieId"; // // CompaniesNameBindingSource // CompaniesNameBindingSource.DataSource = typeof(ModelLayer.CustomModel.CompaniesName); // // dgvTruckDriverCompany // _dgvTruckDriverCompany.AllowCustomTheming = true; _dgvTruckDriverCompany.AllowUserToAddRows = false; _dgvTruckDriverCompany.AllowUserToDeleteRows = false; _dgvTruckDriverCompany.AllowUserToResizeColumns = false; _dgvTruckDriverCompany.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvTruckDriverCompany.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; _dgvTruckDriverCompany.AutoGenerateColumns = false; _dgvTruckDriverCompany.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; _dgvTruckDriverCompany.BackgroundColor = Color.White; _dgvTruckDriverCompany.BorderStyle = BorderStyle.None; _dgvTruckDriverCompany.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; _dgvTruckDriverCompany.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.TopLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; _dgvTruckDriverCompany.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; _dgvTruckDriverCompany.ColumnHeadersHeight = 45; _dgvTruckDriverCompany.Columns.AddRange(new DataGridViewColumn[] { DataGridViewTextBoxColumn5, DataGridViewTextBoxColumn3, DataGridViewTextBoxColumn4, PortPassId, TruckNumberDataGridViewTextBoxColumn, FirstNameDataGridViewTextBoxColumn, LastNameDataGridViewTextBoxColumn, FullNameDataGridViewTextBoxColumn, SuspendTruckDriverDataGridViewTextBoxColumn, DataGridViewTextBoxColumn2, DataGridViewTextBoxColumn1 }); _dgvTruckDriverCompany.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; _dgvTruckDriverCompany.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _dgvTruckDriverCompany.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; _dgvTruckDriverCompany.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); _dgvTruckDriverCompany.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; _dgvTruckDriverCompany.CurrentTheme.BackColor = Color.Snow; _dgvTruckDriverCompany.CurrentTheme.GridColor = Color.Gray; _dgvTruckDriverCompany.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvTruckDriverCompany.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); _dgvTruckDriverCompany.CurrentTheme.HeaderStyle.ForeColor = Color.White; _dgvTruckDriverCompany.CurrentTheme.Name = null; _dgvTruckDriverCompany.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; _dgvTruckDriverCompany.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _dgvTruckDriverCompany.CurrentTheme.RowsStyle.ForeColor = Color.Black; _dgvTruckDriverCompany.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; _dgvTruckDriverCompany.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; _dgvTruckDriverCompany.DataSource = TruckDriverListBindingSourceGridView; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; _dgvTruckDriverCompany.DefaultCellStyle = DataGridViewCellStyle3; _dgvTruckDriverCompany.EnableHeadersVisualStyles = false; _dgvTruckDriverCompany.GridColor = Color.Gray; _dgvTruckDriverCompany.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvTruckDriverCompany.HeaderBgColor = Color.Empty; _dgvTruckDriverCompany.HeaderForeColor = Color.White; _dgvTruckDriverCompany.Location = new Point(13, 239); _dgvTruckDriverCompany.MultiSelect = false; _dgvTruckDriverCompany.Name = "_dgvTruckDriverCompany"; _dgvTruckDriverCompany.ReadOnly = true; _dgvTruckDriverCompany.RowHeadersVisible = false; _dgvTruckDriverCompany.RowHeadersWidth = 40; DataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleLeft; _dgvTruckDriverCompany.RowsDefaultCellStyle = DataGridViewCellStyle4; _dgvTruckDriverCompany.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; _dgvTruckDriverCompany.RowTemplate.Height = 40; _dgvTruckDriverCompany.ScrollBars = ScrollBars.Vertical; _dgvTruckDriverCompany.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _dgvTruckDriverCompany.Size = new Size(907, 283); _dgvTruckDriverCompany.TabIndex = 241; _dgvTruckDriverCompany.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // DataGridViewTextBoxColumn5 // DataGridViewTextBoxColumn5.DataPropertyName = "TruckDriverCompanyId"; DataGridViewTextBoxColumn5.HeaderText = "TruckDriverCompanyId"; DataGridViewTextBoxColumn5.Name = "DataGridViewTextBoxColumn5"; DataGridViewTextBoxColumn5.ReadOnly = true; DataGridViewTextBoxColumn5.Visible = false; // // DataGridViewTextBoxColumn3 // DataGridViewTextBoxColumn3.DataPropertyName = "CompanyCode"; DataGridViewTextBoxColumn3.FillWeight = 194.9239f; DataGridViewTextBoxColumn3.HeaderText = "Code"; DataGridViewTextBoxColumn3.MinimumWidth = 105; DataGridViewTextBoxColumn3.Name = "DataGridViewTextBoxColumn3"; DataGridViewTextBoxColumn3.ReadOnly = true; // // DataGridViewTextBoxColumn4 // DataGridViewTextBoxColumn4.DataPropertyName = "CompanyName"; DataGridViewTextBoxColumn4.FillWeight = 5.076141f; DataGridViewTextBoxColumn4.HeaderText = "Company"; DataGridViewTextBoxColumn4.MinimumWidth = 530; DataGridViewTextBoxColumn4.Name = "DataGridViewTextBoxColumn4"; DataGridViewTextBoxColumn4.ReadOnly = true; // // PortPassId // PortPassId.DataPropertyName = "PortPassId"; PortPassId.HeaderText = "Pass Id"; PortPassId.MinimumWidth = 130; PortPassId.Name = "PortPassId"; PortPassId.ReadOnly = true; // // TruckNumberDataGridViewTextBoxColumn // TruckNumberDataGridViewTextBoxColumn.DataPropertyName = "TruckNumber"; TruckNumberDataGridViewTextBoxColumn.HeaderText = "Truck Number"; TruckNumberDataGridViewTextBoxColumn.MinimumWidth = 142; TruckNumberDataGridViewTextBoxColumn.Name = "TruckNumberDataGridViewTextBoxColumn"; TruckNumberDataGridViewTextBoxColumn.ReadOnly = true; // // FirstNameDataGridViewTextBoxColumn // FirstNameDataGridViewTextBoxColumn.DataPropertyName = "FirstName"; FirstNameDataGridViewTextBoxColumn.HeaderText = "FirstName"; FirstNameDataGridViewTextBoxColumn.Name = "FirstNameDataGridViewTextBoxColumn"; FirstNameDataGridViewTextBoxColumn.ReadOnly = true; FirstNameDataGridViewTextBoxColumn.Visible = false; // // LastNameDataGridViewTextBoxColumn // LastNameDataGridViewTextBoxColumn.DataPropertyName = "LastName"; LastNameDataGridViewTextBoxColumn.HeaderText = "LastName"; LastNameDataGridViewTextBoxColumn.Name = "LastNameDataGridViewTextBoxColumn"; LastNameDataGridViewTextBoxColumn.ReadOnly = true; LastNameDataGridViewTextBoxColumn.Visible = false; // // FullNameDataGridViewTextBoxColumn // FullNameDataGridViewTextBoxColumn.DataPropertyName = "FullName"; FullNameDataGridViewTextBoxColumn.HeaderText = "FullName"; FullNameDataGridViewTextBoxColumn.Name = "FullNameDataGridViewTextBoxColumn"; FullNameDataGridViewTextBoxColumn.ReadOnly = true; FullNameDataGridViewTextBoxColumn.Visible = false; // // SuspendTruckDriverDataGridViewTextBoxColumn // SuspendTruckDriverDataGridViewTextBoxColumn.DataPropertyName = "SuspendTruckDriver"; SuspendTruckDriverDataGridViewTextBoxColumn.HeaderText = "SuspendTruckDriver"; SuspendTruckDriverDataGridViewTextBoxColumn.Name = "SuspendTruckDriverDataGridViewTextBoxColumn"; SuspendTruckDriverDataGridViewTextBoxColumn.ReadOnly = true; SuspendTruckDriverDataGridViewTextBoxColumn.Visible = false; // // DataGridViewTextBoxColumn2 // DataGridViewTextBoxColumn2.DataPropertyName = "CompanyId"; DataGridViewTextBoxColumn2.HeaderText = "CompanyId"; DataGridViewTextBoxColumn2.Name = "DataGridViewTextBoxColumn2"; DataGridViewTextBoxColumn2.ReadOnly = true; DataGridViewTextBoxColumn2.Visible = false; // // DataGridViewTextBoxColumn1 // DataGridViewTextBoxColumn1.DataPropertyName = "TruckDriverId"; DataGridViewTextBoxColumn1.HeaderText = "TruckDriverId"; DataGridViewTextBoxColumn1.Name = "DataGridViewTextBoxColumn1"; DataGridViewTextBoxColumn1.ReadOnly = true; DataGridViewTextBoxColumn1.Visible = false; // // TruckDriverListBindingSourceGridView // TruckDriverListBindingSourceGridView.DataSource = typeof(ModelLayer.CustomModel.TruckDriverList); // // Panel2 // Panel2.BorderStyle = BorderStyle.FixedSingle; Panel2.Controls.Add(TableLayoutPanel1); Panel2.Controls.Add(TableLayoutPanel2); Panel2.Location = new Point(12, 97); Panel2.Name = "Panel2"; Panel2.Size = new Size(908, 130); Panel2.TabIndex = 242; // // lblNameDriver // lblNameDriver.AutoSize = true; lblNameDriver.Font = new Font("Microsoft Sans Serif", 14.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblNameDriver.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lblNameDriver.Location = new Point(251, 62); lblNameDriver.Name = "lblNameDriver"; lblNameDriver.Size = new Size(126, 24); lblNameDriver.TabIndex = 243; lblNameDriver.Text = "Name Driver"; // // frmAddCompanyToDriver // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(932, 536); Controls.Add(_dgvTruckDriverCompany); Controls.Add(lblNameDriver); Controls.Add(Panel2); Controls.Add(BunifuLabel7); Controls.Add(_closeLabel); Controls.Add(Label2); FormBorderStyle = FormBorderStyle.None; Name = "frmAddCompanyToDriver"; Text = "frmAddCompanyToDriver"; TableLayoutPanel2.ResumeLayout(false); TableLayoutPanel2.PerformLayout(); TableLayoutPanel1.ResumeLayout(false); TableLayoutPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)CompaniesNameBindingSource).EndInit(); ((System.ComponentModel.ISupportInitialize)_dgvTruckDriverCompany).EndInit(); ((System.ComponentModel.ISupportInitialize)TruckDriverListBindingSourceGridView).EndInit(); Panel2.ResumeLayout(false); Load += new EventHandler(frmAddCompanyToDriver_Load); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMiniUnitToAssign)); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); Label12 = new Label(); buttonsPanel = new TableLayoutPanel(); _btnCancel = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnCancel.Click += new EventHandler(btnCancel_Click_1); _btnAssignBooking = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnAssignBooking.Click += new EventHandler(btnAssignBooking_Click); Label9 = new Label(); Label3 = new Label(); _closeFlatButton = new Bunifu.Framework.UI.BunifuFlatButton(); _closeFlatButton.Click += new EventHandler(closeFlatButton_Click); VWUnitSourceMiniUnitBindingSource = new BindingSource(components); dgvMiniUnit = new Bunifu.UI.WinForms.BunifuDataGridView(); Column1 = new DataGridViewCheckBoxColumn(); MiniUnitNumberDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); CustomerName = new DataGridViewTextBoxColumn(); CommodityGradeDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); NumberOfContainer = new DataGridViewTextBoxColumn(); buttonsPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)VWUnitSourceMiniUnitBindingSource).BeginInit(); ((System.ComponentModel.ISupportInitialize)dgvMiniUnit).BeginInit(); SuspendLayout(); // // Label12 // Label12.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Dock = DockStyle.Top; Label12.Font = new Font("Microsoft Sans Serif", 24.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Location = new Point(0, 0); Label12.Name = "Label12"; Label12.Size = new Size(677, 41); Label12.TabIndex = 142; Label12.TextAlign = ContentAlignment.MiddleCenter; // // buttonsPanel // buttonsPanel.Anchor = AnchorStyles.None; buttonsPanel.ColumnCount = 2; buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.0f)); buttonsPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.0f)); buttonsPanel.Controls.Add(_btnCancel, 1, 0); buttonsPanel.Controls.Add(_btnAssignBooking, 0, 0); buttonsPanel.Location = new Point(238, 457); buttonsPanel.Name = "buttonsPanel"; buttonsPanel.RowCount = 1; buttonsPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50.0f)); buttonsPanel.Size = new Size(217, 39); buttonsPanel.TabIndex = 170; // // btnCancel // _btnCancel.AllowToggling = false; _btnCancel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _btnCancel.AnimationSpeed = 200; _btnCancel.AutoGenerateColors = false; _btnCancel.BackColor = Color.Transparent; _btnCancel.BackColor1 = Color.White; _btnCancel.BackgroundImage = (Image)resources.GetObject("btnCancel.BackgroundImage"); _btnCancel.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnCancel.ButtonText = "Cancel"; _btnCancel.ButtonTextMarginLeft = 0; _btnCancel.ColorContrastOnClick = 45; _btnCancel.ColorContrastOnHover = 45; _btnCancel.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _btnCancel.CustomizableEdges = BorderEdges1; _btnCancel.DialogResult = DialogResult.None; _btnCancel.DisabledBorderColor = Color.Empty; _btnCancel.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnCancel.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnCancel.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnCancel.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnCancel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _btnCancel.IconLeftCursor = Cursors.Hand; _btnCancel.IconMarginLeft = 11; _btnCancel.IconPadding = 10; _btnCancel.IconRightCursor = Cursors.Hand; _btnCancel.IdleBorderColor = Color.Gray; _btnCancel.IdleBorderRadius = 3; _btnCancel.IdleBorderThickness = 1; _btnCancel.IdleFillColor = Color.White; _btnCancel.IdleIconLeftImage = null; _btnCancel.IdleIconRightImage = null; _btnCancel.IndicateFocus = true; _btnCancel.Location = new Point(111, 3); _btnCancel.Name = "_btnCancel"; StateProperties1.BorderColor = Color.DarkGray; StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.DarkGray; StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; _btnCancel.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.White; StateProperties2.ForeColor = Color.White; StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; _btnCancel.OnPressedState = StateProperties2; _btnCancel.Size = new Size(103, 33); _btnCancel.TabIndex = 137; _btnCancel.TextAlign = ContentAlignment.MiddleCenter; _btnCancel.TextMarginLeft = 0; _btnCancel.UseDefaultRadiusAndThickness = true; // // btnAssignBooking // _btnAssignBooking.AllowToggling = false; _btnAssignBooking.AnimationSpeed = 200; _btnAssignBooking.AutoGenerateColors = false; _btnAssignBooking.BackColor = Color.Transparent; _btnAssignBooking.BackColor1 = Color.Teal; _btnAssignBooking.BackgroundImage = (Image)resources.GetObject("btnAssignBooking.BackgroundImage"); _btnAssignBooking.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnAssignBooking.ButtonText = "Proceed"; _btnAssignBooking.ButtonTextMarginLeft = 0; _btnAssignBooking.ColorContrastOnClick = 45; _btnAssignBooking.ColorContrastOnHover = 45; _btnAssignBooking.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _btnAssignBooking.CustomizableEdges = BorderEdges2; _btnAssignBooking.DialogResult = DialogResult.None; _btnAssignBooking.DisabledBorderColor = Color.Empty; _btnAssignBooking.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnAssignBooking.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnAssignBooking.Enabled = false; _btnAssignBooking.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnAssignBooking.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnAssignBooking.ForeColor = Color.White; _btnAssignBooking.IconLeftCursor = Cursors.Hand; _btnAssignBooking.IconMarginLeft = 11; _btnAssignBooking.IconPadding = 10; _btnAssignBooking.IconRightCursor = Cursors.Hand; _btnAssignBooking.IdleBorderColor = Color.Teal; _btnAssignBooking.IdleBorderRadius = 3; _btnAssignBooking.IdleBorderThickness = 1; _btnAssignBooking.IdleFillColor = Color.Teal; _btnAssignBooking.IdleIconLeftImage = null; _btnAssignBooking.IdleIconRightImage = null; _btnAssignBooking.IndicateFocus = true; _btnAssignBooking.Location = new Point(3, 3); _btnAssignBooking.Name = "_btnAssignBooking"; StateProperties3.BorderColor = Color.MediumTurquoise; StateProperties3.BorderRadius = 3; StateProperties3.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties3.BorderThickness = 1; StateProperties3.FillColor = Color.MediumTurquoise; StateProperties3.ForeColor = Color.White; StateProperties3.IconLeftImage = null; StateProperties3.IconRightImage = null; _btnAssignBooking.onHoverState = StateProperties3; StateProperties4.BorderColor = Color.Teal; StateProperties4.BorderRadius = 3; StateProperties4.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties4.BorderThickness = 1; StateProperties4.FillColor = Color.Teal; StateProperties4.ForeColor = Color.White; StateProperties4.IconLeftImage = null; StateProperties4.IconRightImage = null; _btnAssignBooking.OnPressedState = StateProperties4; _btnAssignBooking.Size = new Size(102, 33); _btnAssignBooking.TabIndex = 136; _btnAssignBooking.TextAlign = ContentAlignment.MiddleCenter; _btnAssignBooking.TextMarginLeft = 0; _btnAssignBooking.UseDefaultRadiusAndThickness = true; // // Label9 // Label9.Anchor = AnchorStyles.None; Label9.AutoSize = true; Label9.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label9.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); Label9.Location = new Point(9, 57); Label9.Margin = new Padding(0); Label9.Name = "Label9"; Label9.Size = new Size(249, 21); Label9.TabIndex = 171; Label9.Text = "Choose MiniUnits to be assigned"; Label9.TextAlign = ContentAlignment.MiddleRight; // // Label3 // Label3.Anchor = AnchorStyles.None; Label3.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label3.Location = new Point(26, 78); Label3.Margin = new Padding(0); Label3.Name = "Label3"; Label3.Size = new Size(626, 51); Label3.TabIndex = 172; Label3.Text = "The selected Units has mini units. Please, select the mini units you wish to assi" + "gn to the bookings."; Label3.TextAlign = ContentAlignment.MiddleLeft; // // closeFlatButton // _closeFlatButton.Active = false; _closeFlatButton.Activecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeFlatButton.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.BackgroundImageLayout = ImageLayout.Stretch; _closeFlatButton.BorderRadius = 0; _closeFlatButton.ButtonText = "🗙"; _closeFlatButton.Cursor = Cursors.Hand; _closeFlatButton.DisabledColor = Color.Gray; _closeFlatButton.Iconcolor = Color.Transparent; _closeFlatButton.Iconimage = null; _closeFlatButton.Iconimage_right = null; _closeFlatButton.Iconimage_right_Selected = null; _closeFlatButton.Iconimage_Selected = null; _closeFlatButton.IconMarginLeft = 0; _closeFlatButton.IconMarginRight = 0; _closeFlatButton.IconRightVisible = true; _closeFlatButton.IconRightZoom = 0d; _closeFlatButton.IconVisible = true; _closeFlatButton.IconZoom = 90.0d; _closeFlatButton.IsTab = false; _closeFlatButton.Location = new Point(634, 0); _closeFlatButton.Name = "_closeFlatButton"; _closeFlatButton.Normalcolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.OnHovercolor = Color.Gray; _closeFlatButton.OnHoverTextColor = Color.White; _closeFlatButton.selected = false; _closeFlatButton.Size = new Size(43, 41); _closeFlatButton.TabIndex = 173; _closeFlatButton.Text = "🗙"; _closeFlatButton.TextAlign = ContentAlignment.MiddleCenter; _closeFlatButton.Textcolor = Color.White; _closeFlatButton.TextFont = new Font("Microsoft Sans Serif", 18.32727f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); // // VWUnitSourceMiniUnitBindingSource // VWUnitSourceMiniUnitBindingSource.DataSource = typeof(ModelLayer.VW_UnitSourceMiniUnit); // // dgvMiniUnit // dgvMiniUnit.AllowCustomTheming = true; dgvMiniUnit.AllowUserToAddRows = false; dgvMiniUnit.AllowUserToDeleteRows = false; dgvMiniUnit.AllowUserToOrderColumns = true; dgvMiniUnit.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvMiniUnit.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; dgvMiniUnit.AutoGenerateColumns = false; dgvMiniUnit.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvMiniUnit.BackgroundColor = Color.White; dgvMiniUnit.BorderStyle = BorderStyle.None; dgvMiniUnit.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; dgvMiniUnit.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText; dgvMiniUnit.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; dgvMiniUnit.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; dgvMiniUnit.ColumnHeadersHeight = 30; dgvMiniUnit.Columns.AddRange(new DataGridViewColumn[] { Column1, MiniUnitNumberDataGridViewTextBoxColumn, CustomerName, CommodityGradeDataGridViewTextBoxColumn, NumberOfContainer }); dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); dgvMiniUnit.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; dgvMiniUnit.CurrentTheme.BackColor = Color.Snow; dgvMiniUnit.CurrentTheme.GridColor = Color.Gray; dgvMiniUnit.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvMiniUnit.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); dgvMiniUnit.CurrentTheme.HeaderStyle.ForeColor = Color.White; dgvMiniUnit.CurrentTheme.Name = null; dgvMiniUnit.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; dgvMiniUnit.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvMiniUnit.CurrentTheme.RowsStyle.ForeColor = Color.Black; dgvMiniUnit.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; dgvMiniUnit.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; dgvMiniUnit.DataSource = VWUnitSourceMiniUnitBindingSource; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; dgvMiniUnit.DefaultCellStyle = DataGridViewCellStyle3; dgvMiniUnit.EnableHeadersVisualStyles = false; dgvMiniUnit.GridColor = Color.Gray; dgvMiniUnit.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvMiniUnit.HeaderBgColor = Color.Empty; dgvMiniUnit.HeaderForeColor = Color.White; dgvMiniUnit.Location = new Point(19, 132); dgvMiniUnit.MultiSelect = false; dgvMiniUnit.Name = "dgvMiniUnit"; dgvMiniUnit.ReadOnly = true; dgvMiniUnit.RowHeadersVisible = false; dgvMiniUnit.RowHeadersWidth = 51; dgvMiniUnit.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; dgvMiniUnit.RowTemplate.Height = 30; dgvMiniUnit.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvMiniUnit.Size = new Size(646, 304); dgvMiniUnit.TabIndex = 175; dgvMiniUnit.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // Column1 // Column1.FillWeight = 17.07038f; Column1.HeaderText = ""; Column1.Name = "Column1"; Column1.ReadOnly = true; // // MiniUnitNumberDataGridViewTextBoxColumn // MiniUnitNumberDataGridViewTextBoxColumn.DataPropertyName = "MiniUnitNumber"; MiniUnitNumberDataGridViewTextBoxColumn.FillWeight = 105.0156f; MiniUnitNumberDataGridViewTextBoxColumn.HeaderText = "Unit Number"; MiniUnitNumberDataGridViewTextBoxColumn.Name = "MiniUnitNumberDataGridViewTextBoxColumn"; MiniUnitNumberDataGridViewTextBoxColumn.ReadOnly = true; // // CustomerName // CustomerName.DataPropertyName = "CustomerName"; CustomerName.FillWeight = 105.0156f; CustomerName.HeaderText = "Customer Name"; CustomerName.Name = "CustomerName"; CustomerName.ReadOnly = true; // // CommodityGradeDataGridViewTextBoxColumn // CommodityGradeDataGridViewTextBoxColumn.DataPropertyName = "CommodityGrade"; CommodityGradeDataGridViewTextBoxColumn.FillWeight = 105.0156f; CommodityGradeDataGridViewTextBoxColumn.HeaderText = "Grade/Commodity"; CommodityGradeDataGridViewTextBoxColumn.Name = "CommodityGradeDataGridViewTextBoxColumn"; CommodityGradeDataGridViewTextBoxColumn.ReadOnly = true; // // NumberOfContainer // NumberOfContainer.DataPropertyName = "TotalBilledMU"; NumberOfContainer.FillWeight = 88.24068f; NumberOfContainer.HeaderText = "Billed"; NumberOfContainer.Name = "NumberOfContainer"; NumberOfContainer.ReadOnly = true; // // frmMiniUnitToAssign // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(677, 510); Controls.Add(dgvMiniUnit); Controls.Add(_closeFlatButton); Controls.Add(Label3); Controls.Add(Label9); Controls.Add(buttonsPanel); Controls.Add(Label12); FormBorderStyle = FormBorderStyle.None; Name = "frmMiniUnitToAssign"; Text = "frmMiniUnitToAssign"; buttonsPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)VWUnitSourceMiniUnitBindingSource).EndInit(); ((System.ComponentModel.ISupportInitialize)dgvMiniUnit).EndInit(); Load += new EventHandler(frmMiniUnitToAssign_Load); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmModifyMUBilledValues)); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); _closeLabel = new Label(); _closeLabel.Click += new EventHandler(closeLabel_Click); Label12 = new Label(); _btnUpdateMu = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnUpdateMu.Click += new EventHandler(btnUpdateMu_Click); _btnCancel = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnCancel.Click += new EventHandler(closeLabel_Click); Panel2 = new Panel(); _dgvMiniUnits = new Bunifu.UI.WinForms.BunifuDataGridView(); _dgvMiniUnits.SelectionChanged += new EventHandler(dgvMiniUnits_SelectionChanged); Column2 = new DataGridViewTextBoxColumn(); Column1 = new DataGridViewTextBoxColumn(); Column4 = new DataGridViewTextBoxColumn(); Column3 = new DataGridViewTextBoxColumn(); _nucTotal = new NumericUpDown(); _nucTotal.ValueChanged += new EventHandler(nucTotal_ValueChanged); lblTitle = new Label(); Label2 = new Label(); lblTotaltoBeAsgn = new Label(); Label1 = new Label(); lblminiUnitNumber = new Label(); Panel3 = new Panel(); Label5 = new Label(); Label6 = new Label(); labelTotalSomething = new Label(); lbltotalNumber = new Label(); Panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)_dgvMiniUnits).BeginInit(); ((System.ComponentModel.ISupportInitialize)_nucTotal).BeginInit(); Panel3.SuspendLayout(); SuspendLayout(); // // closeLabel // _closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeLabel.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeLabel.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeLabel.ForeColor = Color.White; _closeLabel.Location = new Point(877, 0); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(48, 45); _closeLabel.TabIndex = 158; _closeLabel.Text = "🗙"; _closeLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label12 // Label12.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Dock = DockStyle.Top; Label12.Font = new Font("Microsoft Sans Serif", 24.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Location = new Point(0, 0); Label12.Name = "Label12"; Label12.Size = new Size(925, 46); Label12.TabIndex = 157; Label12.TextAlign = ContentAlignment.MiddleCenter; // // btnUpdateMu // _btnUpdateMu.AllowToggling = false; _btnUpdateMu.AnimationSpeed = 200; _btnUpdateMu.AutoGenerateColors = false; _btnUpdateMu.BackColor = Color.Transparent; _btnUpdateMu.BackColor1 = Color.Teal; _btnUpdateMu.BackgroundImage = (Image)resources.GetObject("btnUpdateMu.BackgroundImage"); _btnUpdateMu.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnUpdateMu.ButtonText = "Save"; _btnUpdateMu.ButtonTextMarginLeft = 0; _btnUpdateMu.ColorContrastOnClick = 45; _btnUpdateMu.ColorContrastOnHover = 45; _btnUpdateMu.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _btnUpdateMu.CustomizableEdges = BorderEdges1; _btnUpdateMu.DialogResult = DialogResult.None; _btnUpdateMu.DisabledBorderColor = Color.Empty; _btnUpdateMu.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnUpdateMu.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnUpdateMu.Enabled = false; _btnUpdateMu.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnUpdateMu.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnUpdateMu.ForeColor = Color.White; _btnUpdateMu.IconLeftCursor = Cursors.Hand; _btnUpdateMu.IconMarginLeft = 11; _btnUpdateMu.IconPadding = 10; _btnUpdateMu.IconRightCursor = Cursors.Hand; _btnUpdateMu.IdleBorderColor = Color.Teal; _btnUpdateMu.IdleBorderRadius = 3; _btnUpdateMu.IdleBorderThickness = 1; _btnUpdateMu.IdleFillColor = Color.Teal; _btnUpdateMu.IdleIconLeftImage = null; _btnUpdateMu.IdleIconRightImage = null; _btnUpdateMu.IndicateFocus = true; _btnUpdateMu.Location = new Point(672, 439); _btnUpdateMu.Name = "_btnUpdateMu"; StateProperties1.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; _btnUpdateMu.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.Teal; StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.Teal; StateProperties2.ForeColor = Color.White; StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; _btnUpdateMu.OnPressedState = StateProperties2; _btnUpdateMu.Size = new Size(96, 34); _btnUpdateMu.TabIndex = 161; _btnUpdateMu.TextAlign = ContentAlignment.MiddleCenter; _btnUpdateMu.TextMarginLeft = 0; _btnUpdateMu.UseDefaultRadiusAndThickness = true; // // btnCancel // _btnCancel.AllowToggling = false; _btnCancel.AnimationSpeed = 200; _btnCancel.AutoGenerateColors = false; _btnCancel.BackColor = Color.Transparent; _btnCancel.BackColor1 = Color.White; _btnCancel.BackgroundImage = (Image)resources.GetObject("btnCancel.BackgroundImage"); _btnCancel.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnCancel.ButtonText = "Cancel"; _btnCancel.ButtonTextMarginLeft = 0; _btnCancel.ColorContrastOnClick = 45; _btnCancel.ColorContrastOnHover = 45; _btnCancel.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _btnCancel.CustomizableEdges = BorderEdges2; _btnCancel.DialogResult = DialogResult.None; _btnCancel.DisabledBorderColor = Color.Empty; _btnCancel.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnCancel.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnCancel.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnCancel.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnCancel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _btnCancel.IconLeftCursor = Cursors.Hand; _btnCancel.IconMarginLeft = 11; _btnCancel.IconPadding = 10; _btnCancel.IconRightCursor = Cursors.Hand; _btnCancel.IdleBorderColor = Color.Gray; _btnCancel.IdleBorderRadius = 3; _btnCancel.IdleBorderThickness = 1; _btnCancel.IdleFillColor = Color.White; _btnCancel.IdleIconLeftImage = null; _btnCancel.IdleIconRightImage = null; _btnCancel.IndicateFocus = true; _btnCancel.Location = new Point(791, 439); _btnCancel.Name = "_btnCancel"; StateProperties3.BorderColor = Color.DarkGray; StateProperties3.BorderRadius = 3; StateProperties3.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties3.BorderThickness = 1; StateProperties3.FillColor = Color.DarkGray; StateProperties3.ForeColor = Color.White; StateProperties3.IconLeftImage = null; StateProperties3.IconRightImage = null; _btnCancel.onHoverState = StateProperties3; StateProperties4.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties4.BorderRadius = 3; StateProperties4.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties4.BorderThickness = 1; StateProperties4.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); StateProperties4.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties4.IconLeftImage = null; StateProperties4.IconRightImage = null; _btnCancel.OnPressedState = StateProperties4; _btnCancel.Size = new Size(86, 34); _btnCancel.TabIndex = 160; _btnCancel.TextAlign = ContentAlignment.MiddleCenter; _btnCancel.TextMarginLeft = 0; _btnCancel.UseDefaultRadiusAndThickness = true; // // Panel2 // Panel2.BorderStyle = BorderStyle.FixedSingle; Panel2.Controls.Add(_dgvMiniUnits); Panel2.Location = new Point(16, 152); Panel2.Name = "Panel2"; Panel2.Size = new Size(596, 273); Panel2.TabIndex = 186; // // dgvMiniUnits // _dgvMiniUnits.AllowCustomTheming = true; _dgvMiniUnits.AllowUserToAddRows = false; _dgvMiniUnits.AllowUserToDeleteRows = false; _dgvMiniUnits.AllowUserToOrderColumns = true; _dgvMiniUnits.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvMiniUnits.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; _dgvMiniUnits.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; _dgvMiniUnits.BackgroundColor = Color.White; _dgvMiniUnits.BorderStyle = BorderStyle.None; _dgvMiniUnits.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; _dgvMiniUnits.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText; _dgvMiniUnits.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; _dgvMiniUnits.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; _dgvMiniUnits.ColumnHeadersHeight = 30; _dgvMiniUnits.Columns.AddRange(new DataGridViewColumn[] { Column2, Column1, Column4, Column3 }); _dgvMiniUnits.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; _dgvMiniUnits.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _dgvMiniUnits.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; _dgvMiniUnits.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); _dgvMiniUnits.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; _dgvMiniUnits.CurrentTheme.BackColor = Color.Snow; _dgvMiniUnits.CurrentTheme.GridColor = Color.Gray; _dgvMiniUnits.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvMiniUnits.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); _dgvMiniUnits.CurrentTheme.HeaderStyle.ForeColor = Color.White; _dgvMiniUnits.CurrentTheme.Name = null; _dgvMiniUnits.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; _dgvMiniUnits.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _dgvMiniUnits.CurrentTheme.RowsStyle.ForeColor = Color.Black; _dgvMiniUnits.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; _dgvMiniUnits.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; _dgvMiniUnits.DefaultCellStyle = DataGridViewCellStyle3; _dgvMiniUnits.Dock = DockStyle.Fill; _dgvMiniUnits.EnableHeadersVisualStyles = false; _dgvMiniUnits.GridColor = Color.Gray; _dgvMiniUnits.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvMiniUnits.HeaderBgColor = Color.Empty; _dgvMiniUnits.HeaderForeColor = Color.White; _dgvMiniUnits.Location = new Point(0, 0); _dgvMiniUnits.MultiSelect = false; _dgvMiniUnits.Name = "_dgvMiniUnits"; _dgvMiniUnits.ReadOnly = true; _dgvMiniUnits.RowHeadersVisible = false; _dgvMiniUnits.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; _dgvMiniUnits.RowTemplate.Height = 30; _dgvMiniUnits.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _dgvMiniUnits.Size = new Size(594, 271); _dgvMiniUnits.TabIndex = 173; _dgvMiniUnits.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // Column2 // Column2.FillWeight = 89.44664f; Column2.HeaderText = "Mini Unit"; Column2.Name = "Column2"; Column2.ReadOnly = true; // // Column1 // Column1.HeaderText = "Customer"; Column1.Name = "Column1"; Column1.ReadOnly = true; // // Column4 // Column4.FillWeight = 134.4113f; Column4.HeaderText = "Commodity/Grade"; Column4.Name = "Column4"; Column4.ReadOnly = true; // // Column3 // Column3.FillWeight = 76.14214f; Column3.HeaderText = "Total Billed"; Column3.Name = "Column3"; Column3.ReadOnly = true; // // nucTotal // _nucTotal.Font = new Font("Microsoft Sans Serif", 15.70909f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _nucTotal.Location = new Point(30, 45); _nucTotal.Maximum = new decimal(new int[] { 1000000, 0, 0, 0 }); _nucTotal.Name = "_nucTotal"; _nucTotal.Size = new Size(120, 35); _nucTotal.TabIndex = 187; _nucTotal.TextAlign = HorizontalAlignment.Center; // // lblTitle // lblTitle.AutoSize = true; lblTitle.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblTitle.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); lblTitle.Location = new Point(12, 73); lblTitle.Name = "lblTitle"; lblTitle.Size = new Size(311, 25); lblTitle.TabIndex = 188; lblTitle.Text = "Total billed number assignment"; // // Label2 // Label2.AutoSize = true; Label2.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label2.Location = new Point(12, 118); Label2.Name = "Label2"; Label2.Size = new Size(429, 24); Label2.TabIndex = 189; Label2.Text = "Select the mini units to be assigned the difference "; // // lblTotaltoBeAsgn // lblTotaltoBeAsgn.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblTotaltoBeAsgn.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); lblTotaltoBeAsgn.Location = new Point(819, 100); lblTotaltoBeAsgn.Name = "lblTotaltoBeAsgn"; lblTotaltoBeAsgn.Size = new Size(96, 25); lblTotaltoBeAsgn.TabIndex = 190; lblTotaltoBeAsgn.Text = "200"; // // Label1 // Label1.AutoSize = true; Label1.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Location = new Point(639, 101); Label1.Name = "Label1"; Label1.Size = new Size(180, 24); Label1.TabIndex = 191; Label1.Text = "To be reassigned:"; // // lblminiUnitNumber // lblminiUnitNumber.AutoSize = true; lblminiUnitNumber.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblminiUnitNumber.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lblminiUnitNumber.Location = new Point(705, 186); lblminiUnitNumber.Name = "lblminiUnitNumber"; lblminiUnitNumber.Size = new Size(116, 24); lblminiUnitNumber.TabIndex = 193; lblminiUnitNumber.Text = "MINIUNIT(A)"; // // Panel3 // Panel3.BorderStyle = BorderStyle.FixedSingle; Panel3.Controls.Add(Label5); Panel3.Controls.Add(_nucTotal); Panel3.Location = new Point(670, 213); Panel3.Name = "Panel3"; Panel3.Size = new Size(193, 96); Panel3.TabIndex = 194; // // Label5 // Label5.AutoSize = true; Label5.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label5.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label5.Location = new Point(17, 15); Label5.Name = "Label5"; Label5.Size = new Size(56, 24); Label5.TabIndex = 194; Label5.Text = "Total:"; // // Label6 // Label6.AutoSize = true; Label6.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label6.Location = new Point(637, 71); Label6.Name = "Label6"; Label6.Size = new Size(240, 24); Label6.TabIndex = 195; Label6.Text = "_______________________"; // // labelTotalSomething // labelTotalSomething.AutoSize = true; labelTotalSomething.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); labelTotalSomething.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); labelTotalSomething.Location = new Point(639, 63); labelTotalSomething.Name = "labelTotalSomething"; labelTotalSomething.Size = new Size(118, 24); labelTotalSomething.TabIndex = 197; labelTotalSomething.Text = "Total Pieces:"; // // lbltotalNumber // lbltotalNumber.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lbltotalNumber.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lbltotalNumber.Location = new Point(819, 61); lbltotalNumber.Name = "lbltotalNumber"; lbltotalNumber.Size = new Size(93, 25); lbltotalNumber.TabIndex = 196; lbltotalNumber.Text = "500"; // // FrmModifyMUBilledValues // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(925, 500); Controls.Add(lblTotaltoBeAsgn); Controls.Add(lblminiUnitNumber); Controls.Add(labelTotalSomething); Controls.Add(_btnCancel); Controls.Add(lbltotalNumber); Controls.Add(_btnUpdateMu); Controls.Add(Label6); Controls.Add(Panel3); Controls.Add(Label1); Controls.Add(Label2); Controls.Add(lblTitle); Controls.Add(Panel2); Controls.Add(_closeLabel); Controls.Add(Label12); FormBorderStyle = FormBorderStyle.None; Name = "FrmModifyMUBilledValues"; Text = "FrmModifyMUBilledValues"; Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)_dgvMiniUnits).EndInit(); ((System.ComponentModel.ISupportInitialize)_nucTotal).EndInit(); Panel3.ResumeLayout(false); Panel3.PerformLayout(); Load += new EventHandler(FrmModifyMUBilledValues_Load); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAddDocumentType)); var StateProperties1 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties5 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties6 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties7 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties8 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); var BorderEdges3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties9 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties10 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties11 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties12 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties13 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties14 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); Label2 = new Label(); BunifuLabel3 = new Bunifu.UI.WinForms.BunifuLabel(); txtDocumentType = new BunifuTextBox(); _btnInsert = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnInsert.Click += new EventHandler(btnInsert_Click); _btnClose = new Label(); _btnClose.Click += new EventHandler(btnClose_Click); BunifuLabel5 = new Bunifu.UI.WinForms.BunifuLabel(); ddlDepartment = new Bunifu.UI.WinForms.BunifuDropdown(); DocumentsStoredDepartmentBindingSource = new BindingSource(components); GroupBox1 = new GroupBox(); BunifuButton1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); Panel1 = new Panel(); dgvDocGroup = new Bunifu.UI.WinForms.BunifuDataGridView(); Column1 = new DataGridViewTextBoxColumn(); Chebox = new DataGridViewCheckBoxColumn(); Group = new DataGridViewTextBoxColumn(); btnAddDepartment = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); BunifuTextBox1 = new BunifuTextBox(); BunifuLabel1 = new Bunifu.UI.WinForms.BunifuLabel(); ((System.ComponentModel.ISupportInitialize)DocumentsStoredDepartmentBindingSource).BeginInit(); GroupBox1.SuspendLayout(); Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)dgvDocGroup).BeginInit(); SuspendLayout(); // // Label2 // Label2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label2.Dock = DockStyle.Top; Label2.Font = new Font("Microsoft Sans Serif", 22.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.White; Label2.Location = new Point(0, 0); Label2.Name = "Label2"; Label2.Size = new Size(629, 41); Label2.TabIndex = 146; Label2.TextAlign = ContentAlignment.MiddleCenter; // // BunifuLabel3 // BunifuLabel3.AutoEllipsis = false; BunifuLabel3.CursorType = null; BunifuLabel3.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); BunifuLabel3.Location = new Point(40, 137); BunifuLabel3.Name = "BunifuLabel3"; BunifuLabel3.RightToLeft = RightToLeft.No; BunifuLabel3.Size = new Size(135, 24); BunifuLabel3.TabIndex = 192; BunifuLabel3.Text = "Document Type:"; BunifuLabel3.TextAlignment = ContentAlignment.TopLeft; BunifuLabel3.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // txtDocumentType // txtDocumentType.AcceptsReturn = false; txtDocumentType.AcceptsTab = false; txtDocumentType.AnimationSpeed = 200; txtDocumentType.AutoCompleteMode = AutoCompleteMode.None; txtDocumentType.AutoCompleteSource = AutoCompleteSource.None; txtDocumentType.BackColor = Color.Transparent; txtDocumentType.BackgroundImage = (Image)resources.GetObject("txtDocumentType.BackgroundImage"); txtDocumentType.BorderColorActive = Color.DodgerBlue; txtDocumentType.BorderColorDisabled = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161))); txtDocumentType.BorderColorHover = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); txtDocumentType.BorderColorIdle = Color.Silver; txtDocumentType.BorderRadius = 1; txtDocumentType.BorderThickness = 1; txtDocumentType.CharacterCasing = CharacterCasing.Upper; txtDocumentType.Cursor = Cursors.IBeam; txtDocumentType.DefaultFont = new Font("Segoe UI Semibold", 9.75f); txtDocumentType.DefaultText = ""; txtDocumentType.FillColor = Color.White; txtDocumentType.HideSelection = true; txtDocumentType.IconLeft = null; txtDocumentType.IconLeftCursor = Cursors.IBeam; txtDocumentType.IconPadding = 10; txtDocumentType.IconRight = null; txtDocumentType.IconRightCursor = Cursors.IBeam; txtDocumentType.Lines = new string[0]; txtDocumentType.Location = new Point(175, 130); txtDocumentType.MaxLength = 32767; txtDocumentType.MinimumSize = new Size(100, 35); txtDocumentType.Modified = false; txtDocumentType.Multiline = false; txtDocumentType.Name = "txtDocumentType"; StateProperties1.BorderColor = Color.DodgerBlue; StateProperties1.FillColor = Color.Empty; StateProperties1.ForeColor = Color.Empty; StateProperties1.PlaceholderForeColor = Color.Empty; txtDocumentType.OnActiveState = StateProperties1; StateProperties2.BorderColor = Color.Empty; StateProperties2.FillColor = Color.White; StateProperties2.ForeColor = Color.Empty; StateProperties2.PlaceholderForeColor = Color.Silver; txtDocumentType.OnDisabledState = StateProperties2; StateProperties3.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties3.FillColor = Color.Empty; StateProperties3.ForeColor = Color.Empty; StateProperties3.PlaceholderForeColor = Color.Empty; txtDocumentType.OnHoverState = StateProperties3; StateProperties4.BorderColor = Color.Silver; StateProperties4.FillColor = Color.White; StateProperties4.ForeColor = Color.Empty; StateProperties4.PlaceholderForeColor = Color.Empty; txtDocumentType.OnIdleState = StateProperties4; txtDocumentType.PasswordChar = '\0'; txtDocumentType.PlaceholderForeColor = Color.Silver; txtDocumentType.PlaceholderText = "ENTER TEXT"; txtDocumentType.ReadOnly = false; txtDocumentType.ScrollBars = ScrollBars.None; txtDocumentType.SelectedText = ""; txtDocumentType.SelectionLength = 0; txtDocumentType.SelectionStart = 0; txtDocumentType.ShortcutsEnabled = true; txtDocumentType.Size = new Size(425, 35); txtDocumentType.Style = _Style.Bunifu; txtDocumentType.TabIndex = 193; txtDocumentType.TextAlign = HorizontalAlignment.Left; txtDocumentType.TextMarginBottom = 0; txtDocumentType.TextMarginLeft = 5; txtDocumentType.TextMarginTop = 0; txtDocumentType.TextPlaceholder = "ENTER TEXT"; txtDocumentType.UseSystemPasswordChar = false; txtDocumentType.WordWrap = true; // // btnInsert // _btnInsert.AllowToggling = false; _btnInsert.AnimationSpeed = 200; _btnInsert.AutoGenerateColors = false; _btnInsert.BackColor = Color.Transparent; _btnInsert.BackColor1 = Color.Teal; _btnInsert.BackgroundImage = (Image)resources.GetObject("btnInsert.BackgroundImage"); _btnInsert.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnInsert.ButtonText = "Insert"; _btnInsert.ButtonTextMarginLeft = 0; _btnInsert.ColorContrastOnClick = 45; _btnInsert.ColorContrastOnHover = 45; _btnInsert.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _btnInsert.CustomizableEdges = BorderEdges1; _btnInsert.DialogResult = DialogResult.None; _btnInsert.DisabledBorderColor = Color.Empty; _btnInsert.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnInsert.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnInsert.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnInsert.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnInsert.ForeColor = Color.White; _btnInsert.IconLeftCursor = Cursors.Hand; _btnInsert.IconMarginLeft = 11; _btnInsert.IconPadding = 10; _btnInsert.IconRightCursor = Cursors.Hand; _btnInsert.IdleBorderColor = Color.Teal; _btnInsert.IdleBorderRadius = 3; _btnInsert.IdleBorderThickness = 1; _btnInsert.IdleFillColor = Color.Teal; _btnInsert.IdleIconLeftImage = null; _btnInsert.IdleIconRightImage = null; _btnInsert.IndicateFocus = true; _btnInsert.Location = new Point(508, 176); _btnInsert.Name = "_btnInsert"; StateProperties5.BorderColor = Color.MediumTurquoise; StateProperties5.BorderRadius = 3; StateProperties5.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties5.BorderThickness = 1; StateProperties5.FillColor = Color.MediumTurquoise; StateProperties5.ForeColor = Color.White; StateProperties5.IconLeftImage = null; StateProperties5.IconRightImage = null; _btnInsert.onHoverState = StateProperties5; StateProperties6.BorderColor = Color.Teal; StateProperties6.BorderRadius = 3; StateProperties6.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties6.BorderThickness = 1; StateProperties6.FillColor = Color.Teal; StateProperties6.ForeColor = Color.White; StateProperties6.IconLeftImage = null; StateProperties6.IconRightImage = null; _btnInsert.OnPressedState = StateProperties6; _btnInsert.Size = new Size(100, 40); _btnInsert.TabIndex = 199; _btnInsert.TextAlign = ContentAlignment.MiddleCenter; _btnInsert.TextMarginLeft = 0; _btnInsert.UseDefaultRadiusAndThickness = true; // // btnClose // _btnClose.Anchor = AnchorStyles.Top | AnchorStyles.Right; _btnClose.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _btnClose.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _btnClose.ForeColor = Color.White; _btnClose.Location = new Point(589, -4); _btnClose.Margin = new Padding(0); _btnClose.Name = "_btnClose"; _btnClose.Size = new Size(40, 41); _btnClose.TabIndex = 203; _btnClose.Text = "🗙"; _btnClose.TextAlign = ContentAlignment.MiddleCenter; // // BunifuLabel5 // BunifuLabel5.AutoEllipsis = false; BunifuLabel5.CursorType = null; BunifuLabel5.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel5.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); BunifuLabel5.Location = new Point(68, 92); BunifuLabel5.Name = "BunifuLabel5"; BunifuLabel5.RightToLeft = RightToLeft.No; BunifuLabel5.Size = new Size(101, 24); BunifuLabel5.TabIndex = 210; BunifuLabel5.Text = "Department:"; BunifuLabel5.TextAlignment = ContentAlignment.TopLeft; BunifuLabel5.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // ddlDepartment // ddlDepartment.BackColor = Color.White; ddlDepartment.BorderRadius = 1; ddlDepartment.Color = Color.Gray; ddlDepartment.DataSource = DocumentsStoredDepartmentBindingSource; ddlDepartment.Direction = Bunifu.UI.WinForms.BunifuDropdown.Directions.Down; ddlDepartment.DisabledColor = Color.Gray; ddlDepartment.DisplayMember = "DescDocumentsStoredDepartment"; ddlDepartment.DrawMode = DrawMode.OwnerDrawFixed; ddlDepartment.DropdownBorderThickness = Bunifu.UI.WinForms.BunifuDropdown.BorderThickness.Thick; ddlDepartment.DropDownStyle = ComboBoxStyle.DropDownList; ddlDepartment.DropDownTextAlign = Bunifu.UI.WinForms.BunifuDropdown.TextAlign.Left; ddlDepartment.Enabled = false; ddlDepartment.FillDropDown = false; ddlDepartment.FillIndicator = false; ddlDepartment.FlatStyle = FlatStyle.Flat; ddlDepartment.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); ddlDepartment.ForeColor = Color.Black; ddlDepartment.FormattingEnabled = true; ddlDepartment.Icon = null; ddlDepartment.IndicatorColor = Color.Gray; ddlDepartment.IndicatorLocation = Bunifu.UI.WinForms.BunifuDropdown.Indicator.Right; ddlDepartment.ItemBackColor = Color.White; ddlDepartment.ItemBorderColor = Color.White; ddlDepartment.ItemForeColor = Color.Black; ddlDepartment.ItemHeight = 26; ddlDepartment.ItemHighLightColor = Color.DodgerBlue; ddlDepartment.Location = new Point(175, 92); ddlDepartment.Name = "ddlDepartment"; ddlDepartment.Size = new Size(230, 32); ddlDepartment.TabIndex = 209; ddlDepartment.Text = null; ddlDepartment.ValueMember = "DocumentsStoredDepartmentId"; // // DocumentsStoredDepartmentBindingSource // DocumentsStoredDepartmentBindingSource.DataSource = typeof(ModelLayer.DocumentsStoredDepartment); // // GroupBox1 // GroupBox1.Controls.Add(BunifuButton1); GroupBox1.Controls.Add(Panel1); GroupBox1.Controls.Add(btnAddDepartment); GroupBox1.Controls.Add(BunifuTextBox1); GroupBox1.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); GroupBox1.Location = new Point(12, 245); GroupBox1.Name = "GroupBox1"; GroupBox1.Size = new Size(596, 323); GroupBox1.TabIndex = 211; GroupBox1.TabStop = false; GroupBox1.Text = "Group"; // // BunifuButton1 // BunifuButton1.AllowToggling = false; BunifuButton1.AnimationSpeed = 200; BunifuButton1.AutoGenerateColors = false; BunifuButton1.BackColor = Color.Transparent; BunifuButton1.BackColor1 = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); BunifuButton1.BackgroundImage = (Image)resources.GetObject("BunifuButton1.BackgroundImage"); BunifuButton1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; BunifuButton1.ButtonText = ""; BunifuButton1.ButtonTextMarginLeft = 0; BunifuButton1.ColorContrastOnClick = 45; BunifuButton1.ColorContrastOnHover = 45; BunifuButton1.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; BunifuButton1.CustomizableEdges = BorderEdges2; BunifuButton1.DialogResult = DialogResult.None; BunifuButton1.DisabledBorderColor = Color.Empty; BunifuButton1.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); BunifuButton1.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); BunifuButton1.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; BunifuButton1.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuButton1.ForeColor = Color.White; BunifuButton1.IconLeftCursor = Cursors.Hand; BunifuButton1.IconMarginLeft = 11; BunifuButton1.IconPadding = 10; BunifuButton1.IconRightCursor = Cursors.Hand; BunifuButton1.IdleBorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); BunifuButton1.IdleBorderRadius = 3; BunifuButton1.IdleBorderThickness = 1; BunifuButton1.IdleFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); BunifuButton1.IdleIconLeftImage = My.Resources.Resources.removeWhite; BunifuButton1.IdleIconRightImage = null; BunifuButton1.IndicateFocus = true; BunifuButton1.Location = new Point(496, 35); BunifuButton1.Name = "BunifuButton1"; StateProperties7.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties7.BorderRadius = 3; StateProperties7.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties7.BorderThickness = 1; StateProperties7.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(128))); StateProperties7.ForeColor = Color.White; StateProperties7.IconLeftImage = null; StateProperties7.IconRightImage = null; BunifuButton1.onHoverState = StateProperties7; StateProperties8.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties8.BorderRadius = 3; StateProperties8.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties8.BorderThickness = 1; StateProperties8.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties8.ForeColor = Color.White; StateProperties8.IconLeftImage = null; StateProperties8.IconRightImage = null; BunifuButton1.OnPressedState = StateProperties8; BunifuButton1.Size = new Size(32, 32); BunifuButton1.TabIndex = 226; BunifuButton1.TextAlign = ContentAlignment.MiddleCenter; BunifuButton1.TextMarginLeft = 0; BunifuButton1.UseDefaultRadiusAndThickness = true; // // Panel1 // Panel1.BorderStyle = BorderStyle.FixedSingle; Panel1.Controls.Add(dgvDocGroup); Panel1.Location = new Point(19, 108); Panel1.Name = "Panel1"; Panel1.Size = new Size(560, 196); Panel1.TabIndex = 225; // // dgvDocGroup // dgvDocGroup.AllowCustomTheming = true; dgvDocGroup.AllowUserToAddRows = false; dgvDocGroup.AllowUserToDeleteRows = false; dgvDocGroup.AllowUserToResizeColumns = false; dgvDocGroup.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvDocGroup.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; dgvDocGroup.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvDocGroup.BackgroundColor = Color.White; dgvDocGroup.BorderStyle = BorderStyle.None; dgvDocGroup.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; dgvDocGroup.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; dgvDocGroup.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; dgvDocGroup.ColumnHeadersHeight = 40; dgvDocGroup.Columns.AddRange(new DataGridViewColumn[] { Column1, Chebox, Group }); dgvDocGroup.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; dgvDocGroup.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvDocGroup.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; dgvDocGroup.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); dgvDocGroup.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; dgvDocGroup.CurrentTheme.BackColor = Color.Snow; dgvDocGroup.CurrentTheme.GridColor = Color.Gray; dgvDocGroup.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvDocGroup.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); dgvDocGroup.CurrentTheme.HeaderStyle.ForeColor = Color.White; dgvDocGroup.CurrentTheme.Name = null; dgvDocGroup.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; dgvDocGroup.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); dgvDocGroup.CurrentTheme.RowsStyle.ForeColor = Color.Black; dgvDocGroup.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; dgvDocGroup.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; dgvDocGroup.DefaultCellStyle = DataGridViewCellStyle3; dgvDocGroup.Dock = DockStyle.Fill; dgvDocGroup.EnableHeadersVisualStyles = false; dgvDocGroup.GridColor = Color.Gray; dgvDocGroup.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); dgvDocGroup.HeaderBgColor = Color.Empty; dgvDocGroup.HeaderForeColor = Color.White; dgvDocGroup.Location = new Point(0, 0); dgvDocGroup.MultiSelect = false; dgvDocGroup.Name = "dgvDocGroup"; dgvDocGroup.ReadOnly = true; dgvDocGroup.RowHeadersVisible = false; dgvDocGroup.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; dgvDocGroup.RowTemplate.Height = 40; dgvDocGroup.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvDocGroup.Size = new Size(558, 194); dgvDocGroup.TabIndex = 212; dgvDocGroup.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // Column1 // Column1.HeaderText = "GroupId"; Column1.Name = "Column1"; Column1.ReadOnly = true; Column1.Visible = false; // // Chebox // Chebox.HeaderText = ""; Chebox.Name = "Chebox"; Chebox.ReadOnly = true; // // Group // Group.HeaderText = "Group"; Group.Name = "Group"; Group.ReadOnly = true; Group.Visible = false; // // btnAddDepartment // btnAddDepartment.AllowToggling = false; btnAddDepartment.AnimationSpeed = 200; btnAddDepartment.AutoGenerateColors = false; btnAddDepartment.BackColor = Color.Transparent; btnAddDepartment.BackColor1 = Color.Teal; btnAddDepartment.BackgroundImage = (Image)resources.GetObject("btnAddDepartment.BackgroundImage"); btnAddDepartment.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; btnAddDepartment.ButtonText = ""; btnAddDepartment.ButtonTextMarginLeft = 0; btnAddDepartment.ColorContrastOnClick = 45; btnAddDepartment.ColorContrastOnHover = 45; btnAddDepartment.Cursor = Cursors.Hand; BorderEdges3.BottomLeft = true; BorderEdges3.BottomRight = true; BorderEdges3.TopLeft = true; BorderEdges3.TopRight = true; btnAddDepartment.CustomizableEdges = BorderEdges3; btnAddDepartment.DialogResult = DialogResult.None; btnAddDepartment.DisabledBorderColor = Color.Empty; btnAddDepartment.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); btnAddDepartment.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); btnAddDepartment.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; btnAddDepartment.Font = new Font("Segoe UI Semibold", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); btnAddDepartment.ForeColor = Color.White; btnAddDepartment.IconLeftCursor = Cursors.Hand; btnAddDepartment.IconMarginLeft = 11; btnAddDepartment.IconPadding = 10; btnAddDepartment.IconRightCursor = Cursors.Hand; btnAddDepartment.IdleBorderColor = Color.Teal; btnAddDepartment.IdleBorderRadius = 3; btnAddDepartment.IdleBorderThickness = 1; btnAddDepartment.IdleFillColor = Color.Teal; btnAddDepartment.IdleIconLeftImage = My.Resources.Resources.addWhite; btnAddDepartment.IdleIconRightImage = null; btnAddDepartment.IndicateFocus = true; btnAddDepartment.Location = new Point(438, 35); btnAddDepartment.Name = "btnAddDepartment"; StateProperties9.BorderColor = Color.MediumTurquoise; StateProperties9.BorderRadius = 3; StateProperties9.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties9.BorderThickness = 1; StateProperties9.FillColor = Color.MediumTurquoise; StateProperties9.ForeColor = Color.White; StateProperties9.IconLeftImage = null; StateProperties9.IconRightImage = null; btnAddDepartment.onHoverState = StateProperties9; StateProperties10.BorderColor = Color.Teal; StateProperties10.BorderRadius = 3; StateProperties10.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties10.BorderThickness = 1; StateProperties10.FillColor = Color.Teal; StateProperties10.ForeColor = Color.White; StateProperties10.IconLeftImage = null; StateProperties10.IconRightImage = null; btnAddDepartment.OnPressedState = StateProperties10; btnAddDepartment.Size = new Size(32, 32); btnAddDepartment.TabIndex = 224; btnAddDepartment.TextAlign = ContentAlignment.MiddleCenter; btnAddDepartment.TextMarginLeft = 0; btnAddDepartment.UseDefaultRadiusAndThickness = true; // // BunifuTextBox1 // BunifuTextBox1.AcceptsReturn = false; BunifuTextBox1.AcceptsTab = false; BunifuTextBox1.AnimationSpeed = 200; BunifuTextBox1.AutoCompleteMode = AutoCompleteMode.None; BunifuTextBox1.AutoCompleteSource = AutoCompleteSource.None; BunifuTextBox1.BackColor = Color.Transparent; BunifuTextBox1.BackgroundImage = (Image)resources.GetObject("BunifuTextBox1.BackgroundImage"); BunifuTextBox1.BorderColorActive = Color.DodgerBlue; BunifuTextBox1.BorderColorDisabled = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161))); BunifuTextBox1.BorderColorHover = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); BunifuTextBox1.BorderColorIdle = Color.Silver; BunifuTextBox1.BorderRadius = 1; BunifuTextBox1.BorderThickness = 1; BunifuTextBox1.CharacterCasing = CharacterCasing.Upper; BunifuTextBox1.Cursor = Cursors.IBeam; BunifuTextBox1.DefaultFont = new Font("Segoe UI Semibold", 9.75f); BunifuTextBox1.DefaultText = ""; BunifuTextBox1.FillColor = Color.White; BunifuTextBox1.HideSelection = true; BunifuTextBox1.IconLeft = null; BunifuTextBox1.IconLeftCursor = Cursors.IBeam; BunifuTextBox1.IconPadding = 10; BunifuTextBox1.IconRight = null; BunifuTextBox1.IconRightCursor = Cursors.IBeam; BunifuTextBox1.Lines = new string[0]; BunifuTextBox1.Location = new Point(10, 34); BunifuTextBox1.MaxLength = 32767; BunifuTextBox1.MinimumSize = new Size(100, 35); BunifuTextBox1.Modified = false; BunifuTextBox1.Multiline = false; BunifuTextBox1.Name = "BunifuTextBox1"; StateProperties11.BorderColor = Color.DodgerBlue; StateProperties11.FillColor = Color.Empty; StateProperties11.ForeColor = Color.Empty; StateProperties11.PlaceholderForeColor = Color.Empty; BunifuTextBox1.OnActiveState = StateProperties11; StateProperties12.BorderColor = Color.Empty; StateProperties12.FillColor = Color.White; StateProperties12.ForeColor = Color.Empty; StateProperties12.PlaceholderForeColor = Color.Silver; StateProperties12.PlaceholderForeColor = Color.Silver; BunifuTextBox1.OnDisabledState = StateProperties12; StateProperties13.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties13.FillColor = Color.Empty; StateProperties13.ForeColor = Color.Empty; StateProperties13.PlaceholderForeColor = Color.Empty; BunifuTextBox1.OnHoverState = StateProperties13; StateProperties14.BorderColor = Color.Silver; StateProperties14.FillColor = Color.White; StateProperties14.ForeColor = Color.Empty; StateProperties14.PlaceholderForeColor = Color.Empty; BunifuTextBox1.OnIdleState = StateProperties14; BunifuTextBox1.PasswordChar = '\0'; BunifuTextBox1.PlaceholderForeColor = Color.Silver; BunifuTextBox1.PlaceholderText = "ENTER TEXT"; BunifuTextBox1.ReadOnly = false; BunifuTextBox1.ScrollBars = ScrollBars.None; BunifuTextBox1.SelectedText = ""; BunifuTextBox1.SelectionLength = 0; BunifuTextBox1.SelectionStart = 0; BunifuTextBox1.ShortcutsEnabled = true; BunifuTextBox1.Size = new Size(422, 35); BunifuTextBox1.Style = _Style.Bunifu; BunifuTextBox1.TabIndex = 212; BunifuTextBox1.TextAlign = HorizontalAlignment.Left; BunifuTextBox1.TextMarginBottom = 0; BunifuTextBox1.TextMarginLeft = 5; BunifuTextBox1.TextMarginTop = 0; BunifuTextBox1.TextPlaceholder = "ENTER TEXT"; BunifuTextBox1.UseSystemPasswordChar = false; BunifuTextBox1.WordWrap = true; // // BunifuLabel1 // BunifuLabel1.AutoEllipsis = false; BunifuLabel1.CursorType = null; BunifuLabel1.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); BunifuLabel1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); BunifuLabel1.Location = new Point(32, 56); BunifuLabel1.Name = "BunifuLabel1"; BunifuLabel1.RightToLeft = RightToLeft.No; BunifuLabel1.Size = new Size(212, 27); BunifuLabel1.TabIndex = 212; BunifuLabel1.Text = "Add document type:"; BunifuLabel1.TextAlignment = ContentAlignment.TopLeft; BunifuLabel1.TextFormat = Bunifu.UI.WinForms.BunifuLabel.TextFormattingOptions.Default; // // frmAddDocumentType // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(629, 232); Controls.Add(BunifuLabel1); Controls.Add(GroupBox1); Controls.Add(BunifuLabel5); Controls.Add(ddlDepartment); Controls.Add(_btnClose); Controls.Add(_btnInsert); Controls.Add(txtDocumentType); Controls.Add(BunifuLabel3); Controls.Add(Label2); FormBorderStyle = FormBorderStyle.None; Name = "frmAddDocumentType"; StartPosition = FormStartPosition.CenterScreen; Text = "frmAddDocumentType"; ((System.ComponentModel.ISupportInitialize)DocumentsStoredDepartmentBindingSource).EndInit(); GroupBox1.ResumeLayout(false); Panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)dgvDocGroup).EndInit(); Load += new EventHandler(frmAddDocumentType_Load); ResumeLayout(false); PerformLayout(); }
// Cambiar nombres de columnas DTG Beneficiarios private void Cambiar_Columns_Beneficiarios(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Datagrid_receptor.Columns[1].HeaderText = "Tipo documento"; Datagrid_receptor.Columns[3].HeaderText = "Fecha de nacimiento"; }
private void InitializeComponent() { var DataGridViewCellStyle4 = new DataGridViewCellStyle(); var DataGridViewCellStyle5 = new DataGridViewCellStyle(); var DataGridViewCellStyle6 = new DataGridViewCellStyle(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmModifyTotalNumbCont)); var BorderEdges3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties5 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties6 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var BorderEdges4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties7 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties8 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); lbltotalNumber = new Label(); Label6 = new Label(); Label5 = new Label(); lblTotaltoBeAsgn = new Label(); lblminiBkgNumber = new Label(); labelTotalSomething = new Label(); Panel3 = new Panel(); _nucTotal = new NumericUpDown(); _nucTotal.ValueChanged += new EventHandler(nucTotal_ValueChanged); Label1 = new Label(); Label2 = new Label(); lblTitle = new Label(); _dgvMiniBks = new Bunifu.UI.WinForms.BunifuDataGridView(); _dgvMiniBks.SelectionChanged += new EventHandler(dgvMiniBks_SelectionChanged); _btnCancel = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnCancel.Click += new EventHandler(closeLabel_Click); _btnSaveMb = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnSaveMb.Click += new EventHandler(btnSaveMb_Click); Panel2 = new Panel(); Label12 = new Label(); _closeLabel = new Label(); _closeLabel.Click += new EventHandler(closeLabel_Click); Label3 = new Label(); lblContInMb = new Label(); Column2 = new DataGridViewTextBoxColumn(); Column3 = new DataGridViewTextBoxColumn(); Panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)_nucTotal).BeginInit(); ((System.ComponentModel.ISupportInitialize)_dgvMiniBks).BeginInit(); Panel2.SuspendLayout(); SuspendLayout(); // // lbltotalNumber // lbltotalNumber.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lbltotalNumber.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lbltotalNumber.Location = new Point(689, 54); lbltotalNumber.Name = "lbltotalNumber"; lbltotalNumber.Size = new Size(93, 25); lbltotalNumber.TabIndex = 210; lbltotalNumber.Text = "500"; // // Label6 // Label6.AutoSize = true; Label6.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label6.Location = new Point(509, 102); Label6.Name = "Label6"; Label6.Size = new Size(216, 20); Label6.TabIndex = 209; Label6.Text = "_______________________"; // // Label5 // Label5.AutoSize = true; Label5.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label5.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label5.Location = new Point(17, 15); Label5.Name = "Label5"; Label5.Size = new Size(126, 20); Label5.TabIndex = 194; Label5.Text = "Total containers:"; // // lblTotaltoBeAsgn // lblTotaltoBeAsgn.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblTotaltoBeAsgn.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); lblTotaltoBeAsgn.Location = new Point(689, 128); lblTotaltoBeAsgn.Name = "lblTotaltoBeAsgn"; lblTotaltoBeAsgn.Size = new Size(96, 25); lblTotaltoBeAsgn.TabIndex = 205; lblTotaltoBeAsgn.Text = "200"; // // lblminiBkgNumber // lblminiBkgNumber.AutoSize = true; lblminiBkgNumber.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblminiBkgNumber.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lblminiBkgNumber.Location = new Point(340, 221); lblminiBkgNumber.Name = "lblminiBkgNumber"; lblminiBkgNumber.Size = new Size(133, 20); lblminiBkgNumber.TabIndex = 207; lblminiBkgNumber.Text = "MINIBOOKNG(A)"; // // labelTotalSomething // labelTotalSomething.AutoSize = true; labelTotalSomething.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); labelTotalSomething.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); labelTotalSomething.Location = new Point(509, 56); labelTotalSomething.Name = "labelTotalSomething"; labelTotalSomething.Size = new Size(129, 20); labelTotalSomething.TabIndex = 211; labelTotalSomething.Text = "Total Containers:"; // // Panel3 // Panel3.BorderStyle = BorderStyle.FixedSingle; Panel3.Controls.Add(Label5); Panel3.Controls.Add(_nucTotal); Panel3.Location = new Point(336, 248); Panel3.Name = "Panel3"; Panel3.Size = new Size(193, 96); Panel3.TabIndex = 208; // // nucTotal // _nucTotal.Font = new Font("Microsoft Sans Serif", 15.70909f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _nucTotal.Location = new Point(30, 45); _nucTotal.Maximum = new decimal(new int[] { 1000000, 0, 0, 0 }); _nucTotal.Name = "_nucTotal"; _nucTotal.Size = new Size(120, 31); _nucTotal.TabIndex = 187; _nucTotal.TextAlign = HorizontalAlignment.Center; // // Label1 // Label1.AutoSize = true; Label1.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Location = new Point(509, 129); Label1.Name = "Label1"; Label1.Size = new Size(145, 20); Label1.TabIndex = 206; Label1.Text = "Extra containers:"; // // Label2 // Label2.AutoSize = true; Label2.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label2.Location = new Point(12, 122); Label2.Name = "Label2"; Label2.Size = new Size(435, 20); Label2.TabIndex = 204; Label2.Text = "Select the mini bookings that will receive the extra containers" + '\r' + '\n'; // // lblTitle // lblTitle.AutoSize = true; lblTitle.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblTitle.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); lblTitle.Location = new Point(12, 77); lblTitle.Name = "lblTitle"; lblTitle.Size = new Size(234, 24); lblTitle.TabIndex = 203; lblTitle.Text = "Total number of containers"; // // dgvMiniBks // _dgvMiniBks.AllowCustomTheming = true; _dgvMiniBks.AllowUserToAddRows = false; _dgvMiniBks.AllowUserToDeleteRows = false; _dgvMiniBks.AllowUserToOrderColumns = true; _dgvMiniBks.AllowUserToResizeRows = false; DataGridViewCellStyle4.BackColor = Color.White; DataGridViewCellStyle4.ForeColor = Color.Black; DataGridViewCellStyle4.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvMiniBks.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4; _dgvMiniBks.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; _dgvMiniBks.BackgroundColor = Color.White; _dgvMiniBks.BorderStyle = BorderStyle.None; _dgvMiniBks.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; _dgvMiniBks.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText; _dgvMiniBks.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle5.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle5.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle5.ForeColor = Color.White; DataGridViewCellStyle5.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle5.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle5.WrapMode = DataGridViewTriState.True; _dgvMiniBks.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle5; _dgvMiniBks.ColumnHeadersHeight = 30; _dgvMiniBks.Columns.AddRange(new DataGridViewColumn[] { Column2, Column3 }); _dgvMiniBks.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; _dgvMiniBks.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _dgvMiniBks.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; _dgvMiniBks.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); _dgvMiniBks.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; _dgvMiniBks.CurrentTheme.BackColor = Color.Snow; _dgvMiniBks.CurrentTheme.GridColor = Color.Gray; _dgvMiniBks.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvMiniBks.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); _dgvMiniBks.CurrentTheme.HeaderStyle.ForeColor = Color.White; _dgvMiniBks.CurrentTheme.Name = null; _dgvMiniBks.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; _dgvMiniBks.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _dgvMiniBks.CurrentTheme.RowsStyle.ForeColor = Color.Black; _dgvMiniBks.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; _dgvMiniBks.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle6.BackColor = Color.WhiteSmoke; DataGridViewCellStyle6.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle6.ForeColor = Color.Black; DataGridViewCellStyle6.SelectionBackColor = Color.Gray; DataGridViewCellStyle6.SelectionForeColor = Color.Black; DataGridViewCellStyle6.WrapMode = DataGridViewTriState.False; _dgvMiniBks.DefaultCellStyle = DataGridViewCellStyle6; _dgvMiniBks.Dock = DockStyle.Fill; _dgvMiniBks.EnableHeadersVisualStyles = false; _dgvMiniBks.GridColor = Color.Gray; _dgvMiniBks.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _dgvMiniBks.HeaderBgColor = Color.Empty; _dgvMiniBks.HeaderForeColor = Color.White; _dgvMiniBks.Location = new Point(0, 0); _dgvMiniBks.MultiSelect = false; _dgvMiniBks.Name = "_dgvMiniBks"; _dgvMiniBks.ReadOnly = true; _dgvMiniBks.RowHeadersVisible = false; _dgvMiniBks.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; _dgvMiniBks.RowTemplate.Height = 30; _dgvMiniBks.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _dgvMiniBks.Size = new Size(241, 271); _dgvMiniBks.TabIndex = 173; _dgvMiniBks.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // btnCancel // _btnCancel.AllowToggling = false; _btnCancel.AnimationSpeed = 200; _btnCancel.AutoGenerateColors = false; _btnCancel.BackColor = Color.Transparent; _btnCancel.BackColor1 = Color.White; _btnCancel.BackgroundImage = (Image)resources.GetObject("btnCancel.BackgroundImage"); _btnCancel.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnCancel.ButtonText = "Cancel"; _btnCancel.ButtonTextMarginLeft = 0; _btnCancel.ColorContrastOnClick = 45; _btnCancel.ColorContrastOnHover = 45; _btnCancel.Cursor = Cursors.Hand; BorderEdges3.BottomLeft = true; BorderEdges3.BottomRight = true; BorderEdges3.TopLeft = true; BorderEdges3.TopRight = true; _btnCancel.CustomizableEdges = BorderEdges3; _btnCancel.DialogResult = DialogResult.None; _btnCancel.DisabledBorderColor = Color.Empty; _btnCancel.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnCancel.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnCancel.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnCancel.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnCancel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _btnCancel.IconLeftCursor = Cursors.Hand; _btnCancel.IconMarginLeft = 11; _btnCancel.IconPadding = 10; _btnCancel.IconRightCursor = Cursors.Hand; _btnCancel.IdleBorderColor = Color.Gray; _btnCancel.IdleBorderRadius = 3; _btnCancel.IdleBorderThickness = 1; _btnCancel.IdleFillColor = Color.White; _btnCancel.IdleIconLeftImage = null; _btnCancel.IdleIconRightImage = null; _btnCancel.IndicateFocus = true; _btnCancel.Location = new Point(401, 449); _btnCancel.Name = "_btnCancel"; StateProperties5.BorderColor = Color.DarkGray; StateProperties5.BorderRadius = 3; StateProperties5.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties5.BorderThickness = 1; StateProperties5.FillColor = Color.DarkGray; StateProperties5.ForeColor = Color.White; StateProperties5.IconLeftImage = null; StateProperties5.IconRightImage = null; _btnCancel.onHoverState = StateProperties5; StateProperties6.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties6.BorderRadius = 3; StateProperties6.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties6.BorderThickness = 1; StateProperties6.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); StateProperties6.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties6.IconLeftImage = null; StateProperties6.IconRightImage = null; _btnCancel.OnPressedState = StateProperties6; _btnCancel.Size = new Size(86, 34); _btnCancel.TabIndex = 200; _btnCancel.TextAlign = ContentAlignment.MiddleCenter; _btnCancel.TextMarginLeft = 0; _btnCancel.UseDefaultRadiusAndThickness = true; // // btnSaveMb // _btnSaveMb.AllowToggling = false; _btnSaveMb.AnimationSpeed = 200; _btnSaveMb.AutoGenerateColors = false; _btnSaveMb.BackColor = Color.Transparent; _btnSaveMb.BackColor1 = Color.Teal; _btnSaveMb.BackgroundImage = (Image)resources.GetObject("btnSaveMb.BackgroundImage"); _btnSaveMb.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnSaveMb.ButtonText = "Save"; _btnSaveMb.ButtonTextMarginLeft = 0; _btnSaveMb.ColorContrastOnClick = 45; _btnSaveMb.ColorContrastOnHover = 45; _btnSaveMb.Cursor = Cursors.Hand; BorderEdges4.BottomLeft = true; BorderEdges4.BottomRight = true; BorderEdges4.TopLeft = true; BorderEdges4.TopRight = true; _btnSaveMb.CustomizableEdges = BorderEdges4; _btnSaveMb.DialogResult = DialogResult.None; _btnSaveMb.DisabledBorderColor = Color.Empty; _btnSaveMb.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnSaveMb.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnSaveMb.Enabled = false; _btnSaveMb.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnSaveMb.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _btnSaveMb.ForeColor = Color.White; _btnSaveMb.IconLeftCursor = Cursors.Hand; _btnSaveMb.IconMarginLeft = 11; _btnSaveMb.IconPadding = 10; _btnSaveMb.IconRightCursor = Cursors.Hand; _btnSaveMb.IdleBorderColor = Color.Teal; _btnSaveMb.IdleBorderRadius = 3; _btnSaveMb.IdleBorderThickness = 1; _btnSaveMb.IdleFillColor = Color.Teal; _btnSaveMb.IdleIconLeftImage = null; _btnSaveMb.IdleIconRightImage = null; _btnSaveMb.IndicateFocus = true; _btnSaveMb.Location = new Point(282, 449); _btnSaveMb.Name = "_btnSaveMb"; StateProperties7.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties7.BorderRadius = 3; StateProperties7.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties7.BorderThickness = 1; StateProperties7.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties7.ForeColor = Color.White; StateProperties7.IconLeftImage = null; StateProperties7.IconRightImage = null; _btnSaveMb.onHoverState = StateProperties7; StateProperties8.BorderColor = Color.Teal; StateProperties8.BorderRadius = 3; StateProperties8.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties8.BorderThickness = 1; StateProperties8.FillColor = Color.Teal; StateProperties8.ForeColor = Color.White; StateProperties8.IconLeftImage = null; StateProperties8.IconRightImage = null; _btnSaveMb.OnPressedState = StateProperties8; _btnSaveMb.Size = new Size(96, 34); _btnSaveMb.TabIndex = 201; _btnSaveMb.TextAlign = ContentAlignment.MiddleCenter; _btnSaveMb.TextMarginLeft = 0; _btnSaveMb.UseDefaultRadiusAndThickness = true; // // Panel2 // Panel2.BorderStyle = BorderStyle.FixedSingle; Panel2.Controls.Add(_dgvMiniBks); Panel2.Location = new Point(16, 156); Panel2.Name = "Panel2"; Panel2.Size = new Size(243, 273); Panel2.TabIndex = 202; // // Label12 // Label12.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Dock = DockStyle.Top; Label12.Font = new Font("Microsoft Sans Serif", 24.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label12.Location = new Point(0, 0); Label12.Name = "Label12"; Label12.Size = new Size(780, 42); Label12.TabIndex = 198; Label12.TextAlign = ContentAlignment.MiddleCenter; // // closeLabel // _closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeLabel.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeLabel.Font = new Font("Arial Narrow", 22.25455f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeLabel.ForeColor = Color.White; _closeLabel.Location = new Point(733, 0); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(47, 42); _closeLabel.TabIndex = 199; _closeLabel.Text = "🗙"; _closeLabel.TextAlign = ContentAlignment.MiddleCenter; // // Label3 // Label3.AutoSize = true; Label3.Font = new Font("Microsoft Sans Serif", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label3.Location = new Point(509, 90); Label3.Name = "Label3"; Label3.Size = new Size(142, 20); Label3.TabIndex = 213; Label3.Text = "Containers in MBs:"; // // lblContInMb // lblContInMb.Font = new Font("Microsoft Sans Serif", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblContInMb.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); lblContInMb.Location = new Point(689, 88); lblContInMb.Name = "lblContInMb"; lblContInMb.Size = new Size(93, 25); lblContInMb.TabIndex = 212; lblContInMb.Text = "500"; // // Column2 // Column2.FillWeight = 153.1309f; Column2.HeaderText = "Minibooking"; Column2.Name = "Column2"; Column2.ReadOnly = true; // // Column3 // Column3.FillWeight = 52.08535f; Column3.HeaderText = "# Cans"; Column3.Name = "Column3"; Column3.ReadOnly = true; // // FrmModifyTotalNumbCont // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(780, 505); Controls.Add(Label3); Controls.Add(lblContInMb); Controls.Add(_closeLabel); Controls.Add(labelTotalSomething); Controls.Add(lbltotalNumber); Controls.Add(Label6); Controls.Add(lblTotaltoBeAsgn); Controls.Add(lblminiBkgNumber); Controls.Add(Panel3); Controls.Add(Label1); Controls.Add(Label2); Controls.Add(lblTitle); Controls.Add(_btnCancel); Controls.Add(_btnSaveMb); Controls.Add(Panel2); Controls.Add(Label12); FormBorderStyle = FormBorderStyle.None; Name = "FrmModifyTotalNumbCont"; Text = "FrmModifyTotalNumbCont"; Panel3.ResumeLayout(false); Panel3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)_nucTotal).EndInit(); ((System.ComponentModel.ISupportInitialize)_dgvMiniBks).EndInit(); Panel2.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
// Refrescar y listar Beneficiarios public void Refrescar_ben(Bunifu.UI.WinForms.BunifuDataGridView Datagrid_receptor) { Listar_DB_Beneficiarios(Datagrid_receptor); Cambiar_Columns_Beneficiarios(Datagrid_receptor); Datagrid_receptor.ColumnHeadersHeight = 50; }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmListBlockedContainers)); var StateProperties1 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties5 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties6 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var DataGridViewCellStyle1 = new DataGridViewCellStyle(); var DataGridViewCellStyle2 = new DataGridViewCellStyle(); var DataGridViewCellStyle3 = new DataGridViewCellStyle(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties7 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties8 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); BunifuShadowPanel1 = new Bunifu.UI.WinForm.BunifuShadowPanel.BunifuShadowPanel(); Panel1 = new Panel(); Panel2 = new Panel(); _searchBunifuTextBox1 = new BunifuTextBox(); _searchBunifuTextBox1.TextChanged += new EventHandler(searchBunifuTextBox1_TextChanged); _searchBunifuTextBox1.TextChanged += new EventHandler(searchBunifuTextBox1_TextChanged_1); _refheshInShapedButton = new CustomizedControlsLibrary.ShapedButton(); _refheshInShapedButton.Click += new EventHandler(refheshInShapedButton_Click); toInBunifuDatePicker = new Bunifu.UI.WinForms.BunifuDatePicker(); fromInBunifuDatePicker = new Bunifu.UI.WinForms.BunifuDatePicker(); Label1 = new Label(); Label2 = new Label(); TableLayoutPanel3 = new TableLayoutPanel(); _deleteButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _deleteButton.Click += new EventHandler(deleteButton_Click); titleLabel = new Label(); Panel4 = new Panel(); _blockContBunifuDataGridView = new Bunifu.UI.WinForms.BunifuDataGridView(); _blockContBunifuDataGridView.RowPostPaint += new DataGridViewRowPostPaintEventHandler(blockContBunifuDataGridView_RowPostPaint); _blockContBunifuDataGridView.CellContentClick += new DataGridViewCellEventHandler(transfersBunifuDataGridView_CellContentClick); Column1 = new DataGridViewTextBoxColumn(); Column15 = new DataGridViewCheckBoxColumn(); Column4 = new DataGridViewTextBoxColumn(); Column5 = new DataGridViewTextBoxColumn(); Column6 = new DataGridViewTextBoxColumn(); Column7 = new DataGridViewTextBoxColumn(); status = new DataGridViewTextBoxColumn(); _createTransfeRButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _createTransfeRButton.Click += new EventHandler(createTransfeRButton_Click); BunifuShadowPanel1.SuspendLayout(); Panel1.SuspendLayout(); Panel2.SuspendLayout(); TableLayoutPanel3.SuspendLayout(); Panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)_blockContBunifuDataGridView).BeginInit(); SuspendLayout(); // // BunifuShadowPanel1 // BunifuShadowPanel1.BackColor = Color.White; BunifuShadowPanel1.BorderColor = Color.Transparent; BunifuShadowPanel1.Controls.Add(Panel1); BunifuShadowPanel1.Dock = DockStyle.Fill; BunifuShadowPanel1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); BunifuShadowPanel1.Location = new Point(0, 0); BunifuShadowPanel1.Margin = new Padding(0); BunifuShadowPanel1.Name = "BunifuShadowPanel1"; BunifuShadowPanel1.Padding = new Padding(10, 10, 5, 5); BunifuShadowPanel1.PanelColor = Color.Empty; BunifuShadowPanel1.ShadowDept = 2; BunifuShadowPanel1.ShadowTopLeftVisible = true; BunifuShadowPanel1.Size = new Size(1474, 940); BunifuShadowPanel1.TabIndex = 77; // // Panel1 // Panel1.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Panel1.Controls.Add(Panel2); Panel1.Dock = DockStyle.Fill; Panel1.Location = new Point(10, 10); Panel1.Name = "Panel1"; Panel1.Padding = new Padding(0, 40, 0, 0); Panel1.Size = new Size(1459, 925); Panel1.TabIndex = 33; // // Panel2 // Panel2.BackColor = Color.White; Panel2.Controls.Add(_searchBunifuTextBox1); Panel2.Controls.Add(_refheshInShapedButton); Panel2.Controls.Add(toInBunifuDatePicker); Panel2.Controls.Add(fromInBunifuDatePicker); Panel2.Controls.Add(Label1); Panel2.Controls.Add(Label2); Panel2.Controls.Add(TableLayoutPanel3); Panel2.Controls.Add(titleLabel); Panel2.Controls.Add(Panel4); Panel2.Controls.Add(_createTransfeRButton); Panel2.Dock = DockStyle.Fill; Panel2.Location = new Point(0, 40); Panel2.Name = "Panel2"; Panel2.Size = new Size(1459, 885); Panel2.TabIndex = 1; // // searchBunifuTextBox1 // _searchBunifuTextBox1.AcceptsReturn = false; _searchBunifuTextBox1.AcceptsTab = false; _searchBunifuTextBox1.Anchor = AnchorStyles.None; _searchBunifuTextBox1.AnimationSpeed = 200; _searchBunifuTextBox1.AutoCompleteMode = AutoCompleteMode.None; _searchBunifuTextBox1.AutoCompleteSource = AutoCompleteSource.None; _searchBunifuTextBox1.BackColor = Color.Transparent; _searchBunifuTextBox1.BackgroundImage = (Image)resources.GetObject("searchBunifuTextBox1.BackgroundImage"); _searchBunifuTextBox1.BorderColorActive = Color.DodgerBlue; _searchBunifuTextBox1.BorderColorDisabled = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161))); _searchBunifuTextBox1.BorderColorHover = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); _searchBunifuTextBox1.BorderColorIdle = Color.Silver; _searchBunifuTextBox1.BorderRadius = 1; _searchBunifuTextBox1.BorderThickness = 1; _searchBunifuTextBox1.CharacterCasing = CharacterCasing.Upper; _searchBunifuTextBox1.Cursor = Cursors.IBeam; _searchBunifuTextBox1.DefaultFont = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _searchBunifuTextBox1.DefaultText = ""; _searchBunifuTextBox1.FillColor = Color.White; _searchBunifuTextBox1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _searchBunifuTextBox1.HideSelection = true; _searchBunifuTextBox1.IconLeft = null; _searchBunifuTextBox1.IconLeftCursor = Cursors.IBeam; _searchBunifuTextBox1.IconPadding = 10; _searchBunifuTextBox1.IconRight = null; _searchBunifuTextBox1.IconRightCursor = Cursors.IBeam; _searchBunifuTextBox1.Lines = new string[0]; _searchBunifuTextBox1.Location = new Point(1053, 94); _searchBunifuTextBox1.MaxLength = 32767; _searchBunifuTextBox1.MinimumSize = new Size(100, 35); _searchBunifuTextBox1.Modified = false; _searchBunifuTextBox1.Multiline = false; _searchBunifuTextBox1.Name = "_searchBunifuTextBox1"; StateProperties1.BorderColor = Color.DodgerBlue; StateProperties1.FillColor = Color.Empty; StateProperties1.ForeColor = Color.Empty; StateProperties1.PlaceholderForeColor = Color.Empty; _searchBunifuTextBox1.OnActiveState = StateProperties1; StateProperties2.BorderColor = Color.Empty; StateProperties2.FillColor = Color.White; StateProperties2.ForeColor = Color.Empty; StateProperties2.PlaceholderForeColor = Color.Silver; _searchBunifuTextBox1.OnDisabledState = StateProperties2; StateProperties3.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties3.FillColor = Color.Empty; StateProperties3.ForeColor = Color.Empty; StateProperties3.PlaceholderForeColor = Color.Empty; _searchBunifuTextBox1.OnHoverState = StateProperties3; StateProperties4.BorderColor = Color.Silver; StateProperties4.FillColor = Color.White; StateProperties4.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); StateProperties4.PlaceholderForeColor = Color.Empty; _searchBunifuTextBox1.OnIdleState = StateProperties4; _searchBunifuTextBox1.PasswordChar = '\0'; _searchBunifuTextBox1.PlaceholderForeColor = Color.Silver; _searchBunifuTextBox1.PlaceholderText = "SEARCH..."; _searchBunifuTextBox1.ReadOnly = false; _searchBunifuTextBox1.ScrollBars = ScrollBars.None; _searchBunifuTextBox1.SelectedText = ""; _searchBunifuTextBox1.SelectionLength = 0; _searchBunifuTextBox1.SelectionStart = 0; _searchBunifuTextBox1.ShortcutsEnabled = true; _searchBunifuTextBox1.Size = new Size(312, 35); _searchBunifuTextBox1.Style = _Style.Bunifu; _searchBunifuTextBox1.TabIndex = 111; _searchBunifuTextBox1.TextAlign = HorizontalAlignment.Left; _searchBunifuTextBox1.TextMarginBottom = 0; _searchBunifuTextBox1.TextMarginLeft = 5; _searchBunifuTextBox1.TextMarginTop = 0; _searchBunifuTextBox1.TextPlaceholder = "SEARCH..."; _searchBunifuTextBox1.UseSystemPasswordChar = false; _searchBunifuTextBox1.WordWrap = true; // // refheshInShapedButton // _refheshInShapedButton.Anchor = AnchorStyles.None; _refheshInShapedButton.BackColor = Color.White; _refheshInShapedButton.BackgroundImage = My.Resources.Resources.refresh_pngrepo_com; _refheshInShapedButton.BackgroundImageLayout = ImageLayout.Stretch; _refheshInShapedButton.BorderColor = Color.White; _refheshInShapedButton.Edge = 55; _refheshInShapedButton.Location = new Point(557, 86); _refheshInShapedButton.Name = "_refheshInShapedButton"; _refheshInShapedButton.Size = new Size(40, 40); _refheshInShapedButton.TabIndex = 110; _refheshInShapedButton.UseVisualStyleBackColor = false; // // toInBunifuDatePicker // toInBunifuDatePicker.Anchor = AnchorStyles.None; toInBunifuDatePicker.BorderRadius = 3; toInBunifuDatePicker.CalendarFont = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); toInBunifuDatePicker.Color = Color.Teal; toInBunifuDatePicker.CustomFormat = "MMM dd, yyyy"; toInBunifuDatePicker.DateBorderThickness = Bunifu.UI.WinForms.BunifuDatePicker.BorderThickness.Thick; toInBunifuDatePicker.DateTextAlign = Bunifu.UI.WinForms.BunifuDatePicker.TextAlign.Left; toInBunifuDatePicker.DisabledColor = Color.Gray; toInBunifuDatePicker.DisplayWeekNumbers = false; toInBunifuDatePicker.DPHeight = 0; toInBunifuDatePicker.DropDownAlign = LeftRightAlignment.Right; toInBunifuDatePicker.FillDatePicker = false; toInBunifuDatePicker.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); toInBunifuDatePicker.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); toInBunifuDatePicker.Format = DateTimePickerFormat.Custom; toInBunifuDatePicker.Icon = (Image)resources.GetObject("toInBunifuDatePicker.Icon"); toInBunifuDatePicker.IconColor = Color.Teal; toInBunifuDatePicker.IconLocation = Bunifu.UI.WinForms.BunifuDatePicker.Indicator.Right; toInBunifuDatePicker.Location = new Point(391, 94); toInBunifuDatePicker.MinimumSize = new Size(100, 32); toInBunifuDatePicker.Name = "toInBunifuDatePicker"; toInBunifuDatePicker.Size = new Size(160, 32); toInBunifuDatePicker.TabIndex = 109; // // fromInBunifuDatePicker // fromInBunifuDatePicker.Anchor = AnchorStyles.None; fromInBunifuDatePicker.BorderRadius = 3; fromInBunifuDatePicker.CalendarFont = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); fromInBunifuDatePicker.Color = Color.Teal; fromInBunifuDatePicker.CustomFormat = "MMM dd, yyyy"; fromInBunifuDatePicker.DateBorderThickness = Bunifu.UI.WinForms.BunifuDatePicker.BorderThickness.Thick; fromInBunifuDatePicker.DateTextAlign = Bunifu.UI.WinForms.BunifuDatePicker.TextAlign.Left; fromInBunifuDatePicker.DisabledColor = Color.Gray; fromInBunifuDatePicker.DisplayWeekNumbers = false; fromInBunifuDatePicker.DPHeight = 0; fromInBunifuDatePicker.DropDownAlign = LeftRightAlignment.Right; fromInBunifuDatePicker.FillDatePicker = false; fromInBunifuDatePicker.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); fromInBunifuDatePicker.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); fromInBunifuDatePicker.Format = DateTimePickerFormat.Custom; fromInBunifuDatePicker.Icon = (Image)resources.GetObject("fromInBunifuDatePicker.Icon"); fromInBunifuDatePicker.IconColor = Color.Teal; fromInBunifuDatePicker.IconLocation = Bunifu.UI.WinForms.BunifuDatePicker.Indicator.Right; fromInBunifuDatePicker.Location = new Point(178, 94); fromInBunifuDatePicker.MinimumSize = new Size(100, 32); fromInBunifuDatePicker.Name = "fromInBunifuDatePicker"; fromInBunifuDatePicker.Size = new Size(160, 32); fromInBunifuDatePicker.TabIndex = 108; // // Label1 // Label1.Anchor = AnchorStyles.None; Label1.AutoSize = true; Label1.Font = new Font("Segoe UI", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Location = new Point(349, 96); Label1.Margin = new Padding(0); Label1.Name = "Label1"; Label1.Size = new Size(39, 30); Label1.TabIndex = 107; Label1.Text = "To:"; Label1.TextAlign = ContentAlignment.MiddleRight; // // Label2 // Label2.Anchor = AnchorStyles.None; Label2.AutoSize = true; Label2.Font = new Font("Segoe UI", 13.74545f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label2.Location = new Point(110, 96); Label2.Margin = new Padding(0); Label2.Name = "Label2"; Label2.Size = new Size(65, 30); Label2.TabIndex = 106; Label2.Text = "From:"; Label2.TextAlign = ContentAlignment.MiddleRight; // // TableLayoutPanel3 // TableLayoutPanel3.Anchor = AnchorStyles.None; TableLayoutPanel3.ColumnCount = 2; TableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25.0f)); TableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25.0f)); TableLayoutPanel3.Controls.Add(_deleteButton, 1, 0); TableLayoutPanel3.Location = new Point(1111, 777); TableLayoutPanel3.Name = "TableLayoutPanel3"; TableLayoutPanel3.RowCount = 1; TableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 100.0f)); TableLayoutPanel3.Size = new Size(257, 46); TableLayoutPanel3.TabIndex = 81; // // deleteButton // _deleteButton.AllowToggling = false; _deleteButton.AnimationSpeed = 200; _deleteButton.AutoGenerateColors = false; _deleteButton.BackColor = Color.Transparent; _deleteButton.BackColor1 = Color.IndianRed; _deleteButton.BackgroundImage = (Image)resources.GetObject("deleteButton.BackgroundImage"); _deleteButton.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _deleteButton.ButtonText = "Delete"; _deleteButton.ButtonTextMarginLeft = 0; _deleteButton.ColorContrastOnClick = 45; _deleteButton.ColorContrastOnHover = 45; _deleteButton.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _deleteButton.CustomizableEdges = BorderEdges1; _deleteButton.DialogResult = DialogResult.None; _deleteButton.DisabledBorderColor = Color.Empty; _deleteButton.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _deleteButton.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _deleteButton.Enabled = false; _deleteButton.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _deleteButton.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _deleteButton.ForeColor = Color.White; _deleteButton.IconLeftCursor = Cursors.Hand; _deleteButton.IconMarginLeft = 11; _deleteButton.IconPadding = 10; _deleteButton.IconRightCursor = Cursors.Hand; _deleteButton.IdleBorderColor = Color.IndianRed; _deleteButton.IdleBorderRadius = 3; _deleteButton.IdleBorderThickness = 1; _deleteButton.IdleFillColor = Color.IndianRed; _deleteButton.IdleIconLeftImage = null; _deleteButton.IdleIconRightImage = null; _deleteButton.IndicateFocus = true; _deleteButton.Location = new Point(131, 3); _deleteButton.Name = "_deleteButton"; StateProperties5.BorderColor = Color.MediumTurquoise; StateProperties5.BorderRadius = 3; StateProperties5.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties5.BorderThickness = 1; StateProperties5.FillColor = Color.MediumTurquoise; StateProperties5.ForeColor = Color.White; StateProperties5.IconLeftImage = null; StateProperties5.IconRightImage = null; _deleteButton.onHoverState = StateProperties5; StateProperties6.BorderColor = Color.LightCoral; StateProperties6.BorderRadius = 3; StateProperties6.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties6.BorderThickness = 1; StateProperties6.FillColor = Color.LightCoral; StateProperties6.ForeColor = Color.White; StateProperties6.IconLeftImage = null; StateProperties6.IconRightImage = null; _deleteButton.OnPressedState = StateProperties6; _deleteButton.Size = new Size(123, 40); _deleteButton.TabIndex = 61; _deleteButton.TextAlign = ContentAlignment.MiddleCenter; _deleteButton.TextMarginLeft = 0; _deleteButton.UseDefaultRadiusAndThickness = true; // // titleLabel // titleLabel.Anchor = AnchorStyles.Top; titleLabel.BackColor = Color.Transparent; titleLabel.Font = new Font("Segoe UI Semibold", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); titleLabel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); titleLabel.Location = new Point(71, 54); titleLabel.Name = "titleLabel"; titleLabel.Size = new Size(647, 36); titleLabel.TabIndex = 80; titleLabel.Text = "Current Blocked Containers"; titleLabel.TextAlign = ContentAlignment.MiddleLeft; // // Panel4 // Panel4.Anchor = AnchorStyles.None; Panel4.BorderStyle = BorderStyle.FixedSingle; Panel4.Controls.Add(_blockContBunifuDataGridView); Panel4.Location = new Point(111, 132); Panel4.Name = "Panel4"; Panel4.Size = new Size(1258, 639); Panel4.TabIndex = 79; // // blockContBunifuDataGridView // _blockContBunifuDataGridView.AllowCustomTheming = true; _blockContBunifuDataGridView.AllowUserToAddRows = false; _blockContBunifuDataGridView.AllowUserToDeleteRows = false; _blockContBunifuDataGridView.AllowUserToOrderColumns = true; _blockContBunifuDataGridView.AllowUserToResizeRows = false; DataGridViewCellStyle1.BackColor = Color.White; DataGridViewCellStyle1.ForeColor = Color.Black; DataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _blockContBunifuDataGridView.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1; _blockContBunifuDataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; _blockContBunifuDataGridView.BackgroundColor = Color.White; _blockContBunifuDataGridView.BorderStyle = BorderStyle.None; _blockContBunifuDataGridView.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal; _blockContBunifuDataGridView.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText; _blockContBunifuDataGridView.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle2.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); DataGridViewCellStyle2.ForeColor = Color.White; DataGridViewCellStyle2.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); DataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; _blockContBunifuDataGridView.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2; _blockContBunifuDataGridView.ColumnHeadersHeight = 40; _blockContBunifuDataGridView.Columns.AddRange(new DataGridViewColumn[] { Column1, Column15, Column4, Column5, Column6, Column7, status }); _blockContBunifuDataGridView.CurrentTheme.AlternatingRowsStyle.BackColor = Color.White; _blockContBunifuDataGridView.CurrentTheme.AlternatingRowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _blockContBunifuDataGridView.CurrentTheme.AlternatingRowsStyle.ForeColor = Color.Black; _blockContBunifuDataGridView.CurrentTheme.AlternatingRowsStyle.SelectionBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); _blockContBunifuDataGridView.CurrentTheme.AlternatingRowsStyle.SelectionForeColor = Color.Black; _blockContBunifuDataGridView.CurrentTheme.BackColor = Color.Snow; _blockContBunifuDataGridView.CurrentTheme.GridColor = Color.Gray; _blockContBunifuDataGridView.CurrentTheme.HeaderStyle.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _blockContBunifuDataGridView.CurrentTheme.HeaderStyle.Font = new Font("Segoe UI Semibold", 11.75f, FontStyle.Bold); _blockContBunifuDataGridView.CurrentTheme.HeaderStyle.ForeColor = Color.White; _blockContBunifuDataGridView.CurrentTheme.Name = null; _blockContBunifuDataGridView.CurrentTheme.RowsStyle.BackColor = Color.WhiteSmoke; _blockContBunifuDataGridView.CurrentTheme.RowsStyle.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); _blockContBunifuDataGridView.CurrentTheme.RowsStyle.ForeColor = Color.Black; _blockContBunifuDataGridView.CurrentTheme.RowsStyle.SelectionBackColor = Color.Gray; _blockContBunifuDataGridView.CurrentTheme.RowsStyle.SelectionForeColor = Color.Black; DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; DataGridViewCellStyle3.BackColor = Color.WhiteSmoke; DataGridViewCellStyle3.Font = new Font("Segoe UI Semibold", 9.75f, FontStyle.Bold); DataGridViewCellStyle3.ForeColor = Color.Black; DataGridViewCellStyle3.SelectionBackColor = Color.Gray; DataGridViewCellStyle3.SelectionForeColor = Color.Black; DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; _blockContBunifuDataGridView.DefaultCellStyle = DataGridViewCellStyle3; _blockContBunifuDataGridView.Dock = DockStyle.Fill; _blockContBunifuDataGridView.EnableHeadersVisualStyles = false; _blockContBunifuDataGridView.GridColor = Color.Gray; _blockContBunifuDataGridView.HeaderBackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _blockContBunifuDataGridView.HeaderBgColor = Color.Empty; _blockContBunifuDataGridView.HeaderForeColor = Color.White; _blockContBunifuDataGridView.Location = new Point(0, 0); _blockContBunifuDataGridView.Name = "_blockContBunifuDataGridView"; _blockContBunifuDataGridView.ReadOnly = true; _blockContBunifuDataGridView.RowHeadersVisible = false; _blockContBunifuDataGridView.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Gray; _blockContBunifuDataGridView.RowTemplate.Height = 30; _blockContBunifuDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _blockContBunifuDataGridView.Size = new Size(1256, 637); _blockContBunifuDataGridView.TabIndex = 57; _blockContBunifuDataGridView.Theme = Bunifu.UI.WinForms.BunifuDataGridView.PresetThemes.Dark; // // Column1 // Column1.HeaderText = ""; Column1.Name = "Column1"; Column1.ReadOnly = true; Column1.Visible = false; // // Column15 // Column15.AutoSizeMode = DataGridViewAutoSizeColumnMode.None; Column15.FillWeight = 68.988f; Column15.HeaderText = ""; Column15.Name = "Column15"; Column15.ReadOnly = true; Column15.Resizable = DataGridViewTriState.True; Column15.SortMode = DataGridViewColumnSortMode.Automatic; Column15.Width = 30; // // Column4 // Column4.FillWeight = 65.89697f; Column4.HeaderText = "Container #"; Column4.Name = "Column4"; Column4.ReadOnly = true; // // Column5 // Column5.FillWeight = 128.0558f; Column5.HeaderText = "Shipping Line"; Column5.Name = "Column5"; Column5.ReadOnly = true; Column5.Resizable = DataGridViewTriState.True; Column5.SortMode = DataGridViewColumnSortMode.NotSortable; // // Column6 // Column6.FillWeight = 68.81937f; Column6.HeaderText = "Blocked Date"; Column6.Name = "Column6"; Column6.ReadOnly = true; Column6.Resizable = DataGridViewTriState.True; Column6.SortMode = DataGridViewColumnSortMode.NotSortable; // // Column7 // Column7.FillWeight = 71.16756f; Column7.HeaderText = "Block End Date"; Column7.Name = "Column7"; Column7.ReadOnly = true; // // status // status.FillWeight = 40.34171f; status.HeaderText = "Status"; status.Name = "status"; status.ReadOnly = true; // // createTransfeRButton // _createTransfeRButton.AllowToggling = false; _createTransfeRButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _createTransfeRButton.AnimationSpeed = 200; _createTransfeRButton.AutoGenerateColors = false; _createTransfeRButton.BackColor = Color.Transparent; _createTransfeRButton.BackColor1 = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _createTransfeRButton.BackgroundImage = (Image)resources.GetObject("createTransfeRButton.BackgroundImage"); _createTransfeRButton.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _createTransfeRButton.ButtonText = "Block Container"; _createTransfeRButton.ButtonTextMarginLeft = 0; _createTransfeRButton.ColorContrastOnClick = 45; _createTransfeRButton.ColorContrastOnHover = 45; _createTransfeRButton.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _createTransfeRButton.CustomizableEdges = BorderEdges2; _createTransfeRButton.DialogResult = DialogResult.None; _createTransfeRButton.DisabledBorderColor = Color.Empty; _createTransfeRButton.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _createTransfeRButton.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _createTransfeRButton.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _createTransfeRButton.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _createTransfeRButton.ForeColor = Color.White; _createTransfeRButton.IconLeftCursor = Cursors.Hand; _createTransfeRButton.IconMarginLeft = 11; _createTransfeRButton.IconPadding = 10; _createTransfeRButton.IconRightCursor = Cursors.Hand; _createTransfeRButton.IdleBorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _createTransfeRButton.IdleBorderRadius = 30; _createTransfeRButton.IdleBorderThickness = 1; _createTransfeRButton.IdleFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _createTransfeRButton.IdleIconLeftImage = null; _createTransfeRButton.IdleIconRightImage = null; _createTransfeRButton.IndicateFocus = true; _createTransfeRButton.Location = new Point(1288, 54); _createTransfeRButton.Name = "_createTransfeRButton"; StateProperties7.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties7.BorderRadius = 30; StateProperties7.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties7.BorderThickness = 1; StateProperties7.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties7.ForeColor = Color.White; StateProperties7.IconLeftImage = null; StateProperties7.IconRightImage = null; _createTransfeRButton.onHoverState = StateProperties7; StateProperties8.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties8.BorderRadius = 30; StateProperties8.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties8.BorderThickness = 1; StateProperties8.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); StateProperties8.ForeColor = Color.White; StateProperties8.IconLeftImage = null; StateProperties8.IconRightImage = null; _createTransfeRButton.OnPressedState = StateProperties8; _createTransfeRButton.Size = new Size(152, 37); _createTransfeRButton.TabIndex = 68; _createTransfeRButton.TextAlign = ContentAlignment.MiddleCenter; _createTransfeRButton.TextMarginLeft = 0; _createTransfeRButton.UseDefaultRadiusAndThickness = true; // // FrmListBlockedContainers // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(1474, 940); Controls.Add(BunifuShadowPanel1); FormBorderStyle = FormBorderStyle.None; Name = "FrmListBlockedContainers"; Text = "FrmListBlockedContainers"; BunifuShadowPanel1.ResumeLayout(false); Panel1.ResumeLayout(false); Panel2.ResumeLayout(false); Panel2.PerformLayout(); TableLayoutPanel3.ResumeLayout(false); Panel4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)_blockContBunifuDataGridView).EndInit(); Load += new EventHandler(FrmListBlockedContainers_Load); ResumeLayout(false); }