public static void DataGridViewCellContentClick() { ExplorerForm.GetResultDataGridView().CommitEdit(System.Windows.Forms.DataGridViewDataErrorContexts.Commit); System.Windows.Forms.DataGridViewRow row = ExplorerForm.GetResultDataGridView().CurrentRow; bool bDeleteRowFlag = System.Convert.ToBoolean(row.Cells[Constants.COLUMN_DELETE_FLAG].Value, UserHelper.culture); switch (row.Cells[Constants.COLUMN_MATCHTYPE].Value) { case Constants.MATCH_ASSOCIATE: row.DefaultCellStyle.BackColor = (bDeleteRowFlag) ? Constants.COLOR_MATCH_ASSOCIATE_DELETE : Constants.COLOR_MATCH_ASSOCIATE; break; case Constants.MATCH_PRINCIPLE: row.DefaultCellStyle.BackColor = (bDeleteRowFlag) ? Constants.COLOR_MATCH_PRINCIPLE_DELETE : Constants.COLOR_MATCH_PRINCIPLE; break; default: row.DefaultCellStyle.BackColor = Constants.COLOR_DEFAULT; break; } SetRowBackgroundColor(row.Cells[Constants.COLUMN_ROW_ID].Value, row.Cells[Constants.COLUMN_MATCHTYPE].Value, bDeleteRowFlag); }
private static void SetRowBackgroundColor(object iRowID, object nvMatchType, bool bDeleteRowFlag) { if (iRowID == null) return; System.Windows.Forms.DataGridViewRow row = NAVForm.GetSheetDataGridView().Rows.Cast<System.Windows.Forms.DataGridViewRow>() .Where(x => !x.IsNewRow) .Where(x => ((DataRowView)x.DataBoundItem).Row.Field<int>(Constants.KEY_COLUMN).Equals(iRowID)) .FirstOrDefault(); if (GetResetPending(row)) return; switch (nvMatchType) { case Constants.MATCH_ASSOCIATE: row.DefaultCellStyle.BackColor = (bDeleteRowFlag) ? Constants.COLOR_MATCH_ASSOCIATE_DELETE : Constants.COLOR_MATCH_ASSOCIATE; break; case Constants.MATCH_PRINCIPLE: row.DefaultCellStyle.BackColor = (bDeleteRowFlag) ? Constants.COLOR_MATCH_PRINCIPLE_DELETE : Constants.COLOR_MATCH_PRINCIPLE; break; default: row.DefaultCellStyle.BackColor = Constants.COLOR_DEFAULT; break; } }
private static System.Windows.Forms.DataGridViewCell GetCell(int rowIndex, string propName, IGridBase gridBase) { System.Windows.Forms.DataGridView dgv = (System.Windows.Forms.DataGridView)gridBase.GetControl(); System.Windows.Forms.DataGridViewRow row = dgv.Rows[rowIndex]; return(row.Cells[propName]); }
public void getFromRow(System.Windows.Forms.DataGridViewRow row) { user_id = Convert.ToInt32(row.Cells["user_id"].Value.ToString()); user_name = row.Cells["user_name"].Value.ToString(); user_pass = row.Cells["user_pass"].Value.ToString(); }
private static Marca deDataRowAMarca(System.Windows.Forms.DataGridViewRow selectedRow) { string nombre = Convert.ToString(selectedRow.Cells["marc_nombre"].Value); int id = Convert.ToInt32(selectedRow.Cells["marc_id"].Value); return(new Marca(id, nombre)); }
private void dataGridView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { int currentMouseOverRow = wgrid.dataGridView1.HitTest(e.X, e.Y).RowIndex; if (currentMouseOverRow >= 0) { wgrid.dataGridView1.Rows[currentMouseOverRow].Selected = true; System.Windows.Forms.DataGridViewRow row = wgrid.dataGridView1.Rows[currentMouseOverRow]; string queueId = row.Cells["TRANS ID"].Value.ToString(); wgrid.dataGridView1.Focus(); System.Windows.Forms.MenuItem men = new System.Windows.Forms.MenuItem(queueId); men.Enabled = false; System.Windows.Forms.MenuItem menuItemHold = new System.Windows.Forms.MenuItem("Hold"); menuItemHold.Click += menuItem_Click; menuItemHold.Tag = row; System.Windows.Forms.MenuItem menuItemResume = new System.Windows.Forms.MenuItem("Resume"); menuItemResume.Click += menuItem_Click; menuItemResume.Tag = row; m.MenuItems.Clear(); m.MenuItems.Add(men); m.MenuItems.Add(menuItemHold); m.MenuItems.Add(menuItemResume); m.Show(wgrid.dataGridView1, new System.Drawing.Point(e.X, e.Y)); } } }
void menuItem_Click(object sender, EventArgs e) { try { System.Windows.Forms.MenuItem item = (System.Windows.Forms.MenuItem)sender; System.Windows.Forms.DataGridViewRow row = (System.Windows.Forms.DataGridViewRow)item.Tag; int queueId = int.Parse(row.Cells["TRANS ID"].Value.ToString()); switch (item.Text) { case "Hold": objERPDba.SetHoldReqFlagStatus(queueId, true); break; case "Resume": objERPDba.SetHoldReqFlagStatus(queueId, false); break; default: break; } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void SetRowContentsFromBreakState(System.Windows.Forms.DataGridViewRow row) { if (_context.BreakData == null) { return; } if (row.Index == 0) { RenderRowData(row, _context.Options.DebuggerOptions.GroupSize, _context.BreakData.GetSystem(), _context.Options.VisualizerAppearance.BinHexSeparator, _context.Options.VisualizerAppearance.IntUintSeparator, _context.Options.VisualizerAppearance.BinHexLeadingZeroes); } else { var watch = (string)row.Cells[VisualizerTable.NameColumnIndex].Value; var watchData = _context.BreakData.GetWatch(watch); if (watchData != null) { RenderRowData(row, _context.Options.DebuggerOptions.GroupSize, watchData, _context.Options.VisualizerAppearance.BinHexSeparator, _context.Options.VisualizerAppearance.IntUintSeparator, _context.Options.VisualizerAppearance.BinHexLeadingZeroes); } else { EraseRowData(row, _table.DataColumnCount); } } }
private static void EraseRowData(System.Windows.Forms.DataGridViewRow row, int columnCount) { for (int i = 0; i < columnCount; ++i) { row.Cells[i + VisualizerTable.DataColumnOffset].Value = ""; } }
/// <summary> /// Добавление результатов проченитя в таблицу /// </summary> /// <param name="sender"></param> private void CallBack(object Marker, byte[] Buffer, bool Error) { System.Windows.Forms.DataGridViewRow m_marker = (System.Windows.Forms.DataGridViewRow)Marker; if (Buffer != null && !Error) { if (_engine.Parameters.InverseByteOrder) { Array.Reverse(Buffer); } int Value = Kontel.Relkon.AppliedMath.BytesToInt(Buffer); try { //m_marker.Cells[1].Value = (_solution.GetProcessByName((string)m_marker.Cells[0].Value)).GetSituationByAddress(Value).Name; m_marker.Cells[1].Value = "SIT" + Value;; } catch { m_marker.Cells[1].Value = "***"; } } else { m_marker.Cells[1].Value = "***"; } }
public Oprema(System.Windows.Forms.DataGridViewRow row) { this.ID = int.Parse(row.Cells["Šifra"].Value.ToString()); this.Naziv = row.Cells["Oprema"].Value.ToString(); this.Kolicina = int.Parse(row.Cells["Količina"].Value.ToString()); this.Godiste = int.Parse(row.Cells["Godište"].Value.ToString()); }
public static void AddRow(Dictionary <string, string> abbreviations, System.Windows.Forms.DataGridViewRow row) { if (!string.IsNullOrEmpty(row.Cells[0].Value as string)) { abbreviations.Add(row.Cells[0].Value.ToString().ToLower(), row.Cells[1].Value.ToString().ToLower()); } }
public void getFromRow(System.Windows.Forms.DataGridViewRow row) { eqp_id = Convert.ToInt32(row.Cells["eqp_id"].Value.ToString()); eqp_name = row.Cells["eqp_name"].Value.ToString(); eqp_info = row.Cells["eqp_info"].Value.ToString(); sts = Convert.ToInt32(row.Cells["sts"].Value.ToString()); }
private void MainView_PositionViewDoubleClick(object sender, System.Windows.Forms.MouseEventArgs e) { System.Windows.Forms.DataGridViewRow row = (sender as System.Windows.Forms.DataGridViewSelectedRowCollection)[0]; if (row != null) { //MainView.ErrorMsg = "Mouse position : " + e.Location.ToString() + "\r\n" + row.Cells["instrumentIDDataGridViewTextBoxColumn3"].ToString() + "\r\n" + "平仓方向:" + row.Cells["instrumentIDDataGridViewTextBoxColumn3"].Value + " " + ReverseDirection((Direction)row.Cells["directionDataGridViewTextBoxColumn2"].Value).ToString(); } }
public void getFromRow(System.Windows.Forms.DataGridViewRow row) { cmd_id = Convert.ToInt32(row.Cells["cmd_id"].Value.ToString()); eqp_id = Convert.ToInt32(row.Cells["eqp_id"].Value.ToString()); cmd_text = row.Cells["cmd_text"].Value.ToString(); cmd_time = Convert.ToInt32(row.Cells["cmd_time"].Value.ToString()); }
public void getFromRow(System.Windows.Forms.DataGridViewRow row) { sdt_id = Convert.ToInt32(row.Cells["sdt_id"].Value.ToString()); sdt_name = row.Cells["sdt_name"].Value.ToString(); sdt_type = Convert.ToInt32(row.Cells["sdt_type"].Value.ToString()); sts = Convert.ToInt32(row.Cells["sts"].Value.ToString()); }
private void InitialiseDataComponents() { System.Windows.Forms.DataGridViewRow row = NAVPanelForm.GetAbbreviationsDataGridView().CurrentRow; WordTextBox.Text = (string)row.Cells[Constants.COLUMN_ABBREVIATION_WORD].Value; AbbreviationTextBox.Text = (string)row.Cells[Constants.COLUMN_ABBREVIATION].Value; AbbreviationDescriptionRichTextBox.Text = (string)row.Cells[Constants.COLUMN_ABBREVIATION_DESCRIPTION].Value; AlwaysUseComboBox.Checked = System.Convert.ToBoolean(row.Cells[Constants.COLUMN_ABBREVIATION_FLAG].Value, UserHelper.culture); }
private static void RenderRowData(System.Windows.Forms.DataGridViewRow row, uint groupSize, WatchView data, uint binHexSeparator, uint intSeparator, bool leadingZeroes) { var variableType = VariableTypeUtils.TypeFromShortName(row.HeaderCell.Value.ToString()); for (int i = 0; i < groupSize; i++) { row.Cells[i + VisualizerTable.DataColumnOffset].Value = DataFormatter.FormatDword(variableType, data[i], binHexSeparator, intSeparator, leadingZeroes); } }
public void getFromRow(System.Windows.Forms.DataGridViewRow row) { er_id = Convert.ToInt32(row.Cells["er_id"].Value.ToString()); eqp_id = Convert.ToInt32(row.Cells["eqp_id"].Value.ToString()); er_uuid = row.Cells["er_uuid"].Value.ToString(); er_reportname = row.Cells["er_reportname"].Value.ToString(); typ = Convert.ToInt32(row.Cells["typ"].Value.ToString()); sts = Convert.ToInt32(row.Cells["sts"].Value.ToString()); }
public void getFromRow(System.Windows.Forms.DataGridViewRow row) { ea_id = Convert.ToInt32(row.Cells["ea_id"].Value.ToString()); eqp_id = Convert.ToInt32(row.Cells["eqp_id"].Value.ToString()); ea_uuid = row.Cells["ea_uuid"].Value.ToString(); ea_name = row.Cells["ea_name"].Value.ToString(); ea_alcd = row.Cells["ea_alcd"].Value.ToString(); ea_altext = row.Cells["ea_altext"].Value.ToString(); sts = Convert.ToInt32(row.Cells["sts"].Value.ToString()); }
public printCallSlipModel(System.Windows.Forms.DataGridViewRow dr) { this.num = dr.Cells["num"].Value.ToString(); this.name = dr.Cells["name"].Value.ToString(); this.specifications = dr.Cells["specifications"].Value.ToString(); this.metering = dr.Cells["metering"].Value.ToString(); this.subMetering = dr.Cells["subMetering"].Value.ToString(); this.quantity = dr.Cells["quantity"].Value.ToString(); this.subquantity = dr.Cells["subquantity"].Value.ToString(); this.conversion = dr.Cells["conversion"].Value.ToString(); }
public static void PeopleDelete(System.Windows.Forms.DataGridViewRow dgvr) { using (SqlConnection connection = new SqlConnection(connectionString)) { connection.Open(); SqlCommand pcmd = new SqlCommand("PersonDeleteById", connection); pcmd.CommandType = CommandType.StoredProcedure; pcmd.Parameters.AddWithValue("@PersonId", System.Convert.ToInt32(dgvr.Cells["txtPersonId"].Value)); pcmd.ExecuteNonQuery(); } }
private void DisplaySupplier() { for (int i = supplier.dataGridView1.RowCount - 1; i >= 0; i--) { System.Windows.Forms.DataGridViewRow row = supplier.dataGridView1.Rows[i]; if (RowNameIsNotTextSearch(i)) { supplier.dataGridView1.Rows.Remove(row); } } }
private static bool GetResetPending(System.Windows.Forms.DataGridViewRow row) { if (row == null) return true; if (row.IsNewRow) { if (row.Index == 0) ExplorerForm.ResetExplorerForm(); return true; } return false; }
internal static Crucero deDataRowACrucero(System.Windows.Forms.DataGridViewRow selectedRow) { string id = Convert.ToString(selectedRow.Cells["cruc_id"].Value); int estado = Convert.ToInt32(selectedRow.Cells["cruc_estado"].Value); string nombre = Convert.ToString(selectedRow.Cells["cruc_nombre"].Value); string modelo = Convert.ToString(selectedRow.Cells["cruc_modelo"].Value); Marca marca = deDataRowAMarca(selectedRow); //TODO la fecha en null rompe //DateTime fechaAlta = Convert.ToDateTime(ds.Tables[0].Rows[0]["cruc_fecha_alta"]); //TODO DateTime fechaAlta = Convert.ToDateTime(System.Configuration.ConfigurationManager.AppSettings["fechaSistema"]); return(new Crucero(id, nombre, modelo, fechaAlta, marca, estado));//TODO throw new NotImplementedException(); }
public static System.Windows.Forms.DataGridViewSelectedRowCollection get_SelectedRowsTSS( System.Windows.Forms.DataGridView target) { System.Windows.Forms.DataGridViewSelectedRowCollection selectedRows = target.SelectedRows;; // System.Windows.Forms.DataGridViewSelectedRowCollection selectedRows = new System.Windows.Forms.DataGridViewSelectedRowCollection; //Accessor acc = ReflectionAccessor.Wrap(selectedRows); target.Rows.Add(); System.Windows.Forms.DataGridViewRow row1 = target.Rows[0]; row1.Cells[0].Value = "1"; //System.Windows.Forms.DataGridViewRow[] array = new System.Windows.Forms.DataGridViewRow[1]; // array.SetValue(row1, 0); // acc.Call("Insert", 0, row1); selectedRows.Insert(0, row1); return(selectedRows); }
public int Compare(object x, object y) { System.Windows.Forms.DataGridViewRow DataGridViewRow1 = x as System.Windows.Forms.DataGridViewRow; System.Windows.Forms.DataGridViewRow DataGridViewRow2 = y as System.Windows.Forms.DataGridViewRow; string xStr = DataGridViewRow1 != null ? DataGridViewRow1.Cells["Column1"].Value.ToString().ToLower() : x.ToString(); string yStr = DataGridViewRow2 != null ? DataGridViewRow2.Cells["Column1"].Value.ToString().ToLower() : y.ToString(); if (xStr == "") { return(0); } if (xStr == yStr) { return(0); } string[] x1, y1; if (!table.TryGetValue(xStr, out x1)) { x1 = System.Text.RegularExpressions.Regex.Split(xStr.Replace(" ", ""), "([0-9]+)"); table.Add(xStr, x1); } if (!table.TryGetValue(yStr, out y1)) { y1 = System.Text.RegularExpressions.Regex.Split(yStr.Replace(" ", ""), "([0-9]+)"); table.Add(yStr, y1); } for (int i = 0; i < x1.Length && i < y1.Length; i++) { if (x1[i] != y1[i]) { return(PartCompare(x1[i], y1[i])); } } if (y1.Length > x1.Length) { return(1); } else if (x1.Length > y1.Length) { return(-1); } else { return(0); } }
/// <summary> /// 将一个DataGridViewRow转换为对应实体类,需满足类型T的字段名是DatagridView的PropertyName属性 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dr"></param> /// <returns></returns> public static T ToModel <T>(this System.Windows.Forms.DataGridViewRow dr) where T : class, new() { if (dr == null) { return(null); } var list = new List <System.Windows.Forms.DataGridViewRow>() { dr }.GridToList <T>(); if (list == null || list.Count == 0) { return(null); } return(list[0]); }
public void XmlDB2DataGridView(ref System.Windows.Forms.DataGridView dgv) { dgv.Rows.Clear(); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(mXmlDBPath); XmlNodeList root = xmlDoc.ChildNodes; foreach (XmlNode usernode in root[xmlDoc.ChildNodes.Count - 1].ChildNodes) { UserInfo curUser = new UserInfo(); curUser.XmlNode2UserInfo(usernode); System.Windows.Forms.DataGridViewRow row = new System.Windows.Forms.DataGridViewRow(); object[] objects = new string[16]; objects.Initialize(); //objects.SetValue(usernode.Attributes.GetNamedItem("id").InnerText.ToString(), 0); objects.SetValue(curUser.mId.ToString(), 0); objects.SetValue(curUser.mFirstName, 1); objects.SetValue(curUser.mLastName, 2); objects.SetValue(curUser.mFatherName, 3); objects.SetValue(curUser.mMotherName, 4); objects.SetValue(curUser.mB_Date.ToShortDateString(), 5); objects.SetValue(curUser.mCity, 6); objects.SetValue(curUser.mStreet, 7); objects.SetValue(curUser.mBuildingNum.ToString(), 8); objects.SetValue(curUser.mAppNum.ToString(), 9); objects.SetValue(curUser.mEMail, 10); objects.SetValue(curUser.mPhones, 11); objects.SetValue(curUser.mApplication, 12); // application objects.SetValue(curUser.mSex.ToString(), 13); // sex objects.SetValue(curUser.mPassedRect.ToString(), 14); // passed rectify objects.SetValue(curUser.mReachMaster.ToString(), 15); // reach master //objects.SetValue(Enums.EnumProvider.Instance.GetSexEnumFromDescription(curUser.mSex.ToString()), 12); //objects.SetValue(curUser.mApplication, 13); //objects.SetValue(Enums.EnumProvider.Instance.GetPassedRectificationEnumFromDescription(curUser.mPassedRect.ToString()), 14); dgv.Rows.Insert(dgv.Rows.Count, objects); dgv.Update(); } }
/// <summary> /// Add row from field array /// </summary> /// <param name="table">Migradoc Table</param> /// <param name="fields">field values array</param> /// <param name="style">style of row</param> /// <returns></returns> public static Row addRowFromGridViewRow(Table table, System.Windows.Forms.DataGridViewRow gvr, string style) { Paragraph p = null; Row currentRow = table.AddRow(); int pdfcol = 0; for (int i = 0; i < gvr.Cells.Count; i++) { if (gvr.Cells[i].Visible) { p = currentRow.Cells[pdfcol].AddParagraph(gvr.Cells[i].EditedFormattedValue.ToString()); p.Style = style; pdfcol++; } } return(currentRow); }
public void creaTabla(System.Windows.Forms.DataGridView dgv) { System.Windows.Forms.DataGridViewRow r; List<Token> listaCompleta = this.listTerm.Cast<Token>().ToList().Union(this.listNoTerm).ToList(); listaCompleta.Add(new Token("$")); if (dgv != null) { foreach (Token t in listaCompleta) { dgv.Columns.Add(t.token, t.token); } foreach (Estado e in this.listEdos) { r = new System.Windows.Forms.DataGridViewRow(); r.HeaderCell.Value = e.id.ToString(); dgv.Rows.Add(r); foreach (Produccion p in e.listProd) { if (p.punto >= p.listProd.Count) { foreach (Term t in p.listTokenBusq) { dgv.Rows[e.id].Cells[listaCompleta.FindIndex(x => x.token.Equals(t.token))].Value = "r" + this.listProd.FindIndex(a => a.completa().Equals(p.completa())); } } } foreach (Arista a in e.listAristas) { if (a.token.GetType().Name.Equals("NoTerm")) { dgv.Rows[e.id].Cells[listaCompleta.FindIndex(x => x.token.Equals(a.token.token))].Value = a.estadoDest.id.ToString(); } else { dgv.Rows[e.id].Cells[listaCompleta.FindIndex(x => x.token.Equals(a.token.token))].Value = "s" + a.estadoDest.id.ToString(); } } } dgv.Rows[1].Cells["$"].Value = "Aceptar"; } }
/// <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(); System.Windows.Forms.DataGridViewRow dataGridViewRow1 = new System.Windows.Forms.DataGridViewRow(); this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItem_hideLike = new System.Windows.Forms.ToolStripMenuItem(); this.locationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel_status = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripProgressBar = new System.Windows.Forms.ToolStripProgressBar(); this.menuStrip = new System.Windows.Forms.MenuStrip(); this.logToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.filteredDataGridView = new FilteredDataGridView(); this.contextMenuStrip.SuspendLayout(); this.statusStrip.SuspendLayout(); this.menuStrip.SuspendLayout(); this.SuspendLayout(); // // contextMenuStrip // this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem_hideLike, this.locationToolStripMenuItem}); this.contextMenuStrip.Name = "contextMenuStrip1"; this.contextMenuStrip.Size = new System.Drawing.Size(171, 48); // // locationToolStripMenuItem // this.locationToolStripMenuItem.Name = "locationToolStripMenuItem"; this.locationToolStripMenuItem.Size = new System.Drawing.Size(170, 22); this.locationToolStripMenuItem.Text = "Location"; this.locationToolStripMenuItem.Click += new System.EventHandler(this.locationToolStripMenuItem_Click); // // statusStrip // this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel_status, this.toolStripProgressBar}); this.statusStrip.Location = new System.Drawing.Point(0, 305); this.statusStrip.Name = "statusStrip"; this.statusStrip.Size = new System.Drawing.Size(843, 22); this.statusStrip.TabIndex = 0; this.statusStrip.Text = "statusStrip1"; // // toolStripStatusLabel_status // this.toolStripStatusLabel_status.Name = "toolStripStatusLabel_status"; this.toolStripStatusLabel_status.Size = new System.Drawing.Size(726, 17); this.toolStripStatusLabel_status.Spring = true; this.toolStripStatusLabel_status.Text = "OK"; this.toolStripStatusLabel_status.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // toolStripProgressBar // this.toolStripProgressBar.Name = "toolStripProgressBar"; this.toolStripProgressBar.Size = new System.Drawing.Size(100, 16); // // menuStrip // this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.logToolStripMenuItem}); this.menuStrip.Location = new System.Drawing.Point(0, 0); this.menuStrip.Name = "menuStrip"; this.menuStrip.Size = new System.Drawing.Size(843, 24); this.menuStrip.TabIndex = 1; this.menuStrip.Text = "menuStrip1"; // // logToolStripMenuItem // this.logToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.closeToolStripMenuItem}); this.logToolStripMenuItem.Name = "logToolStripMenuItem"; this.logToolStripMenuItem.Size = new System.Drawing.Size(39, 20); this.logToolStripMenuItem.Text = "Log"; // // closeToolStripMenuItem // this.closeToolStripMenuItem.Name = "closeToolStripMenuItem"; this.closeToolStripMenuItem.Size = new System.Drawing.Size(103, 22); this.closeToolStripMenuItem.Text = "Close"; this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click); // // filteredDataGridView // this.filteredDataGridView.DataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells; this.filteredDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.filteredDataGridView.Dock = System.Windows.Forms.DockStyle.Fill; this.filteredDataGridView.Location = new System.Drawing.Point(0, 24); this.filteredDataGridView.Name = "filteredDataGridView"; dataGridViewRow1.ContextMenuStrip = this.contextMenuStrip; this.filteredDataGridView.DataGridView.RowTemplate = dataGridViewRow1; this.filteredDataGridView.Size = new System.Drawing.Size(843, 281); this.filteredDataGridView.TabIndex = 3; // // LogViewer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(843, 327); this.Controls.Add(this.filteredDataGridView); this.Controls.Add(this.statusStrip); this.Controls.Add(this.menuStrip); this.MainMenuStrip = this.menuStrip; this.Name = "LogViewer"; this.Text = "LogViewer"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LogViewer_FormClosing); this.contextMenuStrip.ResumeLayout(false); this.statusStrip.ResumeLayout(false); this.statusStrip.PerformLayout(); this.menuStrip.ResumeLayout(false); this.menuStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }