Пример #1
0
        void DataGridViewUserControl_GridColumnHeaderMouseClick(object sender, GridColumnHeaderMouseClickEventArgs e)
        {
            DataGridViewUserControl dgwuc = sender as DataGridViewUserControl;

            if (dgwuc != null)
            {
                dgwuc.onColumnHeaderMouseClick <KonacanPlasman>(e.DataGridViewCellMouseEventArgs);
            }
        }
Пример #2
0
        void DataGridViewUserControl_GridColumnHeaderMouseClick(object sender, GridColumnHeaderMouseClickEventArgs e)
        {
            DataGridViewUserControl dgwuc = sender as DataGridViewUserControl;

            if (dgwuc != null)
            {
                dgwuc.onColumnHeaderMouseClick <GimnasticarBilten>(e.DataGridViewCellMouseEventArgs);
            }
        }
        protected virtual void OnGridColumnHeaderMouseClick(
            GridColumnHeaderMouseClickEventArgs e)
        {
            // Save the delegate field in a temporary field for thread safety
            EventHandler <GridColumnHeaderMouseClickEventArgs> temp = GridColumnHeaderMouseClick;

            if (temp != null)
            {
                temp(this, e);
            }
        }