public frmUtteranceTester(string character = "")
        {
            InitializeComponent();
            client = new UtteranceClient(character);

            client.ClientConnected += delegate() { StatusMessage("connected", System.Drawing.Color.Green); };
            client.ClientDisconnectedFromThalamus += delegate(string name, string oldClientId) { StatusMessage("NOT connected", System.Drawing.Color.Red); };
            client.Library.LibraryModified += ((UtteranceLibrary.LibraryModifiedHandler)(() => this.Invoke((MethodInvoker)(() => PopulateCategories()))));
        }
예제 #2
0
 public MainWindow()
 {
     string[] args = Environment.GetCommandLineArgs();
     InitializeComponent();
     utteranceClient = new UtteranceClient("emote");
     uttManager.PerformUtteranceClicked += uttManager_PerformClicked;
     uttManager.CancelUtterance+=uttManager_CancelUtterance;
     if (Properties.Settings.Default.Autoload)
     {
         uttManager.LoadLibrary(Properties.Settings.Default.AutoloadPath);
         uttManager.AutoLoad = true;
     }
 }