ACAT.Lib.Core.Utility.Windows.Show C# (CSharp) Méthode

Show() public static méthode

Shows the child window, assigns parent as the owner This is just a helper function that takes care of cross-thread invokations that would result in .NET exceptions.
public static Show ( Form parent, Form child ) : void
parent System.Windows.Forms.Form
child System.Windows.Forms.Form
Résultat void
        public static void Show(Form parent, Form child)
        {
            if (parent.InvokeRequired)
            {
                parent.Invoke(new show(Show), parent, child);
            }
            else
            {
                child.Show(parent);
            }
        }