Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         iDataGridWF idg = new iDataGridWF(richTextBox1.Text, "TempTable", _conn);
         DataGridWF  dg  = new DataGridWF(idg, null);
         dg.ShowMDIchild(this.MdiParent);
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message + '\n' + er.Source);
     }
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
 public xmlfileDGWF(iDataGridWF idg, Hashtable adict) : base(idg, adict)
 {
     this.tslUpdate.Visible       = false;
     this.toolStripLabel2.Visible = false;
 }
Exemplo n.º 5
0
 public DataGridWF(iDataGridWF idg, Hashtable adict, bool pInitializeFlag)
     : this(idg, adict, pInitializeFlag, BindingListOptions.none)
 {
 }
Exemplo n.º 6
0
 public DataGridWF(iDataGridWF idg, Hashtable adict, BindingListOptions bloption)
     : this(idg, adict, true, bloption)
 {
 }
Exemplo n.º 7
0
 public DataGridWF(iDataGridWF idg, Hashtable adict)
     : this(idg, adict, BindingListOptions.none)
 {
 }