Ejemplo n.º 1
0
 private void frm_bang_gia_Load(object sender, EventArgs e)
 {
     this.WindowState = FormWindowState.Maximized;
     this.MinimumSize = this.Size;
     this.MaximumSize = this.Size;
     this.gvBangGia.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     gvBangGia.SetBounds(0, 0, this.Size.Width, (int)(this.Size.Height * 0.7));
     bangGiaDelegate += new BangGiaDelegate(startDependency);//tab
     //load data vao datagrid
     LoadData();
 }
Ejemplo n.º 2
0
        public void startDependency()
        {
            ISynchronizeInvoke i = (ISynchronizeInvoke)this;

            if (i.InvokeRequired)//tab
            {
                BangGiaDelegate dd = new BangGiaDelegate(startDependency);
                i.BeginInvoke(dd, null);
                return;
            }
            LoadData();
        }