Ejemplo n.º 1
0
        void treeGridViewTags_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
        {
            if (e.RowIndex <= treeGridViewTags.Rows.Count)
            {
                TagMacro macro = treeGridViewTags.Nodes[e.RowIndex].Tag as TagMacro;

                e.Cancel = e.ColumnIndex != TAGS_VALUE_COLUMN;
            }
        }
Ejemplo n.º 2
0
        void treeGridViewTags_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            TagMacro macro = treeGridViewTags.Nodes[e.RowIndex].Tag as TagMacro;
            DataGridViewComboBoxCell cell = treeGridViewTags.Nodes[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewComboBoxCell;

            macro.Macro = cell.Value != null?cell.Value.ToString() : string.Empty;

            if (_OldValue.ToString() != macro.Macro)
            {
                _Modified = true;
            }
        }
Ejemplo n.º 3
0
        void treeGridViewTags_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            TagMacro macro = treeGridViewTags.Rows[e.RowIndex].Tag as TagMacro;
            DataGridViewComboBoxCell cell = treeGridViewTags.Rows[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewComboBoxCell;

            if (cell != null && macro != null)
            {
                macro.Macro = cell.Value != null?cell.Value.ToString() : string.Empty;

                if (_oldValue != macro.Macro)
                {
                    SetDirty();
                }
            }
        }