예제 #1
0
        public static StdTerminal CreateNewTerminal(string name)
        {
            StdTerminal terminal = new StdTerminal();

            if (BaseTerminal.CreateNewTerminal(name, terminal) == null)
            {
                return(null);
            }
            return(terminal);
        }
 public static BaseTerminal CreateNewTerminal(string name, BaseTerminal terminal)
 {
     terminal.Name = name;
     if (TerminalManager.Instance.RegisterNewTerminal(name, terminal))
     {
         return(terminal);
     }
     else
     {
         return(null);
     }
 }
예제 #3
0
 public bool RegisterNewTerminal(string name, BaseTerminal terminal)
 {
     return(true);
 }