private void toolStripConnect_Click(object sender, EventArgs e)
        {
            this.toolStripIP.Enabled       = false;
            this.toolStripPassword.Enabled = false;
            this.toolStripConnect.Enabled  = false;
            this.toolStripClose.Enabled    = false;
            string url = this.toolStripIP.Text;

            this.control = new Kontrol2OBS(url, this.password, this.OnStatusChange, this.OnLog, this.OnLog);
            this.toolStripClose.Enabled = true;
        }
Beispiel #2
0
        public Executable(string url, string password)
        {
            Kontrol2OBS control = new Kontrol2OBS(url, password,
                                                  (s, e) => { this.WriteLine(LogType.Status, e.text); },
                                                  (s, e) => { this.WriteLine(LogType.Warning, e.text); },
                                                  (s, e) => { this.WriteLine(LogType.Information, e.text); }
                                                  );

            this.WriteLine(LogType.Information, "Press Escape for clean shutdown.");
            while (Console.ReadKey().Key != ConsoleKey.Escape)
            {
                ;
            }
            control.Dispose();
        }