Exemplo n.º 1
0
        public TodoEngine()
        {
            this.enabled     = false;
            this.selectedvar = null;
            this.LearnMode   = false;
            this.AnyDevice   = true;

            this.mididevice = new TodoMidiDevice(this);
            this.oscdevice  = new TodoOscDevice(this);
        }
Exemplo n.º 2
0
        private static void PersistOsc(StringBuilder sb, TodoOscDevice osc)
        {
            sb.AppendLine("<Osc>");

            string inputline  = "<Input AutoStart=\"[inputauto]\" Port=\"[inputport]\" />";
            string outputline = "<Output AutoStart=\"[outputauto]\" Port=\"[outputport]\" />";

            inputline = inputline.Replace("[inputauto]", osc.AutoStartInput.ToStringEnglish());
            inputline = inputline.Replace("[inputport]", osc.LocalPort.ToString());

            outputline = outputline.Replace("[outputauto]", osc.AutoStartOutput.ToStringEnglish());
            outputline = outputline.Replace("[outputport]", osc.RemotePort.ToString());

            sb.AppendLine(inputline);
            sb.AppendLine(outputline);

            sb.AppendLine("</Osc>");
        }