Example #1
0
        void Select()
        {
            article = null;
            article = ReadLine();

            PointCloudDeviceC d = cc.FindDeviceC(article);

            WriteLine(d.ID);

            while (true)
            {
                article = null;
                article = ReadLine();
                switch (article)
                {
                case "back": return;

                case "play": TODO(d, Codemode.play); break;

                case "monitor": TODO(d, Codemode.monitor); break;

                case "sendvolume": TODO(d, Codemode.sendvolume); break;

                case "stopsendvolume": TODO(d, Codemode.stopsendvolume); break;

                case "stop": TODO(d, Codemode.stop); break;
                }
            }
        }
Example #2
0
 void monitor(Codemode codemode)
 {
     deviceC = cc.FindDeviceC(data.DeviceID);
     if (deviceC == null)
     {
         Console.WriteLine("没有此设备"); return;
     }
     deviceC.adduser(this);
     deviceC.addorder(codemode);
 }