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

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

            return(instance);
        }