コード例 #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;
        }
コード例 #2
0
ファイル: DataGridWF.cs プロジェクト: eddylin2015/ES_FORMS
        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();
            }
        }
コード例 #3
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;
        }
コード例 #4
0
 public DataGridWFreadonly(iDataGridWF idg, Hashtable adict, BindingListOptions bloption) : base(idg, adict, bloption)
 {
     this.tslUpdate.Visible       = false;
     this.toolStripLabel2.Visible = false;
     this.tslImportXls.Visible    = false;
 }
コード例 #5
0
 public FormDataGrid_Cmd_Importxls(iFormGrid idg, Hashtable adict, BindingListOptions bloption)
     : base(idg, adict, bloption)
 {
     bindingNavigator1.Items.Add("importxls", null, tslImportXls_Click);
 }
コード例 #6
0
ファイル: DataGridWF.cs プロジェクト: eddylin2015/ES_FORMS
 public DataGridWF(iDataGridWF idg, Hashtable adict, BindingListOptions bloption)
     : this(idg, adict, true, bloption)
 {
 }