/// <summary> /// Launches a FileOverwriteDialog. /// </summary> /// <param name="serviceProvider">An associated serviceprovider.</param> /// <param name="messageText">The text the dialog box will contain.</param> /// <param name="title">The title of the dialog.</param> /// <param name="helpTopic">The associated help topic.</param> /// <param name="button">The default button.</param> /// <param name="applyAllValue">The value of the apply all checkbox.</param> /// <returns>A Dialog result.</returns> internal static DialogResult LaunchFileOverwriteDialog(IServiceProvider serviceProvider, string messageText, string title, string helpTopic, DefaultButton button, out bool applyAllValue) { DialogResult result = DialogResult.Yes; FileOverwriteDialog dialog = new FileOverwriteDialog(serviceProvider, messageText, title, helpTopic, button); result = dialog.ShowDialog(); applyAllValue = dialog.ApplyToAllValue; return(result); }
/// <summary> /// Launches a FileOverwriteDialog. /// </summary> /// <param name="serviceProvider">An associated serviceprovider.</param> /// <param name="messageText">The text the dialog box will contain.</param> /// <param name="title">The title of the dialog.</param> /// <param name="helpTopic">The associated help topic.</param> /// <param name="button">The default button.</param> /// <param name="applyAllValue">The value of the apply all checkbox.</param> /// <returns>A Dialog result.</returns> internal static DialogResult LaunchFileOverwriteDialog(IServiceProvider serviceProvider, string messageText, string title, string helpTopic, DefaultButton button, out bool applyAllValue) { DialogResult result = DialogResult.Yes; FileOverwriteDialog dialog = new FileOverwriteDialog(serviceProvider, messageText, title, helpTopic, button); result = dialog.ShowDialog(); applyAllValue = dialog.ApplyToAllValue; return result; }