/// <summary> /// 初始化事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmSignInCreate_Load(object sender, EventArgs e) { lblDate.Text = DateTime.Now.ToString(); Gps1.GetGps(); setbtnColor(); setbtnColorP(); }
/// <summary> /// 初始化方法 /// </summary> private void Bind() { try { //调用GPS Gps1.GetGps(); pageIndex = 0; //当前页 MessageInfo Message = new MessageInfo(); //获取消息总页数 pagesCount = 3; DataTable table = GetMessage(); if (table.Rows.Count > 0) { GridView1.DataSource = table; GridView1.DataBind(); } else { this.GridView1.Rows.Clear(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Bind() { LeftLayoutExtension.upleftLayoutbtncolorExt(this); Gps1.GetGps(); }