Esempio n. 1
0
        public FormLogin()
        {
            InitializeComponent();

            //初始化http
            http = new HttpRequestClient();

            GetPic();
        }
Esempio n. 2
0
        public FormSchool()
        {
            //设置重绘方式
            SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();

            //初始化组件
            InitializeComponent();

            //防止大数据滚动闪烁
            Type         dgvType = gridViewSchool.GetType();
            PropertyInfo pi      = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic);

            pi.SetValue(gridViewSchool, true, null);

            //初始化http
            http = new HttpRequestClient(true);
        }