Ejemplo n.º 1
0
        void playerForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            playerForm.Dispose();
            playerForm = null;

            if (server != null)
            {
                server.StopCurrentSession();
            }
        }
Ejemplo n.º 2
0
        void server_StreamStarting(object sender, RaopEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke((MethodInvoker) delegate() { server_StreamStarting(sender, e); });
                return;
            }

            closeForms();
            playerForm             = new PlayerForm(server, sendCommandCheckBox.Checked);
            playerForm.Location    = new Point(this.Location.X + this.Width + 10, this.Location.Y);
            playerForm.FormClosed += playerForm_FormClosed;
        }