Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            VoicePluginData.Current.ActiveVoiceScenariosIds = new string[] { "1", "2", "3" };
            VoicePluginData.Current.WithoutActivationVoiceScenariosIds = new string[] { "2" };
            VoicePluginData.Current.CommandsViewScenarioId = "4";
            VoicePluginData.Current.VolumeLevelScenarioId = "1";

            var scenarios = new ScenarioCast[] {
                new ScenarioCastTest(new FloatValueType(){ AcceptedValues=new string[]{"0", "100" } }, "Звук", "1"),
                new ScenarioCastTest(new InfoValueType(), "Вывод", "4"),
                new ScenarioCastTest(new ButtonValueType(), "Тест", "2"),
                new ScenarioCastTest(new InfoValueType(), "сообщение наде", "3"),
            };

            var voicePlugin = new VoicePlugin();
            voicePlugin.SetCasts(() => scenarios);
            voicePlugin.Initialize();
            voicePlugin.SetValue(null, ToggleValueType.ValueON);

            voicePlugin.UserInitializeWith(null, false);
        }