Ejemplo n.º 1
0
 private void OnTick(object sender, TaskDialogTickEventArgs e)
 {
     taskDialog.Content = "Seconds elapsed:   " + e.Ticks / 1000;
     // Update the progress bar if there is one.
     if (taskDialog.ProgressBar != null)
     {
         if (taskDialog.ProgressBar.Value == taskDialog.ProgressBar.Maximum)
         {
             taskDialog.ProgressBar.Value = taskDialog.ProgressBar.Minimum;
         }
         taskDialog.ProgressBar.Value = taskDialog.ProgressBar.Value + 10;
     }
 }
Ejemplo n.º 2
0
 private void OnTick(object sender, TaskDialogTickEventArgs e)
 {            
     taskDialog.Content = "Seconds elapsed:   " + e.Ticks / 1000;
 }