Exemplo n.º 1
0
        public static CommandPrompt CreateInstance(string title)
        {
            if ( instance == null )
            {
                lock ( syncRoot )
                {
                    if ( instance == null ) instance = new CommandPrompt(title);
                }
            }

            return instance;
        }
Exemplo n.º 2
0
        public static CommandPrompt CreateInstance(string title)
        {
            if (instance == null)
            {
                lock ( syncRoot )
                {
                    if (instance == null)
                    {
                        instance = new CommandPrompt(title);
                    }
                }
            }

            return(instance);
        }