Ejemplo n.º 1
0
 private TaskDialogResult ShowInternal(IWin32Window Owner)
 {
     using (var tdf = new TaskDialogForm {
         TaskDialog = this
     })
     {
         _tdf                  = tdf;
         tdf.LinkClicked      += tdf_LinkClicked;
         tdf.Load             += tdf_Load;
         tdf.RightToLeft       = RightToLeft;
         tdf.RightToLeftLayout = RightToLeftLayout;
         SetStartPosition(tdf, Owner);
         tdf.ShowDialog(Owner);
         _tdf = null;
         VerificationFlagChecked = tdf.CheckBoxState;
         Result = tdf.Tag is TaskDialogButton ? ((TaskDialogButton)tdf.Tag).Result
                                              : (TaskDialogResult)(-1); // TaskDialog force-closed by exiting app
         return(Result);
     }
 }
Ejemplo n.º 2
0
 private TaskDialogResult ShowInternal(IWin32Window Owner)
 {
     using (var tdf = new TaskDialogForm { TaskDialog = this })
     {
         _tdf = tdf;
         tdf.LinkClicked += tdf_LinkClicked;
         tdf.Load += tdf_Load;
         tdf.RightToLeft = RightToLeft;
         tdf.RightToLeftLayout = RightToLeftLayout;
         SetStartPosition(tdf, Owner);
         tdf.ShowDialog(Owner);
         _tdf = null;
         VerificationFlagChecked = tdf.CheckBoxState;
         Result = tdf.Tag is TaskDialogButton ? ((TaskDialogButton)tdf.Tag).Result
                                              : (TaskDialogResult)(-1); // TaskDialog force-closed by exiting app
         return Result;
     }
 }