Ejemplo n.º 1
0
        private void menuItem5_Click(object sender, EventArgs e)
        {
            ShowStatus( "DownLoad...");
            this.Refresh();
            DownLoad dl = new DownLoad();

            dl.DownloadUserList();
            ShowStatus( "User Downloaded.");
            dl.DownloadSpecsList();
            ShowStatus( "DownLoad Successfully.");
        }
Ejemplo n.º 2
0
 private void menuItem14_Click(object sender, EventArgs e)
 {
     if (AppHelper.UserName.ToLower().Equals("admin"))
     {
         if (MessageBox.Show("下载用户数据,是否继续?", "请确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.OK)
         {
             ShowStatus("DownLoad...");
             this.Refresh();
             DownLoad dl = new DownLoad();
             ShowStatus("User Downloaded...");
             this.Refresh();
             dl.DownloadUserList();
             ShowStatus("DownLoad Successfully.");
         }
     }
 }
Ejemplo n.º 3
0
        private void menuItem5_Click(object sender, EventArgs e)
        {
            if (AppHelper.UserName.ToLower().Equals("admin"))
            {
                if (MessageBox.Show("下载数据会初始化PDA字典数据,需要重新设置编码,是否继续?", "请确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.OK)
                {
                    ShowStatus("DownLoad...");
                    this.Refresh();
                    DownLoad dl = new DownLoad();

                    ShowStatus("SpecsList DownLoad...");
                    this.Refresh();
                    dl.DownloadSpecsList();
                    ShowStatus("Settings DownLoad..");
                    this.Refresh();
                    dl.DownloadSettings();
                    ShowStatus("DownLoad Successfully.");
                }
            }
        }