コード例 #1
0
        public BasicLightSetupUserControl(IAfterglowPlugin plugin)
        {
            InitializeComponent();
            this._plugin = plugin as BasicLightSetup;

            dgvRegions.AllowUserToOrderColumns  = false;
            dgvRegions.AllowUserToResizeColumns = false;
            dgvRegions.AllowUserToResizeRows    = false;
            dgvRegions.ShowEditingIcon          = false;
            dgvRegions.AllowUserToAddRows       = false;
            dgvRegions.AllowUserToDeleteRows    = false;
            dgvRegions.RowHeadersWidthSizeMode  = DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders | DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dgvRegions.CellEnter      += new DataGridViewCellEventHandler(dgvRegions_CellEnter);
            dgvRegions.KeyDown        += new KeyEventHandler(dgvRegions_KeyDown);
            dgvRegions.CellValidating += new DataGridViewCellValidatingEventHandler(dgvRegions_CellValidating);
            dgvRegions.CellValidated  += new DataGridViewCellEventHandler(dgvRegions_CellValidated);
            dgvRegions.PreviewKeyDown += new PreviewKeyDownEventHandler(dgvRegions_PreviewKeyDown);
            //dgvRegions.
            dgvRegions.Resize += new EventHandler(dgvRegions_Resize);
        }
コード例 #2
0
        public BasicLightSetupUserControl(IAfterglowPlugin plugin)
        {
            InitializeComponent();
            this._plugin = plugin as BasicLightSetup;

            dgvRegions.AllowUserToOrderColumns = false;
            dgvRegions.AllowUserToResizeColumns = false;
            dgvRegions.AllowUserToResizeRows = false;
            dgvRegions.ShowEditingIcon = false;
            dgvRegions.AllowUserToAddRows = false;
            dgvRegions.AllowUserToDeleteRows = false;
            dgvRegions.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders | DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dgvRegions.CellEnter += new DataGridViewCellEventHandler(dgvRegions_CellEnter);
            dgvRegions.KeyDown += new KeyEventHandler(dgvRegions_KeyDown);
            dgvRegions.CellValidating += new DataGridViewCellValidatingEventHandler(dgvRegions_CellValidating);
            dgvRegions.CellValidated += new DataGridViewCellEventHandler(dgvRegions_CellValidated);
            dgvRegions.PreviewKeyDown += new PreviewKeyDownEventHandler(dgvRegions_PreviewKeyDown);
            //dgvRegions.
            dgvRegions.Resize += new EventHandler(dgvRegions_Resize);
        }