iSpyApplication.MainForm.ProcessCommandInternal C# (CSharp) Method

ProcessCommandInternal() static private method

static private ProcessCommandInternal ( string command ) : void
command string
return void
        internal static void ProcessCommandInternal(string command)
        {
            //parse command into new format
            string[] cfg = command.Split(',');
            string newcommand;
            switch (cfg.Length)
            {
                default:
                    //generic command
                    newcommand = cfg[0];
                    break;
                case 2:
                    //group command
                    newcommand = cfg[0] + "?group=" + cfg[1];
                    break;
                case 3:
                    //specific device
                    newcommand = cfg[0] + "?ot=" + cfg[1] + "&oid=" + cfg[2];
                    break;
            }
            MWS.ProcessCommandInternal(newcommand);
        }
MainForm