public static ShowDialog ( IWin32Window p_winOwner, string p_strMessage, bool p_booAllowGroup, bool p_booAllowMod ) : OverwriteResult | ||
p_winOwner | IWin32Window | The window to use as the owner of the form. |
p_strMessage | string | The message to display. |
p_booAllowGroup | bool | Whether to display the /// "Yes to all in Group" and "No to all in Group" buttons. |
p_booAllowMod | bool | Whether to display the /// "Yes to all in Mod" and "No to all in Mod" buttons. |
리턴 | OverwriteResult |
/// <summary> /// Displays the overwrite form. /// </summary> /// <param name="p_winOwner">The window to use as the owner of the form.</param> /// <param name="p_strMessage">The message to display.</param> /// <param name="p_booAllowGroup">Whether to display the /// "Yes to all in Group" and "No to all in Group" buttons.</param> /// <param name="p_booAllowMod">Whether to display the /// "Yes to all in Mod" and "No to all in Mod" buttons.</param> /// <returns>The selected result.</returns> public static OverwriteResult ShowDialog(IWin32Window p_winOwner, string p_strMessage, bool p_booAllowGroup, bool p_booAllowMod) { OverwriteForm of = new OverwriteForm(p_strMessage, p_booAllowGroup, p_booAllowMod); string strFont = of.Font.FontFamily.ToString(); of.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; of.Font = new System.Drawing.Font(strFont, 10.95F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0))); of.ShowDialog(p_winOwner); return of.m_owrResult; }
/// <summary> /// Displays the overwrite form. /// </summary> /// <param name="p_strMessage">The message to display.</param> /// <param name="p_booAllowGroup">Whether to display the /// "Yes to all in Group" and "No to all in Group" buttons.</param> /// <param name="p_booAllowMod">Whether to display the /// "Yes to all in Mod" and "No to all in Mod" buttons.</param> /// <returns>The selected result.</returns> public static OverwriteResult ShowDialog(string p_strMessage, bool p_booAllowGroup, bool p_booAllowMod) { OverwriteForm of = new OverwriteForm(p_strMessage, p_booAllowGroup, p_booAllowMod); string strFont = of.Font.FontFamily.ToString(); of.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; of.Font = new System.Drawing.Font(strFont, 10.95F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0))); of.ShowDialog(); return(of.m_owrResult); }