Esempio n. 1
0
 private void action_progressChanged(object sender, applyUpdateProgressChangedEventArgs e)
 {
     if (updateProgressChanged != null)
     {
         if (m_onRollback)
         {
             var rArgs = new applyUpdateProgressChangedEventArgs(
                 Language.GetString("applyUpdateManager_rollback"),
                 e.actionDescription,
                 Percent(e.percentDone + (applyUpdateActionCount * 100), m_performedUpdateActions.Count * 100));
         }
         else
         {
             var eArgs = new applyUpdateProgressChangedEventArgs(
                 e.actionName,
                 e.actionDescription,
                 Percent(e.percentDone + (applyUpdateActionCount * 100), m_updateActions.Count * 100));
             updateProgressChanged(this, eArgs);
         }
     }
 }
Esempio n. 2
0
		private void m_updateManager_updateProgressChanged(object sender, applyUpdateProgressChangedEventArgs e) {
			//lblStatus.Text = e.actionName;
			aclApply.Text = string.Format("[{0}] {1}", e.actionName, e.actionDescription);
			prgUpdate.Value = e.percentDone;
		}
		private void action_progressChanged(object sender, applyUpdateProgressChangedEventArgs e) {
			if (updateProgressChanged != null) {
				if (m_onRollback) {
					var rArgs = new applyUpdateProgressChangedEventArgs(
						Language.GetString("applyUpdateManager_rollback"),
						e.actionDescription,
						Percent(e.percentDone + (applyUpdateActionCount*100), m_performedUpdateActions.Count*100));
				}
				else {
					var eArgs = new applyUpdateProgressChangedEventArgs(
						e.actionName,
						e.actionDescription,
						Percent(e.percentDone + (applyUpdateActionCount*100), m_updateActions.Count*100));
					updateProgressChanged(this, eArgs);
				}
			}
		}