ACAT.Lib.Core.Utility.Windows.ShowWindowBorder C# (CSharp) Метод

ShowWindowBorder() публичный статический Метод

If show is set to true, shows the window borders and title
public static ShowWindowBorder ( Form form, bool show, String title = "" ) : void
form System.Windows.Forms.Form the target form
show bool true to show border/title
title String title to set
Результат void
        public static void ShowWindowBorder(Form form, bool show, String title = "")
        {
            if (show)
            {
                form.Text = title;
                form.ControlBox = false;
                form.FormBorderStyle = FormBorderStyle.FixedSingle;
            }
            else
            {
                form.FormBorderStyle = FormBorderStyle.None;
            }
        }