예제 #1
0
        void CtxEditFieldClick(object sender, System.EventArgs e)
        {
            var uCol = colClicked as UserColumn;

            using (var fieldEditor = new FieldEditor())
            {
                fieldEditor.Field = uCol.Field.Clone();
                var result = fieldEditor.ShowDialog(this);
                if (result == DialogResult.OK)
                {
                    uCol.Field = fieldEditor.Field;
                }
            }
        }
예제 #2
0
        void CtxEditFieldClick(object sender, System.EventArgs e)
        {
            var col = colClicked as XDataGridViewColumn;

            if (col != null)
            {
                using (var fieldEditor = new FieldEditor())
                {
                    fieldEditor.Field = col.Field.Clone();
                    var dr = fieldEditor.ShowDialog(this);
                    if (dr == DialogResult.OK)
                    {
                        col.Field = fieldEditor.Field;
                    }
                }
            }
        }