private void PickPredecessorForm_Shown(object sender, EventArgs e) { grid.RowCount = m_Lines.Length; for (int i = 0; i < m_Lines.Length; i++) { LineFeature line = m_Lines[i]; Operation op = line.Creator; DataGridViewRow row = grid.Rows[i]; row.Tag = line; row.Cells["imageColumn"].Value = GetImage(op, line); row.Cells["opIdColumn"].Value = op.InternalId; row.Cells["operationColumn"].Value = op.Name; row.Cells["createdColumn"].Value = op.Session.StartTime.ToShortDateString(); row.Cells["editorColumn"].Value = op.Session.User; // If the line was created by a connection path, display the precision. if (op is PathOperation) { PathOperation path = (PathOperation)op; row.Cells["precisionColumn"].Value = path.GetPrecision(); } } grid.CurrentCell = null; }
private void ListOperationsForm_Shown(object sender, EventArgs e) { grid.RowCount = m_Edits.Length; for (int i = 0; i < m_Edits.Length; i++) { Operation op = m_Edits[i]; DataGridViewRow row = grid.Rows[i]; row.Tag = op; row.Cells["opIdColumn"].Value = op.InternalId; row.Cells["operationColumn"].Value = op.Name; row.Cells["createdColumn"].Value = op.Session.StartTime.ToShortDateString(); row.Cells["editorColumn"].Value = op.Session.User; // If the line was created by a connection path, display the precision. if (op is PathOperation) { PathOperation path = (PathOperation)op; row.Cells["precisionColumn"].Value = path.GetPrecision(); } } grid.CurrentCell = null; }