コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: fileoverwritedialog.cs プロジェクト: Jeremiahf/wix3
        /// <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;
        }