public void OnAddColumn(object sender, EventArgs e) { DesignerTransaction designerTransaction = (base.Component.Site.GetService(typeof(IDesignerHost)) as IDesignerHost).CreateTransaction("DataGridViewAddColumnTransactionString"); DialogResult dialogResult = DialogResult.Cancel; Form dialog = ExtendedDataGridViewDesigner.CreateColumnAdd((DataGridView)base.Component); try { dialogResult = this.ShowDialog(dialog); } finally { if (dialogResult == DialogResult.OK) { designerTransaction.Commit(); } else { designerTransaction.Cancel(); } } }
public DataGridViewChooseDataSourceActionList(ExtendedDataGridViewDesigner owner) : base(owner.Component) { m_owner = owner; }
public DataGridViewPropertiesActionList(ExtendedDataGridViewDesigner owner) : base(owner.Component) { m_owner = owner; }
public DataGridViewColumnEditingActionList(ExtendedDataGridViewDesigner owner) : base(owner.Component) { m_owner = owner; }