示例#1
0
        public void OpenWindow(string name)
        {
            switch (name)
            {
            //TODO:
            case "MoreInfo":
                break;

            case "Screen":
            {
                if (screen == null)
                {
                    screen = new Screen(this);
                }
                else
                {
                    screen.Activate();
                }
            }
            break;

            case "Camera":
                break;

            case "FileInfo":
                break;

            case "RegInfo":
                break;

            case "Telnet":
            {
                if (telnet == null)
                {
                    telnet = new Telnet(this);
                }
                else
                {
                    telnet.Activate();
                }
            }
            break;

            case "Chat":
                break;
            }
        }
示例#2
0
 public void OpenWindow(string name)
 {
     switch (name)
     {
         //TODO:
         case "MoreInfo":
             break;
         case "Screen":
             {
                 if (screen == null)
                     screen = new Screen(this);
                 else
                     screen.Activate();
             }
             break;
         case "Camera":
             break;
         case "FileInfo":
             break;
         case "RegInfo":
             break;
         case "Telnet":
             {
                 if (telnet == null)
                     telnet = new Telnet(this);
                 else
                     telnet.Activate();
             }
             break;
         case "Chat":
             break;
     }
 }