Exemplo n.º 1
0
 static void tdProgressSample_Tick(object sender, TaskDialogTickEventArgs e)
 {
     if (MaxRange >= e.Ticks)
     {
         ((TaskDialog)sender).InstructionText = string.Format("Progress = {0}", e.Ticks);
         ((TaskDialog)sender).ProgressBar.Value = e.Ticks;
     }
     else
     {
         ((TaskDialog)sender).InstructionText = "Progress = Done";
         ((TaskDialog)sender).ProgressBar.Value = MaxRange;
     }
 }
Exemplo n.º 2
0
 static void tdTimer_Tick(object sender, TaskDialogTickEventArgs e)
 {
     ((TaskDialog)sender).InstructionText = string.Format("Time elapsed: {0} seconds", e.Ticks / 1000);
 }
Exemplo n.º 3
0
 static void tdSendFeedback_Tick(object sender, TaskDialogTickEventArgs e)
 {
     if (MaxRange >= e.Ticks)
     {
         ((TaskDialog)sender).InstructionText = string.Format("Sending ....{0}", e.Ticks);
         ((TaskDialog)sender).ProgressBar.Value = e.Ticks;
     }
     else
     {
         ((TaskDialog)sender).InstructionText = "Thanks for the feedback!";
         ((TaskDialog)sender).Text = "Our developers will get right on that...";
         ((TaskDialog)sender).ProgressBar.Value = MaxRange;
     }
 }