Пример #1
0
 public Form1(IDocumentObject obj)
 {
     InitializeComponent();
     _Obj = obj;
     //Control.CheckForIllegalCrossThreadCalls = false;
     CSHelper.getsqlconn();
 }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            CSHelper.getsqlconn();

            //不加这句话,有时候不按设计的列来排序,而且线程更新时设计的style没有了
            this.dgvTable.AutoGenerateColumns  = false;
            dgvTable.EnableHeadersVisualStyles = false;
            dgvTable.Columns["unuseSpace"].HeaderCell.Style.BackColor = Color.PaleTurquoise;
        }
Пример #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     CSHelper.getsqlconn();
 }