protected virtual void RaiseOnColumnSettingsUpdated(ColumnSettingsUpdatedEventArgs e)
        {
            EventHandler <ColumnSettingsUpdatedEventArgs> handler = OnColumnSettingsUpdated;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected virtual void RaiseOnColumnSettingsUpdated(ColumnSettingsUpdatedEventArgs e)
        {
            EventHandler<ColumnSettingsUpdatedEventArgs> handler = OnColumnSettingsUpdated;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #3
0
        private void epc_OnColumnSettingsUpdated(object sender, ColumnSettingsUpdatedEventArgs e)
        {
            lvcSettings = (ListViewColumnsSettings)e.Settings.Clone();
            lvcSettings.SaveSettings();

            foreach (TabPage page in mainTabControl.TabPages)
            {
                if (page.TabIndex == 0) continue;
                var ctrl = ((EntityPropertiesControl)page.Controls[0]);
                if (ctrl.Name != e.Control.Name)
                {
                    ctrl.RefreshColumns(lvcSettings);
                }
            }
        }