/// <summary> /// Adds from database. /// </summary> /// <param name="bunifuDropdown">The bunifu dropdown.</param> private void addFromDb(Bunifu.UI.WinForms.BunifuDropdown bunifuDropdown) { try { bunifuDropdown1.Items.Clear(); MySqlConnection con = new MySqlConnection("server=127.0.0.1;uid=root;password=;database=bunifu_tests;"); con.Open(); MySqlCommand cmd = new MySqlCommand("SELECT `gender` FROM `students` WHERE 1", con); MySqlDataReader read = cmd.ExecuteReader(); while (read.Read()) { bunifuDropdown.Items.Add(read.GetString(0)); } con.Close(); } catch (Exception er) { MessageBox.Show("Make sure a db exists" + er.Message); } }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmEditEntry)); 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(); clockInTimePicker = new DateTimePicker(); clockOutTimePicker = new DateTimePicker(); editEntryTitleLabel = new Label(); clockInDateTimePicker = new DateTimePicker(); clockoOutDateTimePicker = new DateTimePicker(); warningLabel = new Label(); _reasonNewEntryComboBox = new Bunifu.UI.WinForms.BunifuDropdown(); _reasonNewEntryComboBox.SelectedIndexChanged += new EventHandler(reasonNewEntryComboBox_SelectedIndexChanged); _clockInCheckBox = new Bunifu.UI.WinForms.BunifuCheckBox(); _clockInCheckBox.CheckedChanged += new EventHandler <Bunifu.UI.WinForms.BunifuCheckBox.CheckedChangedEventArgs>(CheckBox1_CheckedChanged); shiftTypeComboBox = new Bunifu.UI.WinForms.BunifuDropdown(); Panel2 = new Panel(); workDoneListView = new ListView(); Label11 = new Label(); Panel1 = new Panel(); Label10 = new Label(); RichTextBox1 = new RichTextBox(); _clockOutCheckBox = new Bunifu.UI.WinForms.BunifuCheckBox(); _clockOutCheckBox.CheckedChanged += new EventHandler <Bunifu.UI.WinForms.BunifuCheckBox.CheckedChangedEventArgs>(clockOutCheckBox_CheckedChanged); Label3 = new Label(); Label8 = new Label(); Label6 = new Label(); Label4 = new Label(); Label7 = new Label(); _closeLabel = new Label(); _closeLabel.MouseHover += new EventHandler(closeLabel_MouseHover); _closeLabel.MouseLeave += new EventHandler(closeLabel_MouseLeave); _closeLabel.Click += new EventHandler(closeLabel_Click); Label12 = new Label(); modifiedByTextBox = new Label(); _createNewEntryButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _createNewEntryButton.Click += new EventHandler(Button1_Click); _cancelButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _cancelButton.Click += new EventHandler(cancelButton_Click); Panel2.SuspendLayout(); Panel1.SuspendLayout(); SuspendLayout(); // // clockInTimePicker // clockInTimePicker.CalendarFont = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); clockInTimePicker.CustomFormat = "\"hh:mm\""; clockInTimePicker.Font = new Font("Microsoft Sans Serif", 14.25f); clockInTimePicker.Format = DateTimePickerFormat.Time; clockInTimePicker.Location = new Point(335, 142); clockInTimePicker.Name = "clockInTimePicker"; clockInTimePicker.ShowUpDown = true; clockInTimePicker.Size = new Size(162, 32); clockInTimePicker.TabIndex = 2; clockInTimePicker.Visible = false; // // clockOutTimePicker // clockOutTimePicker.CalendarFont = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); clockOutTimePicker.CustomFormat = "\"hh:mm\""; clockOutTimePicker.Font = new Font("Microsoft Sans Serif", 14.25f); clockOutTimePicker.Format = DateTimePickerFormat.Time; clockOutTimePicker.Location = new Point(335, 181); clockOutTimePicker.Name = "clockOutTimePicker"; clockOutTimePicker.ShowUpDown = true; clockOutTimePicker.Size = new Size(162, 32); clockOutTimePicker.TabIndex = 3; clockOutTimePicker.Visible = false; // // editEntryTitleLabel // editEntryTitleLabel.BackColor = Color.White; editEntryTitleLabel.Font = new Font("Segoe UI Semibold", 13.74545f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); editEntryTitleLabel.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); editEntryTitleLabel.Location = new Point(40, 57); editEntryTitleLabel.Name = "editEntryTitleLabel"; editEntryTitleLabel.Padding = new Padding(20, 0, 20, 0); editEntryTitleLabel.Size = new Size(467, 36); editEntryTitleLabel.TabIndex = 11; editEntryTitleLabel.Text = "Check the fields to be modified"; editEntryTitleLabel.TextAlign = ContentAlignment.MiddleLeft; // // clockInDateTimePicker // clockInDateTimePicker.Font = new Font("Microsoft Sans Serif", 14.25f); clockInDateTimePicker.Format = DateTimePickerFormat.Short; clockInDateTimePicker.Location = new Point(196, 142); clockInDateTimePicker.Name = "clockInDateTimePicker"; clockInDateTimePicker.Size = new Size(133, 32); clockInDateTimePicker.TabIndex = 15; clockInDateTimePicker.Visible = false; // // clockoOutDateTimePicker // clockoOutDateTimePicker.Font = new Font("Microsoft Sans Serif", 14.25f); clockoOutDateTimePicker.Format = DateTimePickerFormat.Short; clockoOutDateTimePicker.Location = new Point(196, 181); clockoOutDateTimePicker.Name = "clockoOutDateTimePicker"; clockoOutDateTimePicker.Size = new Size(133, 32); clockoOutDateTimePicker.TabIndex = 16; clockoOutDateTimePicker.Visible = false; // // warningLabel // warningLabel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; warningLabel.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); warningLabel.ForeColor = Color.Maroon; warningLabel.Location = new Point(503, 142); warningLabel.Name = "warningLabel"; warningLabel.Size = new Size(259, 82); warningLabel.TabIndex = 131; warningLabel.TextAlign = ContentAlignment.MiddleLeft; // // reasonNewEntryComboBox // _reasonNewEntryComboBox.BackColor = Color.Snow; _reasonNewEntryComboBox.BorderRadius = 3; _reasonNewEntryComboBox.Color = Color.Teal; _reasonNewEntryComboBox.Direction = Bunifu.UI.WinForms.BunifuDropdown.Directions.Down; _reasonNewEntryComboBox.DisabledColor = Color.Gray; _reasonNewEntryComboBox.DrawMode = DrawMode.OwnerDrawFixed; _reasonNewEntryComboBox.DropdownBorderThickness = Bunifu.UI.WinForms.BunifuDropdown.BorderThickness.Thick; _reasonNewEntryComboBox.DropDownStyle = ComboBoxStyle.DropDownList; _reasonNewEntryComboBox.DropDownTextAlign = Bunifu.UI.WinForms.BunifuDropdown.TextAlign.Left; _reasonNewEntryComboBox.FillDropDown = false; _reasonNewEntryComboBox.FillIndicator = true; _reasonNewEntryComboBox.FlatStyle = FlatStyle.Flat; _reasonNewEntryComboBox.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _reasonNewEntryComboBox.ForeColor = SystemColors.ControlDarkDark; _reasonNewEntryComboBox.FormattingEnabled = true; _reasonNewEntryComboBox.Icon = null; _reasonNewEntryComboBox.IndicatorColor = Color.Teal; _reasonNewEntryComboBox.IndicatorLocation = Bunifu.UI.WinForms.BunifuDropdown.Indicator.Right; _reasonNewEntryComboBox.ItemBackColor = Color.White; _reasonNewEntryComboBox.ItemBorderColor = Color.White; _reasonNewEntryComboBox.ItemForeColor = SystemColors.ControlDarkDark; _reasonNewEntryComboBox.ItemHeight = 28; _reasonNewEntryComboBox.ItemHighLightColor = Color.Gray; _reasonNewEntryComboBox.Items.AddRange(new object[] { "Employee forgot to clock in/out", "Employee forgot card ID", "System prevented clock in (Employee forgot clock out last shift).", "System Error", "Working Remotely", "Other" }); _reasonNewEntryComboBox.Location = new Point(190, 227); _reasonNewEntryComboBox.MaxDropDownItems = 50; _reasonNewEntryComboBox.Name = "_reasonNewEntryComboBox"; _reasonNewEntryComboBox.Size = new Size(551, 34); _reasonNewEntryComboBox.TabIndex = 130; _reasonNewEntryComboBox.Text = null; // // clockInCheckBox // _clockInCheckBox.AllowBindingControlAnimation = true; _clockInCheckBox.AllowBindingControlColorChanges = false; _clockInCheckBox.AllowBindingControlLocation = true; _clockInCheckBox.AllowCheckBoxAnimation = false; _clockInCheckBox.AllowCheckmarkAnimation = true; _clockInCheckBox.AllowOnHoverStates = true; _clockInCheckBox.AutoCheck = true; _clockInCheckBox.BackColor = Color.Transparent; _clockInCheckBox.BackgroundImage = (Image)resources.GetObject("clockInCheckBox.BackgroundImage"); _clockInCheckBox.BackgroundImageLayout = ImageLayout.Zoom; _clockInCheckBox.BindingControl = null; _clockInCheckBox.BindingControlPosition = Bunifu.UI.WinForms.BunifuCheckBox.BindingControlPositions.Right; _clockInCheckBox.Checked = false; _clockInCheckBox.CheckState = Bunifu.UI.WinForms.BunifuCheckBox.CheckStates.Unchecked; _clockInCheckBox.Cursor = Cursors.Hand; _clockInCheckBox.CustomCheckmarkImage = null; _clockInCheckBox.Location = new Point(63, 146); _clockInCheckBox.MinimumSize = new Size(20, 20); _clockInCheckBox.Name = "_clockInCheckBox"; _clockInCheckBox.OnCheck.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _clockInCheckBox.OnCheck.BorderRadius = 2; _clockInCheckBox.OnCheck.BorderThickness = 2; _clockInCheckBox.OnCheck.CheckBoxColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _clockInCheckBox.OnCheck.CheckmarkColor = Color.White; _clockInCheckBox.OnCheck.CheckmarkThickness = 2; _clockInCheckBox.OnDisable.BorderColor = Color.LightGray; _clockInCheckBox.OnDisable.BorderRadius = 2; _clockInCheckBox.OnDisable.BorderThickness = 2; _clockInCheckBox.OnDisable.CheckBoxColor = Color.Transparent; _clockInCheckBox.OnDisable.CheckmarkColor = Color.LightGray; _clockInCheckBox.OnDisable.CheckmarkThickness = 2; _clockInCheckBox.OnHoverChecked.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _clockInCheckBox.OnHoverChecked.BorderRadius = 2; _clockInCheckBox.OnHoverChecked.BorderThickness = 2; _clockInCheckBox.OnHoverChecked.CheckBoxColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _clockInCheckBox.OnHoverChecked.CheckmarkColor = Color.White; _clockInCheckBox.OnHoverChecked.CheckmarkThickness = 2; _clockInCheckBox.OnHoverUnchecked.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _clockInCheckBox.OnHoverUnchecked.BorderRadius = 2; _clockInCheckBox.OnHoverUnchecked.BorderThickness = 2; _clockInCheckBox.OnHoverUnchecked.CheckBoxColor = Color.Transparent; _clockInCheckBox.OnUncheck.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _clockInCheckBox.OnUncheck.BorderRadius = 2; _clockInCheckBox.OnUncheck.BorderThickness = 2; _clockInCheckBox.OnUncheck.CheckBoxColor = Color.Transparent; _clockInCheckBox.Size = new Size(25, 25); _clockInCheckBox.Style = Bunifu.UI.WinForms.BunifuCheckBox.CheckBoxStyles.Bunifu; _clockInCheckBox.TabIndex = 129; _clockInCheckBox.ThreeState = false; _clockInCheckBox.ToolTipText = null; // // shiftTypeComboBox // shiftTypeComboBox.BackColor = Color.Snow; shiftTypeComboBox.BorderRadius = 3; shiftTypeComboBox.Color = Color.Teal; shiftTypeComboBox.Direction = Bunifu.UI.WinForms.BunifuDropdown.Directions.Down; shiftTypeComboBox.DisabledColor = Color.Gray; shiftTypeComboBox.DrawMode = DrawMode.OwnerDrawFixed; shiftTypeComboBox.DropdownBorderThickness = Bunifu.UI.WinForms.BunifuDropdown.BorderThickness.Thick; shiftTypeComboBox.DropDownStyle = ComboBoxStyle.DropDownList; shiftTypeComboBox.DropDownTextAlign = Bunifu.UI.WinForms.BunifuDropdown.TextAlign.Left; shiftTypeComboBox.FillDropDown = false; shiftTypeComboBox.FillIndicator = true; shiftTypeComboBox.FlatStyle = FlatStyle.Flat; shiftTypeComboBox.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); shiftTypeComboBox.ForeColor = SystemColors.ControlDarkDark; shiftTypeComboBox.FormattingEnabled = true; shiftTypeComboBox.Icon = null; shiftTypeComboBox.IndicatorColor = Color.Teal; shiftTypeComboBox.IndicatorLocation = Bunifu.UI.WinForms.BunifuDropdown.Indicator.Right; shiftTypeComboBox.ItemBackColor = Color.White; shiftTypeComboBox.ItemBorderColor = Color.White; shiftTypeComboBox.ItemForeColor = SystemColors.ControlDarkDark; shiftTypeComboBox.ItemHeight = 28; shiftTypeComboBox.ItemHighLightColor = Color.Gray; shiftTypeComboBox.Items.AddRange(new object[] { "Hourly", "Salary", "Piece Work" }); shiftTypeComboBox.Location = new Point(190, 102); shiftTypeComboBox.MaxDropDownItems = 50; shiftTypeComboBox.Name = "shiftTypeComboBox"; shiftTypeComboBox.Size = new Size(195, 34); shiftTypeComboBox.TabIndex = 127; shiftTypeComboBox.Text = null; // // Panel2 // Panel2.BackColor = Color.Transparent; Panel2.Controls.Add(workDoneListView); Panel2.Controls.Add(Label11); Panel2.Location = new Point(768, 92); Panel2.Name = "Panel2"; Panel2.Size = new Size(224, 283); Panel2.TabIndex = 124; Panel2.Visible = false; // // workDoneListView // workDoneListView.AllowColumnReorder = true; workDoneListView.CheckBoxes = true; workDoneListView.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); workDoneListView.FullRowSelect = true; workDoneListView.HeaderStyle = ColumnHeaderStyle.None; workDoneListView.HideSelection = false; workDoneListView.Location = new Point(16, 27); workDoneListView.MultiSelect = false; workDoneListView.Name = "workDoneListView"; workDoneListView.Size = new Size(197, 253); workDoneListView.TabIndex = 17; workDoneListView.UseCompatibleStateImageBehavior = false; workDoneListView.View = View.Details; // // Label11 // Label11.Anchor = AnchorStyles.None; Label11.AutoSize = true; Label11.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label11.Location = new Point(7, 1); Label11.Name = "Label11"; Label11.Size = new Size(174, 25); Label11.TabIndex = 16; Label11.Text = "* Work Description:"; // // Panel1 // Panel1.Controls.Add(Label10); Panel1.Controls.Add(RichTextBox1); Panel1.Location = new Point(62, 271); Panel1.Name = "Panel1"; Panel1.Size = new Size(679, 104); Panel1.TabIndex = 123; Panel1.Visible = false; // // Label10 // Label10.Anchor = AnchorStyles.None; Label10.AutoSize = true; Label10.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label10.Location = new Point(32, 4); Label10.Name = "Label10"; Label10.Size = new Size(86, 25); Label10.TabIndex = 16; Label10.Text = "* Details:"; // // RichTextBox1 // RichTextBox1.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); RichTextBox1.Location = new Point(128, 2); RichTextBox1.Name = "RichTextBox1"; RichTextBox1.Size = new Size(541, 92); RichTextBox1.TabIndex = 41; RichTextBox1.Text = ""; // // clockOutCheckBox // _clockOutCheckBox.AllowBindingControlAnimation = true; _clockOutCheckBox.AllowBindingControlColorChanges = false; _clockOutCheckBox.AllowBindingControlLocation = true; _clockOutCheckBox.AllowCheckBoxAnimation = false; _clockOutCheckBox.AllowCheckmarkAnimation = true; _clockOutCheckBox.AllowOnHoverStates = true; _clockOutCheckBox.AutoCheck = true; _clockOutCheckBox.BackColor = Color.Transparent; _clockOutCheckBox.BackgroundImage = (Image)resources.GetObject("clockOutCheckBox.BackgroundImage"); _clockOutCheckBox.BackgroundImageLayout = ImageLayout.Zoom; _clockOutCheckBox.BindingControl = null; _clockOutCheckBox.BindingControlPosition = Bunifu.UI.WinForms.BunifuCheckBox.BindingControlPositions.Right; _clockOutCheckBox.Checked = false; _clockOutCheckBox.CheckState = Bunifu.UI.WinForms.BunifuCheckBox.CheckStates.Unchecked; _clockOutCheckBox.Cursor = Cursors.Hand; _clockOutCheckBox.CustomCheckmarkImage = null; _clockOutCheckBox.Location = new Point(64, 187); _clockOutCheckBox.MinimumSize = new Size(20, 20); _clockOutCheckBox.Name = "_clockOutCheckBox"; _clockOutCheckBox.OnCheck.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _clockOutCheckBox.OnCheck.BorderRadius = 2; _clockOutCheckBox.OnCheck.BorderThickness = 2; _clockOutCheckBox.OnCheck.CheckBoxColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _clockOutCheckBox.OnCheck.CheckmarkColor = Color.White; _clockOutCheckBox.OnCheck.CheckmarkThickness = 2; _clockOutCheckBox.OnDisable.BorderColor = Color.LightGray; _clockOutCheckBox.OnDisable.BorderRadius = 2; _clockOutCheckBox.OnDisable.BorderThickness = 2; _clockOutCheckBox.OnDisable.CheckBoxColor = Color.Transparent; _clockOutCheckBox.OnDisable.CheckmarkColor = Color.LightGray; _clockOutCheckBox.OnDisable.CheckmarkThickness = 2; _clockOutCheckBox.OnHoverChecked.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _clockOutCheckBox.OnHoverChecked.BorderRadius = 2; _clockOutCheckBox.OnHoverChecked.BorderThickness = 2; _clockOutCheckBox.OnHoverChecked.CheckBoxColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _clockOutCheckBox.OnHoverChecked.CheckmarkColor = Color.White; _clockOutCheckBox.OnHoverChecked.CheckmarkThickness = 2; _clockOutCheckBox.OnHoverUnchecked.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _clockOutCheckBox.OnHoverUnchecked.BorderRadius = 2; _clockOutCheckBox.OnHoverUnchecked.BorderThickness = 2; _clockOutCheckBox.OnHoverUnchecked.CheckBoxColor = Color.Transparent; _clockOutCheckBox.OnUncheck.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _clockOutCheckBox.OnUncheck.BorderRadius = 2; _clockOutCheckBox.OnUncheck.BorderThickness = 2; _clockOutCheckBox.OnUncheck.CheckBoxColor = Color.Transparent; _clockOutCheckBox.Size = new Size(25, 25); _clockOutCheckBox.Style = Bunifu.UI.WinForms.BunifuCheckBox.CheckBoxStyles.Bunifu; _clockOutCheckBox.TabIndex = 109; _clockOutCheckBox.ThreeState = false; _clockOutCheckBox.ToolTipText = null; // // Label3 // Label3.Anchor = AnchorStyles.None; Label3.AutoSize = true; Label3.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.Location = new Point(95, 187); Label3.Name = "Label3"; Label3.Size = new Size(95, 25); Label3.TabIndex = 16; Label3.Text = "Clock out:"; // // Label8 // Label8.AutoSize = true; Label8.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label8.Location = new Point(73, 105); Label8.Name = "Label8"; Label8.Size = new Size(111, 25); Label8.TabIndex = 120; Label8.Text = "* Shift Type:"; // // Label6 // Label6.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; Label6.AutoSize = true; Label6.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.Maroon; Label6.Location = new Point(3, 432); Label6.Name = "Label6"; Label6.Size = new Size(156, 25); Label6.TabIndex = 117; Label6.Text = "* Madatory fields"; // // Label4 // Label4.AutoSize = true; Label4.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label4.Location = new Point(95, 230); Label4.Name = "Label4"; Label4.Size = new Size(89, 25); Label4.TabIndex = 116; Label4.Text = "* Reason:"; // // Label7 // Label7.AutoSize = true; Label7.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label7.Location = new Point(107, 146); Label7.Name = "Label7"; Label7.Size = new Size(83, 25); Label7.TabIndex = 114; Label7.Text = "Clock in:"; // // 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(1001, 0); _closeLabel.Margin = new Padding(0); _closeLabel.Name = "_closeLabel"; _closeLabel.Size = new Size(48, 46); _closeLabel.TabIndex = 133; _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(1049, 46); Label12.TabIndex = 132; Label12.TextAlign = ContentAlignment.MiddleCenter; // // modifiedByTextBox // modifiedByTextBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; modifiedByTextBox.Font = new Font("Segoe UI", 11.78182f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); modifiedByTextBox.ForeColor = Color.Maroon; modifiedByTextBox.Location = new Point(361, 432); modifiedByTextBox.Name = "modifiedByTextBox"; modifiedByTextBox.Size = new Size(259, 25); modifiedByTextBox.TabIndex = 134; modifiedByTextBox.TextAlign = ContentAlignment.MiddleLeft; modifiedByTextBox.Visible = false; // // createNewEntryButton // _createNewEntryButton.AllowToggling = false; _createNewEntryButton.AnimationSpeed = 200; _createNewEntryButton.AutoGenerateColors = false; _createNewEntryButton.BackColor = Color.Transparent; _createNewEntryButton.BackColor1 = Color.Teal; _createNewEntryButton.BackgroundImage = (Image)resources.GetObject("createNewEntryButton.BackgroundImage"); _createNewEntryButton.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _createNewEntryButton.ButtonText = "Update Entry"; _createNewEntryButton.ButtonTextMarginLeft = 0; _createNewEntryButton.ColorContrastOnClick = 45; _createNewEntryButton.ColorContrastOnHover = 45; _createNewEntryButton.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _createNewEntryButton.CustomizableEdges = BorderEdges1; _createNewEntryButton.DialogResult = DialogResult.None; _createNewEntryButton.DisabledBorderColor = Color.Empty; _createNewEntryButton.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _createNewEntryButton.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _createNewEntryButton.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _createNewEntryButton.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _createNewEntryButton.ForeColor = Color.White; _createNewEntryButton.IconLeftCursor = Cursors.Hand; _createNewEntryButton.IconMarginLeft = 11; _createNewEntryButton.IconPadding = 10; _createNewEntryButton.IconRightCursor = Cursors.Hand; _createNewEntryButton.IdleBorderColor = Color.Teal; _createNewEntryButton.IdleBorderRadius = 3; _createNewEntryButton.IdleBorderThickness = 1; _createNewEntryButton.IdleFillColor = Color.Teal; _createNewEntryButton.IdleIconLeftImage = null; _createNewEntryButton.IdleIconRightImage = null; _createNewEntryButton.IndicateFocus = true; _createNewEntryButton.Location = new Point(763, 402); _createNewEntryButton.Name = "_createNewEntryButton"; 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; _createNewEntryButton.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; _createNewEntryButton.OnPressedState = StateProperties2; _createNewEntryButton.Size = new Size(128, 45); _createNewEntryButton.TabIndex = 125; _createNewEntryButton.TextAlign = ContentAlignment.MiddleCenter; _createNewEntryButton.TextMarginLeft = 0; _createNewEntryButton.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(914, 402); _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.White; StateProperties3.IconLeftImage = null; StateProperties3.IconRightImage = null; _cancelButton.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; _cancelButton.OnPressedState = StateProperties4; _cancelButton.Size = new Size(103, 45); _cancelButton.TabIndex = 126; _cancelButton.TextAlign = ContentAlignment.MiddleCenter; _cancelButton.TextMarginLeft = 0; _cancelButton.UseDefaultRadiusAndThickness = true; // // FrmEditEntry // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.Snow; ClientSize = new Size(1049, 466); ControlBox = false; Controls.Add(modifiedByTextBox); Controls.Add(_closeLabel); Controls.Add(Label12); Controls.Add(_clockOutCheckBox); Controls.Add(warningLabel); Controls.Add(_reasonNewEntryComboBox); Controls.Add(Label3); Controls.Add(_clockInCheckBox); Controls.Add(shiftTypeComboBox); Controls.Add(_cancelButton); Controls.Add(_createNewEntryButton); Controls.Add(Panel2); Controls.Add(Panel1); Controls.Add(Label8); Controls.Add(Label6); Controls.Add(Label4); Controls.Add(Label7); Controls.Add(clockoOutDateTimePicker); Controls.Add(clockInDateTimePicker); Controls.Add(editEntryTitleLabel); Controls.Add(clockOutTimePicker); Controls.Add(clockInTimePicker); FormBorderStyle = FormBorderStyle.FixedSingle; MaximizeBox = false; Name = "FrmEditEntry"; StartPosition = FormStartPosition.CenterScreen; Panel2.ResumeLayout(false); Panel2.PerformLayout(); Panel1.ResumeLayout(false); Panel1.PerformLayout(); Load += new EventHandler(FrmEditEntry_Load); ResumeLayout(false); PerformLayout(); }
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 resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmListContainers)); 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(); Label1 = new Label(); _ComboSSLineList = new Bunifu.UI.WinForms.BunifuDropdown(); _ComboSSLineList.SelectedIndexChanged += new EventHandler(ComboSSLineList_SelectedIndexChanged); _TextSSLineListSearch = new BunifuTextBox(); _TextSSLineListSearch.TextChanged += new EventHandler(BunifuTextBox1_TextChanged); _assignBunifuButton = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _assignBunifuButton.Click += new EventHandler(BunifuButton2_Click); BunifuShadowPanel1 = new Bunifu.UI.WinForm.BunifuShadowPanel.BunifuShadowPanel(); Panel1 = new Panel(); Panel5 = new Panel(); _closeFlatButton = new Bunifu.Framework.UI.BunifuFlatButton(); _closeFlatButton.Click += new EventHandler(closeFlatButton_Click); Panel2 = new Panel(); _ContainerList2 = new WTC_CeresControls.ContainerList(); _ContainerList2.RemoveAssignment += new WTC_CeresControls.ContainerList.RemoveAssignmentEventHandler(ContainerList2_RemoveAssignment); _ContainerList2.ExportAsCSV += new WTC_CeresControls.ContainerList.ExportAsCSVEventHandler(ContainerList2_ExportAsCSV); _ContainerList2.ContainersSelected += new WTC_CeresControls.ContainerList.ContainersSelectedEventHandler(ContainerList2_ContainersSelected); Label2 = new Label(); BunifuShadowPanel1.SuspendLayout(); Panel1.SuspendLayout(); Panel5.SuspendLayout(); Panel2.SuspendLayout(); SuspendLayout(); // // Label1 // Label1.Anchor = AnchorStyles.Top; 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(121, 64); Label1.Name = "Label1"; Label1.Size = new Size(131, 25); Label1.TabIndex = 2; Label1.Text = "Shipping Line:"; // // ComboSSLineList // _ComboSSLineList.Anchor = AnchorStyles.Top; _ComboSSLineList.BackColor = Color.White; _ComboSSLineList.BorderRadius = 3; _ComboSSLineList.Color = Color.Teal; _ComboSSLineList.Direction = Bunifu.UI.WinForms.BunifuDropdown.Directions.Down; _ComboSSLineList.DisabledColor = Color.Gray; _ComboSSLineList.DrawMode = DrawMode.OwnerDrawFixed; _ComboSSLineList.DropdownBorderThickness = Bunifu.UI.WinForms.BunifuDropdown.BorderThickness.Thin; _ComboSSLineList.DropDownStyle = ComboBoxStyle.DropDownList; _ComboSSLineList.DropDownTextAlign = Bunifu.UI.WinForms.BunifuDropdown.TextAlign.Left; _ComboSSLineList.FillDropDown = false; _ComboSSLineList.FillIndicator = true; _ComboSSLineList.FlatStyle = FlatStyle.Flat; _ComboSSLineList.Font = new Font("Segoe UI Semibold", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _ComboSSLineList.ForeColor = SystemColors.ControlDarkDark; _ComboSSLineList.FormattingEnabled = true; _ComboSSLineList.Icon = null; _ComboSSLineList.IndicatorColor = Color.Teal; _ComboSSLineList.IndicatorLocation = Bunifu.UI.WinForms.BunifuDropdown.Indicator.Right; _ComboSSLineList.ItemBackColor = Color.White; _ComboSSLineList.ItemBorderColor = Color.White; _ComboSSLineList.ItemForeColor = SystemColors.ControlDarkDark; _ComboSSLineList.ItemHeight = 28; _ComboSSLineList.ItemHighLightColor = Color.Gray; _ComboSSLineList.Location = new Point(253, 58); _ComboSSLineList.MaxDropDownItems = 50; _ComboSSLineList.Name = "_ComboSSLineList"; _ComboSSLineList.Size = new Size(465, 34); _ComboSSLineList.TabIndex = 106; _ComboSSLineList.Text = null; // // TextSSLineListSearch // _TextSSLineListSearch.AcceptsReturn = false; _TextSSLineListSearch.AcceptsTab = false; _TextSSLineListSearch.Anchor = AnchorStyles.Top; _TextSSLineListSearch.AnimationSpeed = 200; _TextSSLineListSearch.AutoCompleteMode = AutoCompleteMode.None; _TextSSLineListSearch.AutoCompleteSource = AutoCompleteSource.None; _TextSSLineListSearch.BackColor = Color.Transparent; _TextSSLineListSearch.BackgroundImage = (Image)resources.GetObject("TextSSLineListSearch.BackgroundImage"); _TextSSLineListSearch.BorderColorActive = Color.Teal; _TextSSLineListSearch.BorderColorDisabled = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161))); _TextSSLineListSearch.BorderColorHover = Color.Teal; _TextSSLineListSearch.BorderColorIdle = Color.Gray; _TextSSLineListSearch.BorderRadius = 1; _TextSSLineListSearch.BorderThickness = 1; _TextSSLineListSearch.CharacterCasing = CharacterCasing.Normal; _TextSSLineListSearch.Cursor = Cursors.IBeam; _TextSSLineListSearch.DefaultFont = new Font("Segoe UI Semibold", 9.75f); _TextSSLineListSearch.DefaultText = ""; _TextSSLineListSearch.FillColor = Color.White; _TextSSLineListSearch.HideSelection = true; _TextSSLineListSearch.IconLeft = null; _TextSSLineListSearch.IconLeftCursor = Cursors.IBeam; _TextSSLineListSearch.IconPadding = 10; _TextSSLineListSearch.IconRight = null; _TextSSLineListSearch.IconRightCursor = Cursors.IBeam; _TextSSLineListSearch.Lines = new string[0]; _TextSSLineListSearch.Location = new Point(1055, 58); _TextSSLineListSearch.MaxLength = 32767; _TextSSLineListSearch.MinimumSize = new Size(100, 35); _TextSSLineListSearch.Modified = false; _TextSSLineListSearch.Multiline = false; _TextSSLineListSearch.Name = "_TextSSLineListSearch"; StateProperties1.BorderColor = Color.Teal; StateProperties1.FillColor = Color.Empty; StateProperties1.ForeColor = Color.Empty; StateProperties1.PlaceholderForeColor = Color.Empty; _TextSSLineListSearch.OnActiveState = StateProperties1; StateProperties2.BorderColor = Color.Empty; StateProperties2.FillColor = Color.White; StateProperties2.ForeColor = Color.Empty; StateProperties2.PlaceholderForeColor = Color.Silver; _TextSSLineListSearch.OnDisabledState = StateProperties2; StateProperties3.BorderColor = Color.Teal; StateProperties3.FillColor = Color.Empty; StateProperties3.ForeColor = Color.Empty; StateProperties3.PlaceholderForeColor = Color.Empty; _TextSSLineListSearch.OnHoverState = StateProperties3; StateProperties4.BorderColor = Color.Gray; StateProperties4.FillColor = Color.White; StateProperties4.ForeColor = Color.Empty; StateProperties4.PlaceholderForeColor = Color.Empty; _TextSSLineListSearch.OnIdleState = StateProperties4; _TextSSLineListSearch.PasswordChar = '\0'; _TextSSLineListSearch.PlaceholderForeColor = Color.Silver; _TextSSLineListSearch.PlaceholderText = "Search..."; _TextSSLineListSearch.ReadOnly = false; _TextSSLineListSearch.ScrollBars = ScrollBars.None; _TextSSLineListSearch.SelectedText = ""; _TextSSLineListSearch.SelectionLength = 0; _TextSSLineListSearch.SelectionStart = 0; _TextSSLineListSearch.ShortcutsEnabled = true; _TextSSLineListSearch.Size = new Size(324, 35); _TextSSLineListSearch.Style = _Style.Bunifu; _TextSSLineListSearch.TabIndex = 108; _TextSSLineListSearch.TextAlign = HorizontalAlignment.Left; _TextSSLineListSearch.TextMarginBottom = 0; _TextSSLineListSearch.TextMarginLeft = 5; _TextSSLineListSearch.TextMarginTop = 0; _TextSSLineListSearch.TextPlaceholder = "Search..."; _TextSSLineListSearch.UseSystemPasswordChar = false; _TextSSLineListSearch.WordWrap = true; // // assignBunifuButton // _assignBunifuButton.AllowToggling = false; _assignBunifuButton.Anchor = AnchorStyles.Right; _assignBunifuButton.AnimationSpeed = 200; _assignBunifuButton.AutoGenerateColors = false; _assignBunifuButton.BackColor = Color.Transparent; _assignBunifuButton.BackColor1 = Color.Teal; _assignBunifuButton.BackgroundImage = (Image)resources.GetObject("assignBunifuButton.BackgroundImage"); _assignBunifuButton.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _assignBunifuButton.ButtonText = "Assign..."; _assignBunifuButton.ButtonTextMarginLeft = 0; _assignBunifuButton.ColorContrastOnClick = 45; _assignBunifuButton.ColorContrastOnHover = 45; _assignBunifuButton.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _assignBunifuButton.CustomizableEdges = BorderEdges1; _assignBunifuButton.DialogResult = DialogResult.None; _assignBunifuButton.DisabledBorderColor = Color.Empty; _assignBunifuButton.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _assignBunifuButton.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _assignBunifuButton.Enabled = false; _assignBunifuButton.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _assignBunifuButton.Font = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _assignBunifuButton.ForeColor = Color.White; _assignBunifuButton.IconLeftCursor = Cursors.Hand; _assignBunifuButton.IconMarginLeft = 11; _assignBunifuButton.IconPadding = 10; _assignBunifuButton.IconRightCursor = Cursors.Hand; _assignBunifuButton.IdleBorderColor = Color.Teal; _assignBunifuButton.IdleBorderRadius = 3; _assignBunifuButton.IdleBorderThickness = 1; _assignBunifuButton.IdleFillColor = Color.Teal; _assignBunifuButton.IdleIconLeftImage = null; _assignBunifuButton.IdleIconRightImage = null; _assignBunifuButton.IndicateFocus = true; _assignBunifuButton.Location = new Point(1372, 824); _assignBunifuButton.Name = "_assignBunifuButton"; 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; _assignBunifuButton.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; _assignBunifuButton.OnPressedState = StateProperties6; _assignBunifuButton.Size = new Size(123, 44); _assignBunifuButton.TabIndex = 116; _assignBunifuButton.TextAlign = ContentAlignment.MiddleCenter; _assignBunifuButton.TextMarginLeft = 0; _assignBunifuButton.UseDefaultRadiusAndThickness = true; // // BunifuShadowPanel1 // BunifuShadowPanel1.BackColor = Color.White; BunifuShadowPanel1.BorderColor = Color.Transparent; BunifuShadowPanel1.Controls.Add(Panel1); BunifuShadowPanel1.Dock = DockStyle.Fill; BunifuShadowPanel1.ForeColor = Color.White; BunifuShadowPanel1.Location = new Point(0, 0); BunifuShadowPanel1.Margin = new Padding(0); BunifuShadowPanel1.Name = "BunifuShadowPanel1"; BunifuShadowPanel1.Padding = new Padding(10, 6, 5, 5); BunifuShadowPanel1.PanelColor = Color.Empty; BunifuShadowPanel1.ShadowDept = 2; BunifuShadowPanel1.ShadowTopLeftVisible = true; BunifuShadowPanel1.Size = new Size(1537, 928); BunifuShadowPanel1.TabIndex = 117; // // Panel1 // Panel1.BackColor = Color.White; Panel1.Controls.Add(Panel5); Panel1.Dock = DockStyle.Fill; Panel1.Location = new Point(10, 6); Panel1.Name = "Panel1"; Panel1.Size = new Size(1522, 917); Panel1.TabIndex = 32; // // Panel5 // Panel5.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Panel5.Controls.Add(_closeFlatButton); Panel5.Controls.Add(Panel2); Panel5.Dock = DockStyle.Fill; Panel5.Location = new Point(0, 0); Panel5.Name = "Panel5"; Panel5.Padding = new Padding(0, 40, 0, 0); Panel5.Size = new Size(1522, 917); Panel5.TabIndex = 33; // // closeFlatButton // _closeFlatButton.Active = false; _closeFlatButton.Activecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _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.Font = new Font("Microsoft Sans Serif", 7.854546f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _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(1478, 3); _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(44, 37); _closeFlatButton.TabIndex = 168; _closeFlatButton.Text = "🗙"; _closeFlatButton.TextAlign = ContentAlignment.MiddleCenter; _closeFlatButton.Textcolor = Color.White; _closeFlatButton.TextFont = new Font("Microsoft Sans Serif", 20.29091f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); // // Panel2 // Panel2.BackColor = Color.White; Panel2.Controls.Add(_ContainerList2); Panel2.Controls.Add(Label2); Panel2.Controls.Add(_ComboSSLineList); Panel2.Controls.Add(_assignBunifuButton); Panel2.Controls.Add(_TextSSLineListSearch); Panel2.Controls.Add(Label1); Panel2.Dock = DockStyle.Fill; Panel2.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Panel2.Location = new Point(0, 40); Panel2.Name = "Panel2"; Panel2.Size = new Size(1522, 877); Panel2.TabIndex = 0; // // ContainerList2 // _ContainerList2.ContainerListMode = WTC_CeresControls.ContainerList.ModeOfContainerList.SSLineContainerList; _ContainerList2.Location = new Point(141, 98); _ContainerList2.Name = "_ContainerList2"; _ContainerList2.Size = new Size(1354, 672); _ContainerList2.TabIndex = 118; // // Label2 // Label2.Anchor = AnchorStyles.Top; Label2.AutoSize = true; Label2.Font = new Font("Segoe UI Semibold", 13.74545f, FontStyle.Bold, 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(121, 14); Label2.Name = "Label2"; Label2.Size = new Size(176, 30); Label2.TabIndex = 117; Label2.Text = "List of containers"; // // FrmListContainers // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(1537, 928); Controls.Add(BunifuShadowPanel1); FormBorderStyle = FormBorderStyle.None; Name = "FrmListContainers"; StartPosition = FormStartPosition.CenterParent; BunifuShadowPanel1.ResumeLayout(false); Panel1.ResumeLayout(false); Panel5.ResumeLayout(false); Panel2.ResumeLayout(false); Panel2.PerformLayout(); Load += new EventHandler(FrmListContainers_Load); ResumeLayout(false); }
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(); }