public FormDataGrid_Cmd(iFormGrid idg, Hashtable adict, BindingListOptions bloption) : base() { InitializeComponent(); this.idg = idg; this.dict = adict; switch (bloption) { case BindingListOptions.AllowNewNo: this.customersBindingSource.AllowNew = false; break; case BindingListOptions.AllowModifyNo: this.customersBindingSource.AllowNew = false; this.dataGridView1.ReadOnly = true; break; case BindingListOptions.AllPri: break; } Initialize(); pasteclick.Click += new EventHandler(gridpaste_Click); copyclick.Click += new EventHandler(copyGrid_Click); dataGridView1.CellMouseClick += new DataGridViewCellMouseEventHandler(m_Grid_CellMouseClick); this.dataGridView1.ContextMenuStrip = this.contextMenuStrip1; this.tls_save.Click += Save_Click; this.tlSLoadNext.Click += LoadNext_Click; this.tslReadOnly.Click += ReadOnly_Click; this.tlsXls.Click += ExpXls_Click; this.tlsAddRow.Click += tlsAddRow_Click; this.tlsCalc.Click += tlsCalc_Click; this.tlsTotal.Click += tlsTotal_Click; this.tlsPrtSal.Click += tlsPrt_Click; }
public DataGridWF(iDataGridWF idg, Hashtable adict, bool pInitializeFlag, BindingListOptions bloption) { InitializeComponent(); this.idg = idg; this.dict = adict; switch (bloption) { case BindingListOptions.AllowNewNo: this.customersBindingSource.AllowNew = false; break; case BindingListOptions.AllowModifyNo: this.customersBindingSource.AllowNew = false; this.dataGridView1.ReadOnly = true; break; case BindingListOptions.AllowNewNoAndNoPromptReload: this.customersBindingSource.AllowNew = false; break; case BindingListOptions.none: break; } this.InitializeFlag = pInitializeFlag; if (InitializeFlag) { Initialize(); } }
public FormDataGrid_Cmd(iFormGrid idg, Hashtable adict, BindingListOptions bloption) { InitializeComponent(); this.idg = idg; this.dict = adict; switch (bloption) { case BindingListOptions.AllowNewNo: this.customersBindingSource.AllowNew = false; break; case BindingListOptions.AllowModifyNo: this.customersBindingSource.AllowNew = false; this.dataGridView1.ReadOnly = true; break; case BindingListOptions.AllPri: break; } Initialize(); pasteGrid.Click += new EventHandler(gridpaste_Click); copyGrid.Click += new EventHandler(copyGrid_Click); dataGridView1.CellMouseClick += new DataGridViewCellMouseEventHandler(m_Grid_CellMouseClick); this.dataGridView1.ContextMenuStrip = this.contextMenuStrip1; this.toolStripLabel1.Click += toolStripButton1_Click; this.toolStripLabel2.Click += toolStripButton2_Click; this.toolStripLabel3.Click += toolStripButton3_Click; }
public DataGridWFreadonly(iDataGridWF idg, Hashtable adict, BindingListOptions bloption) : base(idg, adict, bloption) { this.tslUpdate.Visible = false; this.toolStripLabel2.Visible = false; this.tslImportXls.Visible = false; }
public FormDataGrid_Cmd_Importxls(iFormGrid idg, Hashtable adict, BindingListOptions bloption) : base(idg, adict, bloption) { bindingNavigator1.Items.Add("importxls", null, tslImportXls_Click); }
public DataGridWF(iDataGridWF idg, Hashtable adict, BindingListOptions bloption) : this(idg, adict, true, bloption) { }