コード例 #1
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;
                render.Start(FlightData.myhud.Width, FlightData.myhud.Height);
            }
        }
コード例 #2
0
ファイル: temp.cs プロジェクト: AndersonRayner/MissionPlanner
        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);
                }
            }
        }