コード例 #1
0
 public DGVStorageResourcesHandle(DataGridView dgv,
                                  DataGridViewComboBoxColumnOutpost cbcOutposts,
                                  DataGridViewComboBoxColumnResources cbcResources) : base(dgv)
 {
     this._cbcResources = cbcResources;
     this._cbcOutposts  = cbcOutposts;
 }
コード例 #2
0
        public DGVBuildingsHandle(DataGridView dgv, DataGridViewComboBoxColumnOutpost cbcOutpost, ref BuildingsDataTableHandler buildingsDataTableHandler) : base(dgv)
        {
            this._cbcOutpost = cbcOutpost;
            this._buildingsDataTableHandler = buildingsDataTableHandler;

            _dgv.CellMouseEnter += new System.Windows.Forms.DataGridViewCellEventHandler(CellMouseEnter);
            contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { убратьЗначениеToolStripMenuItem });
            contextMenuStrip.Name                  = "contextMenuStrip";
            contextMenuStrip.Size                  = new System.Drawing.Size(181, 48);
            contextMenuStrip.Opening              += ContextMenuStrip_Opening;
            убратьЗначениеToolStripMenuItem.Name   = "убратьЗначениеToolStripMenuItem";
            убратьЗначениеToolStripMenuItem.Size   = new System.Drawing.Size(180, 22);
            убратьЗначениеToolStripMenuItem.Text   = "Убрать значение";
            убратьЗначениеToolStripMenuItem.Click += new System.EventHandler(this.SetNull);
        }