示例#1
0
 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();
 }
示例#2
0
        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 


        }
示例#3
0
 private void SimpleWaitTDClicked(object sender, RoutedEventArgs e)
 {
     taskDialog = FindTaskDialog("simpleWaitTD");
     taskDialog.Show();
 }
示例#4
0
 private void ComplexTD2Clicked(object sender, RoutedEventArgs e)
 {
     taskDialog = FindTaskDialog("complexTD2");
     taskDialog.Show();
 }
示例#5
0
        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();
        }
示例#6
0
 private void ConfirmationTDClicked(object sender, RoutedEventArgs e)
 {
     taskDialog = FindTaskDialog("confirmationTD");
     taskDialog.Show();
 }