示例#1
0
        //event delegate to subscibe to appMainService.ScanProgress event
        private void updateOnScanProgress(object sender, AppProgressEventArgs args)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <object, AppProgressEventArgs>(updateOnScanProgress), sender, args);
                return;
            }

            TxBStatus.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":" + args.progressMessage;
        }
示例#2
0
 //event delegate to subscibe to appMainService.ScanCancelled event
 private void updateOnScanCancelled(object sender, AppProgressEventArgs args)
 {
     if (InvokeRequired)
     {
         Invoke(new Action <object, AppProgressEventArgs>(updateOnScanCancelled), sender, args);
         return;
     }
     BtnStart.Enabled = true;
     BtnStop.Enabled  = false;
     TxBStatus.Text   = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":" + args.progressMessage;
     if (FormClosePending)
     {
         this.Close();
     }
 }
示例#3
0
        //event delegate to subscibe to appMainService.ScanProgress event
        private void updateOnScanProgress(object sender, AppProgressEventArgs args)
        {
            if (InvokeRequired)
            {
                Invoke(new Action<object, AppProgressEventArgs>(updateOnScanProgress), sender, args);
                return;
            }

            TxBStatus.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":" + args.progressMessage;
        }
示例#4
0
 //event delegate to subscibe to appMainService.ScanCancelled event
 private void updateOnScanCancelled(object sender, AppProgressEventArgs args)
 {
     if (InvokeRequired)
     {
         Invoke(new Action<object, AppProgressEventArgs>(updateOnScanCancelled), sender, args);
         return;
     }
     BtnStart.Enabled = true;
     BtnStop.Enabled = false;
     TxBStatus.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":" + args.progressMessage;
     if (FormClosePending) { this.Close(); }
 }