private void ComplexTDClicked(object sender, RoutedEventArgs e) { taskDialog = FindTaskDialog("complexTD"); bar = (TaskDialogProgressBar)taskDialog.Controls["ProgressBar"]; taskDialog.ExpandedText += " Link: <A HREF=\"Http://www.microsoft.com\">Microsoft</A>"; taskDialog.Show(); }
public Window1() { InitializeComponent(); TaskDialog taskDialog = new TaskDialog(); taskDialog.Content = "Are you sure you want to continue?"; taskDialog.StandardButtons = TaskDialogStandardButtons.YesNo; taskDialog.MainIcon = TaskDialogStandardIcon.Warning; taskDialog.Caption = "Confirm Format"; taskDialog.Instruction = "Confirm Drive Format"; taskDialog.FooterText = "NOTE: All data stored on the drive will be lost."; taskDialog.FooterIcon = TaskDialogStandardIcon.Information; TaskDialogResult result = taskDialog.Show(); result.StandardButtonClicked= TaskDialogStandardButton.Yes }
private void SimpleWaitTDClicked(object sender, RoutedEventArgs e) { taskDialog = FindTaskDialog("simpleWaitTD"); taskDialog.Show(); }
private void ComplexTD2Clicked(object sender, RoutedEventArgs e) { taskDialog = FindTaskDialog("complexTD2"); taskDialog.Show(); }
private void ComplexTDClicked(object sender, RoutedEventArgs e) { taskDialog = FindTaskDialog("complexTD"); if (initializedComplexDialog == false) { taskDialog.ExpandedText += " Link: <A HREF=\"Http://www.microsoft.com\">Microsoft</A>"; initializedComplexDialog = true; } taskDialog.Show(); }
private void ConfirmationTDClicked(object sender, RoutedEventArgs e) { taskDialog = FindTaskDialog("confirmationTD"); taskDialog.Show(); }