/// <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; }
/// <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); }