Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ushort port;

            if (!ushort.TryParse(tbHttpPort.Text, out port))
            {
                MsgBox.ShowOk("Port '" + tbHttpPort.Text + "' not valid");
                return;
            }
            HTTPCast.StartCasting(port, ink, "1234");
            this.Close();
        }
Пример #2
0
 private void btnCast_Click(object sender, EventArgs e)
 {
     if (HTTPCast.IsCasting)
     {
         HTTPCast.StopCasting();
     }
     else if (WebCast.IsCasting)
     {
         WebCast.StopCasting();
     }
     else
     {
         CastDialog cd = new CastDialog(control);
         cd.ShowDialog();
     }
     CloseMenu?.Invoke();
 }