コード例 #1
0
        private void btnPushConfigData_Click(object sender, EventArgs e)
        {
            //#region 后台线程
            //DoWorkBackGround workFunc = new DoWorkBackGround(LoadConfigForm);

            //FormWorkBackGround frm = new FormWorkBackGround(workFunc);

            //// 程序更新进度
            //frm.AutoUpdateProgressBar = true;
            //// 可以取消
            //frm.SupportsCancellation = false;

            //if (frm.ShowDialog() == DialogResult.Yes)
            //{
            //    //MessageBox.Show("报警数据推送成功!", "提示");
            //}
            //#endregion

            CustomizedPushFrm frm = new CustomizedPushFrm();

            frm.ShowDialog();
        }
コード例 #2
0
        private void LoadConfigForm(BackgroundWorker worker, DoWorkEventArgs e)
        {
            CustomizedPushFrm frm = new CustomizedPushFrm();

            frm.ShowDialog();
        }