private void myButton_vlc_Click(object sender, EventArgs e)
        {
            var render = new vlcrender();

            string url = render.playurl;
            if (InputBox.Show("enter url", "enter url", ref url) == DialogResult.OK)
            {
                render.playurl = url;
                render.Start(FlightData.myhud.Width, FlightData.myhud.Height);
            }
        }
示例#2
0
        private void myButton_vlc_Click(object sender, EventArgs e)
        {
            var render = new vlcrender();

            string url = render.playurl;
            if (InputBox.Show("enter url", "enter url", ref url) == DialogResult.OK)
            {
                render.playurl = url;
                try
                {
                    render.Start();
                }
                catch (Exception ex)
                {
                    CustomMessageBox.Show(ex.ToString(), Strings.ERROR);
                }
            }
        }