コード例 #1
0
 /// <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();
 }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
ファイル: frmMune.cs プロジェクト: claro5/demo-coms-landscape
 private void Bind()
 {
     LeftLayoutExtension.upleftLayoutbtncolorExt(this);
     Gps1.GetGps();
 }