Beispiel #1
0
        private void dialogProgress1_TimerTick(object sender, TaskDialogTimerTickEventArgs e)
        {
            C1TaskDialog dialog = (C1TaskDialog)sender;

            if (e.Ticks <= 5000)
            {
                dialog.MainInstruction   = string.Format("Progress = {0}", e.Ticks);
                dialog.ProgressBar.Value = e.Ticks;
            }
            else
            {
                dialog.MainInstruction   = "Progress = Done";
                dialog.ProgressBar.Value = 5000;
            }
        }
Beispiel #2
0
        private void sendDialog_TimerTick(object sender, TaskDialogTimerTickEventArgs e)
        {
            C1TaskDialog dialog = (C1TaskDialog)sender;

            if (e.Ticks <= 5000)
            {
                dialog.MainInstruction   = string.Format("Sending ....{0}", e.Ticks);
                dialog.ProgressBar.Value = e.Ticks;
            }
            else
            {
                dialog.MainInstruction   = "Thanks for the feedback!";
                dialog.Content           = "Our developers will get right on that...";
                dialog.ProgressBar.Value = 5000;
            }
        }
Beispiel #3
0
 private void dialogTimer_TimerTick(object sender, TaskDialogTimerTickEventArgs e)
 {
     ((C1TaskDialog)sender).MainInstruction = string.Format("Time elapsed: {0} seconds", e.Ticks / 1000);
 }