protected override void OnPause()
        {
            base.OnPause ();

            if (qu16 != null) {
                qu16.Stop ();
                qu16 = null;
            }
        }
예제 #2
0
        public QuPad(TcpClient client, Mixer mixer)
        {
            qu16 = mixer;
            qu16.OnQueueDataForQuPad += qu16_OnQueueDataForQuPad;
            qu16.OnTriggerQuPadSend += qu16_OnTriggerQuPadSend;

            quPad = new ConnectedDevice (client);
            quPad.OnDataReceived += qupad_OnDataReceived;

            parser.OnSingleCommand += parser_OnSingleCommand;
        }
 protected override void OnResume()
 {
     base.OnResume ();
     try
     {
         qu16 = new Mixer(IP_Address_Qu16, 51325, false, AssetHelper.GetQu16InitLines(this));
         qu16.OnConnected += qu16_OnConnected;
         qu16.OnException += (sender, ex) => {
             RunOnUiThread(() => {
                 Toast.MakeText(this, ex.Message, ToastLength.Short).Show();
                 Finish();
             });
         };
     }
     catch
     {
         qu16 = null;
     }
 }