Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public FormDataGrid_Cmd_Importxls(iFormGrid idg, Hashtable adict, BindingListOptions bloption)
     : base(idg, adict, bloption)
 {
     bindingNavigator1.Items.Add("importxls", null, tslImportXls_Click);
 }