private static void AddToGlacialList1(GlacialList xListView, string xSql) { xListView.BeginUpdate(); //xListView.Items.Clear(); if (Program.DBConn.State.ToString().ToUpper() == "CLOSED") { Program.DBConn.Open(); } SqlDataReader xRtn = Program.SqlReader(xSql); if (xRtn == null) { xRtn.Dispose(); xListView.Update(); xListView.EndUpdate(); return; } if (xRtn.HasRows == false) { xRtn.Close(); xRtn.Dispose(); xListView.Update(); xListView.EndUpdate(); return; } int xFieldCount; xFieldCount = xRtn.FieldCount; GLItem lvi; xListView.Update(); //xListView.BeginUpdate(); while (xRtn.Read()) { lvi = new GLItem(); for (int col = 0; col < xFieldCount; col++) { if (col == 0) { lvi = xListView.Items.Add(xRtn.GetValue(col).ToString().Trim()); } else { lvi.SubItems[col].Text = xRtn.GetValue(col).ToString().Trim(); } } } xListView.EndUpdate(); xRtn.Close(); xRtn.Dispose(); return; }
public listViewPrinter(GlacialList lv, Point location, bool border, bool hasGroups, string title) { this.lv = lv; this.location = location; this.border = border; this.hasGroups = hasGroups; this.title = title; titleHeight = !string.IsNullOrEmpty(title) ? lv.FindForm().CreateGraphics().MeasureString(title, new Font(lv.Font.Name, 12)).ToSize().Height : 0; pd.BeginPrint += pd_BeginPrint; pd.PrintPage += pd_PrintPage; }
private static void AdjustViewColumns(GlacialList view) { int w = view.Size.Width - SystemInformation.VerticalScrollBarWidth; // NOTE: can't use ClientSize.Width if vertical scrollbar is already shown, wing it w -= 4; for (int x = view.Columns.Count - 1; x >= 0; x--) { if (view.Columns[x].Width < w) w -= view.Columns[x].Width; else { view.Columns[x].Width = w; // Hide columns that can't fit for (int jx = x + 1; jx < view.Columns.Count; ++jx) view.Columns[jx].Width = 0; return; } } // Widen last column to fill view view.Columns[0].Width += w; }
private static void ClearGlacialList(GlacialList xGlacialList, GLItem xItem) { xGlacialList.BeginUpdate(); xGlacialList.Items.Remove(xItem); xGlacialList.EndUpdate(); }
private static void ClearGlacialList(GlacialList xGlacialList) { xGlacialList.BeginUpdate(); xGlacialList.Items.Clear(); xGlacialList.EndUpdate(); }
public bool GLLoad( GLItem item, GLSubItem subItem, GlacialList listctrl ) // populate this control however you wish with item { // set the styles you want for this this.BorderStyle = BorderStyle.None; this.AutoSize = false; m_item = item; m_subItem = subItem; m_Parent = listctrl; this.Text = subItem.Text; return true; // we don't do any heavy processing in this ctrl so we just return true }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.General = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this._pluginlist = new GlacialComponents.Controls.GlacialList(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this._useProjectFilter = new System.Windows.Forms.CheckBox(); this._browse = new System.Windows.Forms.Button(); this._localpath = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.Destinations = new System.Windows.Forms.TabPage(); this._destinationsView = new Deployer.ProjectSettings.Views.DestinationsView(); this.Filters = new System.Windows.Forms.TabPage(); this._filtersView = new Deployer.ProjectSettings.Views.FiltersView(); this.Hooks = new System.Windows.Forms.TabPage(); this._hooksView = new Deployer.ProjectSettings.Views.HooksView(); this.Timestamp = new System.Windows.Forms.TabPage(); this._timestampView = new Deployer.ProjectSettings.Views.TimestampView(); this.Database = new System.Windows.Forms.TabPage(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.label6 = new System.Windows.Forms.Label(); this._destinationdbname = new System.Windows.Forms.TextBox(); this._destinationdburl = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.label4 = new System.Windows.Forms.Label(); this._sourcedbname = new System.Windows.Forms.TextBox(); this._sourcedburl = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.StoredProcedures = new System.Windows.Forms.TabPage(); this.groupBox7 = new System.Windows.Forms.GroupBox(); this.label8 = new System.Windows.Forms.Label(); this._excludeProcedures = new System.Windows.Forms.DataGrid(); this._cancel = new System.Windows.Forms.Button(); this._ok = new System.Windows.Forms.Button(); this._tooltip = new System.Windows.Forms.ToolTip(this.components); this.tabControl1.SuspendLayout(); this.General.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.Destinations.SuspendLayout(); this.Filters.SuspendLayout(); this.Hooks.SuspendLayout(); this.Timestamp.SuspendLayout(); this.Database.SuspendLayout(); this.groupBox6.SuspendLayout(); this.groupBox5.SuspendLayout(); this.StoredProcedures.SuspendLayout(); this.groupBox7.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._excludeProcedures)).BeginInit(); this.SuspendLayout(); // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.General); this.tabControl1.Controls.Add(this.Destinations); this.tabControl1.Controls.Add(this.Filters); this.tabControl1.Controls.Add(this.Hooks); this.tabControl1.Controls.Add(this.Timestamp); this.tabControl1.Controls.Add(this.Database); this.tabControl1.Controls.Add(this.StoredProcedures); this.tabControl1.Location = new System.Drawing.Point(12, 12); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(770, 515); this.tabControl1.TabIndex = 0; // // General // this.General.Controls.Add(this.groupBox3); this.General.Controls.Add(this.groupBox2); this.General.Location = new System.Drawing.Point(4, 22); this.General.Name = "General"; this.General.Size = new System.Drawing.Size(762, 489); this.General.TabIndex = 0; this.General.Text = "General"; this.General.UseVisualStyleBackColor = true; // // groupBox3 // this.groupBox3.Controls.Add(this._pluginlist); this.groupBox3.Location = new System.Drawing.Point(8, 96); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(464, 181); this.groupBox3.TabIndex = 1; this.groupBox3.TabStop = false; this.groupBox3.Text = "Available deployment plugins"; // // _pluginlist // this._pluginlist.BackColor = System.Drawing.SystemColors.Window; glColumn1.Name = "Name"; glColumn1.Text = "Name"; glColumn1.Width = 150; glColumn2.Name = "Identifier"; glColumn2.Text = "Identifier"; glColumn3.Name = "Version"; glColumn3.Text = "Version"; glColumn3.Width = 80; this._pluginlist.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] { glColumn1, glColumn2, glColumn3}); this._pluginlist.HotTrackingColor = System.Drawing.SystemColors.HotTrack; this._pluginlist.ImageList = null; this._pluginlist.Location = new System.Drawing.Point(8, 24); this._pluginlist.MultiSelect = true; this._pluginlist.Name = "_pluginlist"; this._pluginlist.SelectedTextColor = System.Drawing.SystemColors.HighlightText; this._pluginlist.SelectionColor = System.Drawing.SystemColors.Highlight; this._pluginlist.Size = new System.Drawing.Size(448, 136); this._pluginlist.TabIndex = 4; this._pluginlist.Text = "glacialList1"; this._pluginlist.UnfocusedSelectionColor = System.Drawing.SystemColors.Highlight; // // groupBox2 // this.groupBox2.Controls.Add(this._useProjectFilter); this.groupBox2.Controls.Add(this._browse); this.groupBox2.Controls.Add(this._localpath); this.groupBox2.Controls.Add(this.label2); this.groupBox2.Location = new System.Drawing.Point(8, 8); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(464, 80); this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "Source directory"; // // _useProjectFilter // this._useProjectFilter.Location = new System.Drawing.Point(72, 48); this._useProjectFilter.Name = "_useProjectFilter"; this._useProjectFilter.Size = new System.Drawing.Size(248, 24); this._useProjectFilter.TabIndex = 2; this._useProjectFilter.Text = "Scan from Visual Studio projectfile (*.csproj)"; // // _browse // this._browse.FlatStyle = System.Windows.Forms.FlatStyle.System; this._browse.Location = new System.Drawing.Point(376, 24); this._browse.Name = "_browse"; this._browse.Size = new System.Drawing.Size(75, 23); this._browse.TabIndex = 1; this._browse.Text = "Browse..."; this._browse.Click += new System.EventHandler(this._browse_Click); // // _localpath // this._localpath.Location = new System.Drawing.Point(72, 24); this._localpath.Name = "_localpath"; this._localpath.Size = new System.Drawing.Size(296, 21); this._localpath.TabIndex = 0; this._tooltip.SetToolTip(this._localpath, "The path where the files to deploy are stored. Relative paths will be calculated " + "from the location of the project file."); // // label2 // this.label2.Location = new System.Drawing.Point(8, 24); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 23); this.label2.TabIndex = 1; this.label2.Text = "Local path"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // Destinations // this.Destinations.Controls.Add(this._destinationsView); this.Destinations.Location = new System.Drawing.Point(4, 22); this.Destinations.Name = "Destinations"; this.Destinations.Size = new System.Drawing.Size(192, 74); this.Destinations.TabIndex = 6; this.Destinations.Text = "Destinations"; this.Destinations.UseVisualStyleBackColor = true; // // _destinationsView // this._destinationsView.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._destinationsView.Location = new System.Drawing.Point(8, 8); this._destinationsView.Name = "_destinationsView"; this._destinationsView.Project = null; this._destinationsView.Size = new System.Drawing.Size(746, 472); this._destinationsView.TabIndex = 0; // // Filters // this.Filters.Controls.Add(this._filtersView); this.Filters.Location = new System.Drawing.Point(4, 22); this.Filters.Name = "Filters"; this.Filters.Size = new System.Drawing.Size(192, 74); this.Filters.TabIndex = 7; this.Filters.Text = "Filters"; this.Filters.UseVisualStyleBackColor = true; // // _filtersView // this._filtersView.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._filtersView.Location = new System.Drawing.Point(8, 8); this._filtersView.Name = "_filtersView"; this._filtersView.Project = null; this._filtersView.Size = new System.Drawing.Size(746, 472); this._filtersView.TabIndex = 0; // // Hooks // this.Hooks.Controls.Add(this._hooksView); this.Hooks.Location = new System.Drawing.Point(4, 22); this.Hooks.Name = "Hooks"; this.Hooks.Size = new System.Drawing.Size(192, 74); this.Hooks.TabIndex = 8; this.Hooks.Text = "Hooks"; this.Hooks.UseVisualStyleBackColor = true; // // _hooksView // this._hooksView.Location = new System.Drawing.Point(8, 8); this._hooksView.Name = "_hooksView"; this._hooksView.Size = new System.Drawing.Size(746, 472); this._hooksView.TabIndex = 0; // // Timestamp // this.Timestamp.Controls.Add(this._timestampView); this.Timestamp.Location = new System.Drawing.Point(4, 22); this.Timestamp.Name = "Timestamp"; this.Timestamp.Size = new System.Drawing.Size(192, 74); this.Timestamp.TabIndex = 5; this.Timestamp.Text = "Timestamp"; this.Timestamp.UseVisualStyleBackColor = true; // // _timestampView // this._timestampView.Location = new System.Drawing.Point(8, 8); this._timestampView.Name = "_timestampView"; this._timestampView.Project = null; this._timestampView.Size = new System.Drawing.Size(746, 472); this._timestampView.TabIndex = 0; // // Database // this.Database.Controls.Add(this.groupBox6); this.Database.Controls.Add(this.groupBox5); this.Database.Location = new System.Drawing.Point(4, 22); this.Database.Name = "Database"; this.Database.Size = new System.Drawing.Size(192, 74); this.Database.TabIndex = 3; this.Database.Text = "Database"; this.Database.UseVisualStyleBackColor = true; // // groupBox6 // this.groupBox6.Controls.Add(this.label6); this.groupBox6.Controls.Add(this._destinationdbname); this.groupBox6.Controls.Add(this._destinationdburl); this.groupBox6.Controls.Add(this.label7); this.groupBox6.Location = new System.Drawing.Point(8, 104); this.groupBox6.Name = "groupBox6"; this.groupBox6.Size = new System.Drawing.Size(464, 88); this.groupBox6.TabIndex = 1; this.groupBox6.TabStop = false; this.groupBox6.Text = "Destination database"; // // label6 // this.label6.Location = new System.Drawing.Point(8, 24); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(88, 23); this.label6.TabIndex = 5; this.label6.Text = "Name"; this.label6.TextAlign = System.Drawing.ContentAlignment.TopRight; // // _destinationdbname // this._destinationdbname.Location = new System.Drawing.Point(104, 24); this._destinationdbname.Name = "_destinationdbname"; this._destinationdbname.Size = new System.Drawing.Size(352, 21); this._destinationdbname.TabIndex = 3; // // _destinationdburl // this._destinationdburl.Location = new System.Drawing.Point(104, 48); this._destinationdburl.Name = "_destinationdburl"; this._destinationdburl.Size = new System.Drawing.Size(352, 21); this._destinationdburl.TabIndex = 2; // // label7 // this.label7.Location = new System.Drawing.Point(8, 48); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(88, 23); this.label7.TabIndex = 4; this.label7.Text = "Webservice URL"; this.label7.TextAlign = System.Drawing.ContentAlignment.TopRight; // // groupBox5 // this.groupBox5.Controls.Add(this.label4); this.groupBox5.Controls.Add(this._sourcedbname); this.groupBox5.Controls.Add(this._sourcedburl); this.groupBox5.Controls.Add(this.label5); this.groupBox5.Location = new System.Drawing.Point(8, 8); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(464, 88); this.groupBox5.TabIndex = 0; this.groupBox5.TabStop = false; this.groupBox5.Text = "Source database"; // // label4 // this.label4.Location = new System.Drawing.Point(8, 24); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(88, 23); this.label4.TabIndex = 1; this.label4.Text = "Name"; this.label4.TextAlign = System.Drawing.ContentAlignment.TopRight; // // _sourcedbname // this._sourcedbname.Location = new System.Drawing.Point(104, 24); this._sourcedbname.Name = "_sourcedbname"; this._sourcedbname.Size = new System.Drawing.Size(352, 21); this._sourcedbname.TabIndex = 0; // // _sourcedburl // this._sourcedburl.Location = new System.Drawing.Point(104, 48); this._sourcedburl.Name = "_sourcedburl"; this._sourcedburl.Size = new System.Drawing.Size(352, 21); this._sourcedburl.TabIndex = 0; // // label5 // this.label5.Location = new System.Drawing.Point(8, 48); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(88, 23); this.label5.TabIndex = 1; this.label5.Text = "Webservice URL"; this.label5.TextAlign = System.Drawing.ContentAlignment.TopRight; // // StoredProcedures // this.StoredProcedures.Controls.Add(this.groupBox7); this.StoredProcedures.Location = new System.Drawing.Point(4, 22); this.StoredProcedures.Name = "StoredProcedures"; this.StoredProcedures.Size = new System.Drawing.Size(192, 74); this.StoredProcedures.TabIndex = 4; this.StoredProcedures.Text = "Stored procedures"; this.StoredProcedures.UseVisualStyleBackColor = true; // // groupBox7 // this.groupBox7.Controls.Add(this.label8); this.groupBox7.Controls.Add(this._excludeProcedures); this.groupBox7.Location = new System.Drawing.Point(8, 8); this.groupBox7.Name = "groupBox7"; this.groupBox7.Size = new System.Drawing.Size(464, 288); this.groupBox7.TabIndex = 3; this.groupBox7.TabStop = false; this.groupBox7.Text = "Exclude stored procedures"; // // label8 // this.label8.Location = new System.Drawing.Point(8, 24); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(448, 32); this.label8.TabIndex = 3; this.label8.Text = "Stored procedures matching any expression in the list below will not be included " + "in deployment."; // // _excludeProcedures // this._excludeProcedures.CaptionVisible = false; this._excludeProcedures.DataMember = ""; this._excludeProcedures.HeaderForeColor = System.Drawing.SystemColors.ControlText; this._excludeProcedures.Location = new System.Drawing.Point(8, 56); this._excludeProcedures.Name = "_excludeProcedures"; this._excludeProcedures.Size = new System.Drawing.Size(448, 224); this._excludeProcedures.TabIndex = 0; // // _cancel // this._cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this._cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this._cancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this._cancel.Location = new System.Drawing.Point(707, 533); this._cancel.Name = "_cancel"; this._cancel.Size = new System.Drawing.Size(75, 23); this._cancel.TabIndex = 1; this._cancel.Text = "Cancel"; this._cancel.Click += new System.EventHandler(this._cancel_Click); // // _ok // this._ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this._ok.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ok.Location = new System.Drawing.Point(627, 533); this._ok.Name = "_ok"; this._ok.Size = new System.Drawing.Size(75, 23); this._ok.TabIndex = 1; this._ok.Text = "OK"; this._ok.Click += new System.EventHandler(this._ok_Click); // // _tooltip // this._tooltip.AutoPopDelay = 10000; this._tooltip.InitialDelay = 200; this._tooltip.ReshowDelay = 100; // // ProjectSettingsForm // this.AcceptButton = this._ok; this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.CancelButton = this._cancel; this.ClientSize = new System.Drawing.Size(794, 568); this.ControlBox = false; this.Controls.Add(this._cancel); this.Controls.Add(this.tabControl1); this.Controls.Add(this._ok); this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "ProjectSettingsForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Project Settings"; this.Load += new System.EventHandler(this.ProjectSettingsForm_Load); this.tabControl1.ResumeLayout(false); this.General.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.Destinations.ResumeLayout(false); this.Filters.ResumeLayout(false); this.Hooks.ResumeLayout(false); this.Timestamp.ResumeLayout(false); this.Database.ResumeLayout(false); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.StoredProcedures.ResumeLayout(false); this.groupBox7.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._excludeProcedures)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn4 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn5 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn6 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn7 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn8 = new GlacialComponents.Controls.GLColumn(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LogForm)); this.firstDateTimePicker = new System.Windows.Forms.DateTimePicker(); this.lastDateTimePicker = new System.Windows.Forms.DateTimePicker(); this.label1 = new System.Windows.Forms.Label(); this.filterPanel = new System.Windows.Forms.Panel(); this.workTimeLabel = new System.Windows.Forms.Label(); this.workTimeComboBox = new System.Windows.Forms.ComboBox(); this.btnClear = new System.Windows.Forms.Button(); this.btnApply = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.customersComboBox = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.logGlacialList = new GlacialComponents.Controls.GlacialList(); this.logContextMenu = new System.Windows.Forms.ContextMenu(); this.addMenuItem = new System.Windows.Forms.MenuItem(); this.removeMenuItem = new System.Windows.Forms.MenuItem(); this.panel2 = new System.Windows.Forms.Panel(); this.closeButton = new System.Windows.Forms.Button(); this.filterButton = new System.Windows.Forms.Button(); this.applyChangesButton = new System.Windows.Forms.Button(); this.filterPanel.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // firstDateTimePicker // this.firstDateTimePicker.Location = new System.Drawing.Point(64, 5); this.firstDateTimePicker.Name = "firstDateTimePicker"; this.firstDateTimePicker.Size = new System.Drawing.Size(200, 20); this.firstDateTimePicker.TabIndex = 1; // // lastDateTimePicker // this.lastDateTimePicker.Location = new System.Drawing.Point(64, 32); this.lastDateTimePicker.Name = "lastDateTimePicker"; this.lastDateTimePicker.Size = new System.Drawing.Size(200, 20); this.lastDateTimePicker.TabIndex = 3; // // label1 // this.label1.Location = new System.Drawing.Point(8, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 16); this.label1.TabIndex = 0; this.label1.Text = "First day"; // // filterPanel // this.filterPanel.Controls.Add(this.workTimeLabel); this.filterPanel.Controls.Add(this.workTimeComboBox); this.filterPanel.Controls.Add(this.btnClear); this.filterPanel.Controls.Add(this.btnApply); this.filterPanel.Controls.Add(this.label3); this.filterPanel.Controls.Add(this.customersComboBox); this.filterPanel.Controls.Add(this.label2); this.filterPanel.Controls.Add(this.firstDateTimePicker); this.filterPanel.Controls.Add(this.lastDateTimePicker); this.filterPanel.Controls.Add(this.label1); this.filterPanel.Dock = System.Windows.Forms.DockStyle.Top; this.filterPanel.Location = new System.Drawing.Point(0, 0); this.filterPanel.Name = "filterPanel"; this.filterPanel.Size = new System.Drawing.Size(704, 64); this.filterPanel.TabIndex = 4; // // workTimeLabel // this.workTimeLabel.Location = new System.Drawing.Point(272, 32); this.workTimeLabel.Name = "workTimeLabel"; this.workTimeLabel.Size = new System.Drawing.Size(96, 16); this.workTimeLabel.TabIndex = 6; this.workTimeLabel.Text = "Show work &period"; // // workTimeComboBox // this.workTimeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.workTimeComboBox.Items.AddRange(new object[] { "Total", "Office hours", "Out of office hours"}); this.workTimeComboBox.Location = new System.Drawing.Point(376, 32); this.workTimeComboBox.Name = "workTimeComboBox"; this.workTimeComboBox.Size = new System.Drawing.Size(168, 21); this.workTimeComboBox.TabIndex = 7; // // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnClear.Location = new System.Drawing.Point(624, 35); this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(75, 23); this.btnClear.TabIndex = 9; this.btnClear.Text = "Clear"; this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // // btnApply // this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnApply.Location = new System.Drawing.Point(624, 5); this.btnApply.Name = "btnApply"; this.btnApply.Size = new System.Drawing.Size(75, 23); this.btnApply.TabIndex = 8; this.btnApply.Text = "Apply"; this.btnApply.Click += new System.EventHandler(this.btnApply_Click); // // label3 // this.label3.Location = new System.Drawing.Point(272, 8); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(56, 16); this.label3.TabIndex = 4; this.label3.Text = "Customer"; // // customersComboBox // this.customersComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.customersComboBox.Location = new System.Drawing.Point(376, 8); this.customersComboBox.Name = "customersComboBox"; this.customersComboBox.Size = new System.Drawing.Size(168, 21); this.customersComboBox.Sorted = true; this.customersComboBox.TabIndex = 5; // // label2 // this.label2.Location = new System.Drawing.Point(8, 35); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 16); this.label2.TabIndex = 2; this.label2.Text = "Last day"; // // logGlacialList // this.logGlacialList.AllowColumnResize = true; this.logGlacialList.AllowMultiselect = false; this.logGlacialList.AlternateBackground = System.Drawing.Color.DarkGreen; this.logGlacialList.AlternatingColors = false; this.logGlacialList.AutoHeight = true; this.logGlacialList.BackColor = System.Drawing.SystemColors.ControlLightLight; this.logGlacialList.BackgroundStretchToFit = true; glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.DateTimePicker; glColumn1.CheckBoxes = false; glColumn1.ImageIndex = -1; glColumn1.Name = "dateColumn"; glColumn1.NumericSort = false; glColumn1.Text = "Date"; glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn1.Width = 60; glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.ComboBox; glColumn2.CheckBoxes = false; glColumn2.ImageIndex = -1; glColumn2.Name = "customerColumn"; glColumn2.NumericSort = false; glColumn2.Text = "Customer"; glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn2.Width = 125; glColumn3.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.ComboBox; glColumn3.CheckBoxes = false; glColumn3.ImageIndex = -1; glColumn3.Name = "activityColumn"; glColumn3.NumericSort = false; glColumn3.Text = "Activity"; glColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn3.Width = 155; glColumn4.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.DateTimePicker; glColumn4.CheckBoxes = false; glColumn4.ImageIndex = -1; glColumn4.Name = "startTimeColumn"; glColumn4.NumericSort = false; glColumn4.Text = "Start time"; glColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn4.Width = 65; glColumn5.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn5.CheckBoxes = false; glColumn5.ImageIndex = -1; glColumn5.Name = "finishTimeColumn"; glColumn5.NumericSort = false; glColumn5.Text = "Finish time"; glColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn5.Width = 65; glColumn6.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.NumericUpDown; glColumn6.CheckBoxes = false; glColumn6.ImageIndex = -1; glColumn6.Name = "durationColumn"; glColumn6.NumericSort = false; glColumn6.Text = "Duration"; glColumn6.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn6.Width = 80; glColumn7.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.TextBox; glColumn7.CheckBoxes = false; glColumn7.ImageIndex = -1; glColumn7.Name = "ticketColumn"; glColumn7.NumericSort = true; glColumn7.Text = "Ticket number"; glColumn7.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn7.Width = 80; glColumn8.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.TextBox; glColumn8.CheckBoxes = false; glColumn8.ImageIndex = -1; glColumn8.Name = "commentColumn"; glColumn8.NumericSort = false; glColumn8.Text = "Comment"; glColumn8.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn8.Width = 65; this.logGlacialList.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] { glColumn1, glColumn2, glColumn3, glColumn4, glColumn5, glColumn6, glColumn7, glColumn8}); this.logGlacialList.ContextMenu = this.logContextMenu; this.logGlacialList.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal; this.logGlacialList.Dock = System.Windows.Forms.DockStyle.Fill; this.logGlacialList.FullRowSelect = true; this.logGlacialList.GridColor = System.Drawing.Color.LightGray; this.logGlacialList.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth; this.logGlacialList.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid; this.logGlacialList.GridTypes = GlacialComponents.Controls.GLGridTypes.gridNormal; this.logGlacialList.HeaderHeight = 15; this.logGlacialList.HeaderVisible = true; this.logGlacialList.HeaderWordWrap = false; this.logGlacialList.HotColumnTracking = false; this.logGlacialList.HotItemTracking = false; this.logGlacialList.HotTrackingColor = System.Drawing.Color.LightGray; this.logGlacialList.HoverEvents = false; this.logGlacialList.HoverTime = 1; this.logGlacialList.ImageList = null; this.logGlacialList.ItemHeight = 17; this.logGlacialList.ItemWordWrap = false; this.logGlacialList.Location = new System.Drawing.Point(0, 64); this.logGlacialList.Name = "logGlacialList"; this.logGlacialList.Selectable = true; this.logGlacialList.SelectedTextColor = System.Drawing.Color.White; this.logGlacialList.SelectionColor = System.Drawing.Color.DarkBlue; this.logGlacialList.ShowBorder = true; this.logGlacialList.ShowFocusRect = false; this.logGlacialList.Size = new System.Drawing.Size(704, 429); this.logGlacialList.SortType = GlacialComponents.Controls.SortTypes.InsertionSort; this.logGlacialList.SuperFlatHeaderColor = System.Drawing.Color.White; this.logGlacialList.TabIndex = 6; this.logGlacialList.Text = "glacialList1"; this.logGlacialList.ItemChangedEvent += new GlacialComponents.Controls.ChangedEventHandler(this.logGlacialList_ItemChangedEvent); this.logGlacialList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.logGlacialList_KeyUp); // // logContextMenu // this.logContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.addMenuItem, this.removeMenuItem}); // // addMenuItem // this.addMenuItem.Index = 0; this.addMenuItem.Text = "&Add activity"; this.addMenuItem.Click += new System.EventHandler(this.addMenuItem_Click); // // removeMenuItem // this.removeMenuItem.Index = 1; this.removeMenuItem.Text = "&Remove activity"; this.removeMenuItem.Click += new System.EventHandler(this.removeMenuItem_Click); // // panel2 // this.panel2.Controls.Add(this.closeButton); this.panel2.Controls.Add(this.filterButton); this.panel2.Controls.Add(this.applyChangesButton); this.panel2.Dock = System.Windows.Forms.DockStyle.Right; this.panel2.Location = new System.Drawing.Point(704, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(104, 493); this.panel2.TabIndex = 7; // // closeButton // this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.closeButton.Location = new System.Drawing.Point(8, 464); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(88, 23); this.closeButton.TabIndex = 2; this.closeButton.Text = "Close"; this.closeButton.Click += new System.EventHandler(this.closeButton_Click); // // filterButton // this.filterButton.Location = new System.Drawing.Point(8, 5); this.filterButton.Name = "filterButton"; this.filterButton.Size = new System.Drawing.Size(88, 23); this.filterButton.TabIndex = 1; this.filterButton.Text = "Hide filter"; this.filterButton.Click += new System.EventHandler(this.filterButton_Click); // // applyChangesButton // this.applyChangesButton.Enabled = false; this.applyChangesButton.Location = new System.Drawing.Point(8, 35); this.applyChangesButton.Name = "applyChangesButton"; this.applyChangesButton.Size = new System.Drawing.Size(88, 23); this.applyChangesButton.TabIndex = 0; this.applyChangesButton.Text = "Apply changes"; this.applyChangesButton.Click += new System.EventHandler(this.applyChangesButton_Click); // // LogForm // this.AcceptButton = this.btnApply; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(808, 493); this.Controls.Add(this.logGlacialList); this.Controls.Add(this.filterPanel); this.Controls.Add(this.panel2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Location = new System.Drawing.Point(40, 40); this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(590, 200); this.Name = "LogForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Text = "LogForm"; this.Load += new System.EventHandler(this.LogForm_Load); this.filterPanel.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
//public static bool CheckPunctuation(string xstr) //{ // //验证输入字符串是否包含单引号 // bool flag = true; // if (xstr.Length == 0) // { // flag = false; // } // else // { // char[] x = xstr.ToCharArray(); // for (int i = 0; i < xstr.Length; i++) // { // if (x[i] == (char)39) // { // flag = false; break; // } // } // } // return flag; //} //public static void ReadTreeNode(TreeView xTree) //传递的参数是treeview //{ // TreeNode tn = null; //节点赋为空值 // if (xTree.Nodes.Count == 0) //节点总数为0 // { // tn = new TreeNode("用户类别信息"); // tn.Name = Program.RootCode + Program.RootCode; // // tn.ImageIndex = 0; // xTree.Nodes.Add(tn); // return; // } // if (xTree.SelectedNode.GetNodeCount(true) != 0) // { // //xTree.SelectedNode.Expand(); // return; // } // //在当前视图控件中选定的树节点的名称,以字符串的形式显示,截取从0开始的10个字符 // string xParentKey = xTree.SelectedNode.Name.ToString().Substring(0, 10); // //SQL语句从AddressDict表中查询Parent_='xParentKey'的所有记录 // string xSql = "select * from MemberType where Parent_='" + xParentKey + "'"; // //读取数据 // SqlDataReader xRec = Program.SqlReader(xSql); // if (xRec == null) // { // return; // } // if (xRec.HasRows == false) // { // xRec.Close(); // return; // } // while (xRec.Read()) // { // tn = new TreeNode(xRec["Nam"].ToString()); // tn.Name = xRec["Code"].ToString() + xRec["SysNo"].ToString(); //两个字段值以字符串形式连接 // if (Int32.Parse(xRec["SysNo"].ToString()) == 0) // { // tn.ImageIndex = 0; // } // else // { // tn.ImageIndex = 1; // } // xTree.SelectedNode.Nodes.Add(tn); // } // xTree.SelectedNode.Expand(); // xRec.Close(); // return; //} public static void ReadGlacialList(GlacialList xGlacialList, SqlDataReader xRec) { int i, x; x = xRec.FieldCount; if (x > xGlacialList.Columns.Count) { return; } x = x - 1; xGlacialList.Items.Clear(); xGlacialList.BeginUpdate(); if (xRec == null) { xGlacialList.EndUpdate(); return; } if (xRec.HasRows == false) { xGlacialList.EndUpdate(); return; } while (xRec.Read()) { GLItem xList = new GLItem(); xList.SubItems.Clear(); xList.SubItems[0].Text = xRec[0].ToString().Trim(); for (i = 1; i <= x; i++) { xList.SubItems[i].Text = xRec[i].ToString().Trim(); } xGlacialList.Items.Add(xList); } xGlacialList.EndUpdate(); return; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn4 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLItem glItem1 = new GlacialComponents.Controls.GLItem(); GlacialComponents.Controls.GLSubItem glSubItem1 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem2 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem3 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem4 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLItem glItem2 = new GlacialComponents.Controls.GLItem(); GlacialComponents.Controls.GLSubItem glSubItem5 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem6 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem7 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem8 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLItem glItem3 = new GlacialComponents.Controls.GLItem(); GlacialComponents.Controls.GLSubItem glSubItem9 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem10 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem11 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem12 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLItem glItem4 = new GlacialComponents.Controls.GLItem(); GlacialComponents.Controls.GLSubItem glSubItem13 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem14 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem15 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem16 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLItem glItem5 = new GlacialComponents.Controls.GLItem(); GlacialComponents.Controls.GLSubItem glSubItem17 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem18 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem19 = new GlacialComponents.Controls.GLSubItem(); GlacialComponents.Controls.GLSubItem glSubItem20 = new GlacialComponents.Controls.GLSubItem(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.glacialList1 = new GlacialComponents.Controls.GlacialList(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // // glacialList1 // this.glacialList1.AllowColumnResize = true; this.glacialList1.AllowMultiselect = false; this.glacialList1.AlternateBackground = System.Drawing.Color.ForestGreen; this.glacialList1.AlternatingColors = true; this.glacialList1.AutoHeight = true; this.glacialList1.BackColor = System.Drawing.SystemColors.ControlLightLight; this.glacialList1.BackgroundStretchToFit = true; glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.TextBox; glColumn1.CheckBoxes = true; glColumn1.ImageIndex = -1; glColumn1.Name = "Column1"; glColumn1.NumericSort = false; glColumn1.Text = "Name"; glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn1.Width = 130; glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.DateTimePicker; glColumn2.CheckBoxes = false; glColumn2.ImageIndex = -1; glColumn2.Name = "Column2"; glColumn2.NumericSort = false; glColumn2.Text = "Released"; glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn2.Width = 140; glColumn3.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn3.CheckBoxes = false; glColumn3.ImageIndex = -1; glColumn3.Name = "Column3"; glColumn3.NumericSort = false; glColumn3.Text = "Download"; glColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn3.Width = 100; glColumn4.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn4.CheckBoxes = false; glColumn4.ImageIndex = -1; glColumn4.Name = "Column4"; glColumn4.NumericSort = false; glColumn4.Text = "Rating"; glColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn4.Width = 100; this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] { glColumn1, glColumn2, glColumn3, glColumn4 }); this.glacialList1.ControlStyle = GlacialComponents.Controls.GLControlStyles.XP; this.glacialList1.Dock = System.Windows.Forms.DockStyle.Fill; this.glacialList1.FullRowSelect = true; this.glacialList1.GridColor = System.Drawing.Color.LightGray; this.glacialList1.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth; this.glacialList1.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid; this.glacialList1.GridTypes = GlacialComponents.Controls.GLGridTypes.gridOnExists; this.glacialList1.HeaderHeight = 22; this.glacialList1.HeaderVisible = true; this.glacialList1.HeaderWordWrap = false; this.glacialList1.HotColumnTracking = true; this.glacialList1.HotItemTracking = true; this.glacialList1.HotTrackingColor = System.Drawing.Color.LightGray; this.glacialList1.HoverEvents = false; this.glacialList1.HoverTime = 1; this.glacialList1.ImageList = this.imageList1; this.glacialList1.ItemHeight = 20; glItem1.BackColor = System.Drawing.Color.White; glItem1.ForeColor = System.Drawing.Color.Black; glItem1.RowBorderColor = System.Drawing.Color.Black; glItem1.RowBorderSize = 0; glSubItem1.BackColor = System.Drawing.Color.Empty; glSubItem1.Checked = false; glSubItem1.ForceText = false; glSubItem1.ForeColor = System.Drawing.Color.Black; glSubItem1.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem1.ImageIndex = -1; glSubItem1.Text = "Glacial List 1.3"; glSubItem2.BackColor = System.Drawing.Color.Empty; glSubItem2.Checked = false; glSubItem2.ForceText = false; glSubItem2.ForeColor = System.Drawing.Color.Black; glSubItem2.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem2.ImageIndex = -1; glSubItem2.Text = "1/7/2004"; glSubItem3.BackColor = System.Drawing.Color.Empty; glSubItem3.Checked = false; glSubItem3.ForceText = false; glSubItem3.ForeColor = System.Drawing.Color.Black; glSubItem3.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem3.ImageIndex = -1; glSubItem3.Text = "40"; glSubItem4.BackColor = System.Drawing.Color.Empty; glSubItem4.Checked = false; glSubItem4.ForceText = false; glSubItem4.ForeColor = System.Drawing.Color.Black; glSubItem4.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem4.ImageIndex = 2; glSubItem4.Text = ""; glItem1.SubItems.AddRange(new GlacialComponents.Controls.GLSubItem[] { glSubItem1, glSubItem2, glSubItem3, glSubItem4 }); glItem1.Text = "Glacial List 1.3"; glItem2.BackColor = System.Drawing.Color.White; glItem2.ForeColor = System.Drawing.Color.Black; glItem2.RowBorderColor = System.Drawing.Color.Black; glItem2.RowBorderSize = 0; glSubItem5.BackColor = System.Drawing.Color.Empty; glSubItem5.Checked = false; glSubItem5.ForceText = false; glSubItem5.ForeColor = System.Drawing.Color.Black; glSubItem5.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem5.ImageIndex = -1; glSubItem5.Text = "Glacial List 1.28"; glSubItem6.BackColor = System.Drawing.Color.Empty; glSubItem6.Checked = false; glSubItem6.ForceText = false; glSubItem6.ForeColor = System.Drawing.Color.Black; glSubItem6.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem6.ImageIndex = -1; glSubItem6.Text = "12/30/2003"; glSubItem7.BackColor = System.Drawing.Color.Empty; glSubItem7.Checked = false; glSubItem7.ForceText = false; glSubItem7.ForeColor = System.Drawing.Color.Black; glSubItem7.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem7.ImageIndex = -1; glSubItem7.Text = "90"; glSubItem8.BackColor = System.Drawing.Color.Empty; glSubItem8.Checked = false; glSubItem8.ForceText = false; glSubItem8.ForeColor = System.Drawing.Color.Black; glSubItem8.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem8.ImageIndex = 2; glSubItem8.Text = ""; glItem2.SubItems.AddRange(new GlacialComponents.Controls.GLSubItem[] { glSubItem5, glSubItem6, glSubItem7, glSubItem8 }); glItem2.Text = "Glacial List 1.28"; glItem3.BackColor = System.Drawing.Color.White; glItem3.ForeColor = System.Drawing.Color.Black; glItem3.RowBorderColor = System.Drawing.Color.Black; glItem3.RowBorderSize = 0; glSubItem9.BackColor = System.Drawing.Color.Empty; glSubItem9.Checked = false; glSubItem9.ForceText = false; glSubItem9.ForeColor = System.Drawing.Color.Black; glSubItem9.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem9.ImageIndex = -1; glSubItem9.Text = "Glacial List 1.26"; glSubItem10.BackColor = System.Drawing.Color.Empty; glSubItem10.Checked = false; glSubItem10.ForceText = false; glSubItem10.ForeColor = System.Drawing.Color.Black; glSubItem10.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem10.ImageIndex = -1; glSubItem10.Text = "12/22/2003"; glSubItem11.BackColor = System.Drawing.Color.Empty; glSubItem11.Checked = false; glSubItem11.ForceText = false; glSubItem11.ForeColor = System.Drawing.Color.Black; glSubItem11.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem11.ImageIndex = -1; glSubItem11.Text = "80"; glSubItem12.BackColor = System.Drawing.Color.Empty; glSubItem12.Checked = false; glSubItem12.ForceText = false; glSubItem12.ForeColor = System.Drawing.Color.Black; glSubItem12.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem12.ImageIndex = 1; glSubItem12.Text = ""; glItem3.SubItems.AddRange(new GlacialComponents.Controls.GLSubItem[] { glSubItem9, glSubItem10, glSubItem11, glSubItem12 }); glItem3.Text = "Glacial List 1.26"; glItem4.BackColor = System.Drawing.Color.White; glItem4.ForeColor = System.Drawing.Color.Black; glItem4.RowBorderColor = System.Drawing.Color.Black; glItem4.RowBorderSize = 0; glSubItem13.BackColor = System.Drawing.Color.Empty; glSubItem13.Checked = false; glSubItem13.ForceText = false; glSubItem13.ForeColor = System.Drawing.Color.Black; glSubItem13.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem13.ImageIndex = -1; glSubItem13.Text = "Glacial List 1.1"; glSubItem14.BackColor = System.Drawing.Color.Empty; glSubItem14.Checked = false; glSubItem14.ForceText = false; glSubItem14.ForeColor = System.Drawing.Color.Black; glSubItem14.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem14.ImageIndex = -1; glSubItem14.Text = "7/9/2003"; glSubItem15.BackColor = System.Drawing.Color.Empty; glSubItem15.Checked = false; glSubItem15.ForceText = false; glSubItem15.ForeColor = System.Drawing.Color.Black; glSubItem15.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem15.ImageIndex = -1; glSubItem15.Text = "Done"; glSubItem16.BackColor = System.Drawing.Color.Empty; glSubItem16.Checked = false; glSubItem16.ForceText = false; glSubItem16.ForeColor = System.Drawing.Color.Black; glSubItem16.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem16.ImageIndex = 1; glSubItem16.Text = ""; glItem4.SubItems.AddRange(new GlacialComponents.Controls.GLSubItem[] { glSubItem13, glSubItem14, glSubItem15, glSubItem16 }); glItem4.Text = "Glacial List 1.1"; glItem5.BackColor = System.Drawing.Color.White; glItem5.ForeColor = System.Drawing.Color.Black; glItem5.RowBorderColor = System.Drawing.Color.Black; glItem5.RowBorderSize = 0; glSubItem17.BackColor = System.Drawing.Color.Empty; glSubItem17.Checked = false; glSubItem17.ForceText = false; glSubItem17.ForeColor = System.Drawing.Color.Black; glSubItem17.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem17.ImageIndex = -1; glSubItem17.Text = "Glacial List 1.0"; glSubItem18.BackColor = System.Drawing.Color.Empty; glSubItem18.Checked = false; glSubItem18.ForceText = false; glSubItem18.ForeColor = System.Drawing.Color.Black; glSubItem18.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem18.ImageIndex = -1; glSubItem18.Text = "6/13/2003"; glSubItem19.BackColor = System.Drawing.Color.Empty; glSubItem19.Checked = false; glSubItem19.ForceText = false; glSubItem19.ForeColor = System.Drawing.Color.Black; glSubItem19.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem19.ImageIndex = -1; glSubItem19.Text = "23"; glSubItem20.BackColor = System.Drawing.Color.Empty; glSubItem20.Checked = false; glSubItem20.ForceText = false; glSubItem20.ForeColor = System.Drawing.Color.Black; glSubItem20.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left; glSubItem20.ImageIndex = 0; glSubItem20.Text = ""; glItem5.SubItems.AddRange(new GlacialComponents.Controls.GLSubItem[] { glSubItem17, glSubItem18, glSubItem19, glSubItem20 }); glItem5.Text = "Glacial List 1.0"; this.glacialList1.Items.AddRange(new GlacialComponents.Controls.GLItem[] { glItem1, glItem2, glItem3, glItem4, glItem5 }); this.glacialList1.ItemWordWrap = false; this.glacialList1.Location = new System.Drawing.Point(0, 0); this.glacialList1.Name = "glacialList1"; this.glacialList1.Selectable = true; this.glacialList1.SelectedTextColor = System.Drawing.Color.White; this.glacialList1.SelectionColor = System.Drawing.Color.DarkBlue; this.glacialList1.ShowBorder = true; this.glacialList1.ShowFocusRect = false; this.glacialList1.Size = new System.Drawing.Size(496, 174); this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.MergeSort; this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White; this.glacialList1.TabIndex = 0; this.glacialList1.Text = "glacialList1"; // // imageList1 // this.imageList1.ImageSize = new System.Drawing.Size(80, 16); this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2 }); this.menuItem1.Text = "test"; // // menuItem2 // this.menuItem2.Index = 0; this.menuItem2.Text = "test2"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(496, 174); this.Controls.Add(this.glacialList1); this.Menu = this.mainMenu1; this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn4 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn5 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn6 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn7 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn8 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn9 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn10 = new GlacialComponents.Controls.GLColumn(); GlacialComponents.Controls.GLColumn glColumn11 = new GlacialComponents.Controls.GLColumn(); this.panel2 = new System.Windows.Forms.Panel(); this.claimWeekCalendar = new System.Windows.Forms.MonthCalendar(); this.calculateClaimButton = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.closeButton = new System.Windows.Forms.Button(); this.applyChangesButton = new System.Windows.Forms.Button(); this.logGlacialList = new GlacialComponents.Controls.GlacialList(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // panel2 // this.panel2.Controls.Add(this.claimWeekCalendar); this.panel2.Controls.Add(this.calculateClaimButton); this.panel2.Controls.Add(this.button1); this.panel2.Controls.Add(this.closeButton); this.panel2.Controls.Add(this.applyChangesButton); this.panel2.Dock = System.Windows.Forms.DockStyle.Right; this.panel2.Location = new System.Drawing.Point(1040, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(168, 597); this.panel2.TabIndex = 10; // // claimWeekCalendar // this.claimWeekCalendar.FirstDayOfWeek = System.Windows.Forms.Day.Saturday; this.claimWeekCalendar.Location = new System.Drawing.Point(8, 8); this.claimWeekCalendar.Name = "claimWeekCalendar"; this.claimWeekCalendar.TabIndex = 5; this.claimWeekCalendar.SizeChanged += new System.EventHandler(this.claimWeekCalendar_SizeChanged); this.claimWeekCalendar.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.claimWeekCalendar_DateSelected); // // calculateClaimButton // this.calculateClaimButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.calculateClaimButton.Location = new System.Drawing.Point(8, 200); this.calculateClaimButton.Name = "calculateClaimButton"; this.calculateClaimButton.Size = new System.Drawing.Size(152, 23); this.calculateClaimButton.TabIndex = 4; this.calculateClaimButton.Text = "Calculate"; this.calculateClaimButton.Click += new System.EventHandler(this.calculateClaimButton_Click); // // button1 // this.button1.Location = new System.Drawing.Point(8, 315); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(88, 23); this.button1.TabIndex = 3; this.button1.Text = "Show ..."; this.button1.Visible = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // closeButton // this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.closeButton.Location = new System.Drawing.Point(8, 568); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(152, 23); this.closeButton.TabIndex = 2; this.closeButton.Text = "Close"; this.closeButton.Click += new System.EventHandler(this.closeButton_Click); // // applyChangesButton // this.applyChangesButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.applyChangesButton.Enabled = false; this.applyChangesButton.Location = new System.Drawing.Point(8, 168); this.applyChangesButton.Name = "applyChangesButton"; this.applyChangesButton.Size = new System.Drawing.Size(152, 23); this.applyChangesButton.TabIndex = 0; this.applyChangesButton.Text = "Apply changes"; this.applyChangesButton.Click += new System.EventHandler(this.applyChangesButton_Click); // // logGlacialList // this.logGlacialList.AllowColumnResize = true; this.logGlacialList.AllowMultiselect = false; this.logGlacialList.AlternateBackground = System.Drawing.Color.DarkGreen; this.logGlacialList.AlternatingColors = false; this.logGlacialList.AutoHeight = true; this.logGlacialList.BackColor = System.Drawing.SystemColors.ControlLightLight; this.logGlacialList.BackgroundStretchToFit = true; glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn1.CheckBoxes = false; glColumn1.ImageIndex = -1; glColumn1.Name = "dateColumn"; glColumn1.NumericSort = false; glColumn1.Text = "Date"; glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn1.Width = 65; glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn2.CheckBoxes = false; glColumn2.ImageIndex = -1; glColumn2.Name = "customerColumn"; glColumn2.NumericSort = false; glColumn2.Text = "Customer"; glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn2.Width = 125; glColumn3.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn3.CheckBoxes = false; glColumn3.ImageIndex = -1; glColumn3.Name = "activityColumn"; glColumn3.NumericSort = false; glColumn3.Text = "Activity"; glColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn3.Width = 155; glColumn4.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn4.CheckBoxes = false; glColumn4.ImageIndex = -1; glColumn4.Name = "startTimeColumn"; glColumn4.NumericSort = false; glColumn4.Text = "Start time"; glColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn4.Width = 65; glColumn5.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn5.CheckBoxes = false; glColumn5.ImageIndex = -1; glColumn5.Name = "durationColumn"; glColumn5.NumericSort = false; glColumn5.Text = "Duration"; glColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn5.Width = 51; glColumn6.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn6.CheckBoxes = false; glColumn6.ImageIndex = -1; glColumn6.Name = "ticketColumn"; glColumn6.NumericSort = true; glColumn6.Text = "Ticket number"; glColumn6.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn6.Width = 80; glColumn7.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.CheckBox; glColumn7.CheckBoxes = false; glColumn7.ImageIndex = -1; glColumn7.Name = "standardClaimColumn"; glColumn7.NumericSort = false; glColumn7.Text = "Standard Claim"; glColumn7.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn7.Width = 86; glColumn8.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.CheckBox; glColumn8.CheckBoxes = false; glColumn8.ImageIndex = -1; glColumn8.Name = "plannedOvertimeColumn"; glColumn8.NumericSort = false; glColumn8.Text = "Planned Overtime"; glColumn8.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn8.Width = 99; glColumn9.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.TextBox; glColumn9.CheckBoxes = false; glColumn9.ImageIndex = -1; glColumn9.Name = "claimAccountColumn"; glColumn9.NumericSort = false; glColumn9.Text = "Account"; glColumn9.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn9.Width = 60; glColumn10.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.TextBox; glColumn10.CheckBoxes = false; glColumn10.ImageIndex = -1; glColumn10.Name = "claimWorkItemColumn"; glColumn10.NumericSort = false; glColumn10.Text = "Work Item"; glColumn10.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn10.Width = 70; glColumn11.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; glColumn11.CheckBoxes = false; glColumn11.ImageIndex = -1; glColumn11.Name = "commentColumn"; glColumn11.NumericSort = false; glColumn11.Text = "Comment"; glColumn11.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; glColumn11.Width = 180; this.logGlacialList.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] { glColumn1, glColumn2, glColumn3, glColumn4, glColumn5, glColumn6, glColumn7, glColumn8, glColumn9, glColumn10, glColumn11}); this.logGlacialList.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal; this.logGlacialList.Dock = System.Windows.Forms.DockStyle.Fill; this.logGlacialList.FullRowSelect = true; this.logGlacialList.GridColor = System.Drawing.Color.LightGray; this.logGlacialList.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth; this.logGlacialList.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid; this.logGlacialList.GridTypes = GlacialComponents.Controls.GLGridTypes.gridNormal; this.logGlacialList.HeaderHeight = 15; this.logGlacialList.HeaderVisible = true; this.logGlacialList.HeaderWordWrap = false; this.logGlacialList.HotColumnTracking = false; this.logGlacialList.HotItemTracking = false; this.logGlacialList.HotTrackingColor = System.Drawing.Color.LightGray; this.logGlacialList.HoverEvents = false; this.logGlacialList.HoverTime = 1; this.logGlacialList.ImageList = null; this.logGlacialList.ItemHeight = 17; this.logGlacialList.ItemWordWrap = false; this.logGlacialList.Location = new System.Drawing.Point(0, 0); this.logGlacialList.Name = "logGlacialList"; this.logGlacialList.Selectable = true; this.logGlacialList.SelectedTextColor = System.Drawing.Color.White; this.logGlacialList.SelectionColor = System.Drawing.Color.DarkBlue; this.logGlacialList.ShowBorder = true; this.logGlacialList.ShowFocusRect = false; this.logGlacialList.Size = new System.Drawing.Size(1040, 597); this.logGlacialList.SortType = GlacialComponents.Controls.SortTypes.InsertionSort; this.logGlacialList.SuperFlatHeaderColor = System.Drawing.Color.White; this.logGlacialList.TabIndex = 9; this.logGlacialList.ItemChangedEvent += new GlacialComponents.Controls.ChangedEventHandler(this.logGlacialList_ItemChangedEvent); this.logGlacialList.EmbeddedActivating += new GlacialComponents.Controls.GlacialList.EmbeddedActivatingEventHandler(this.logGlacialList_EmbeddedActivating); // // ClaimPrepareForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(1208, 597); this.Controls.Add(this.logGlacialList); this.Controls.Add(this.panel2); this.MinimumSize = new System.Drawing.Size(176, 288); this.Name = "ClaimPrepareForm"; this.Text = "ClaimForm"; this.Load += new System.EventHandler(this.ClaimForm_Load); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Constructor /// </summary> /// <param name="parent"></param> public GLItem( GlacialList parent ) { m_SubItems = new GLSubItemCollection( parent ); m_SubItems.Parent = parent; Parent = parent; // this has to be after the sub item set becuase it tries to use the subitems SubItems.ChangedEvent += new ChangedEventHandler( SubItemCollection_Changed ); // this will only happen when a new item is created }
/// <summary> /// Constructor that accepts parent pointer /// </summary> /// <param name="parent"></param> public GLSubItemCollection( GlacialList parent ) { m_Parent = parent; }
/// <summary> /// Constructor /// </summary> /// <param name="newParent"></param> public GLItemCollection( GlacialList newParent ) { Parent = newParent; }
public bool GLLoad(GLItem item, GLSubItem subItem, GlacialList listctrl) { m_item = item; m_subItem = subItem; m_Parent = listctrl; this.Text = subItem.Text; this.Items.Add( "i1" ); this.Items.Add( "i2" ); this.Items.Add( "i3" ); return true; }
public bool GLLoad(GLItem item, GLSubItem subItem, GlacialList listctrl) { this.Format = DateTimePickerFormat.Long; try { m_item = item; m_subItem = subItem; m_Parent = listctrl; this.Text = subItem.Text; //this.Value = subItem.Text; } catch ( Exception ex ) { Debug.WriteLine( ex.ToString() ); this.Text = DateTime.Now.ToString(); } return true; }
/// <summary> /// Constructor /// </summary> /// <param name="parent"></param> public GLColumnCollection( GlacialList parent ) { this.Parent = parent; }