예제 #1
0
파일: Form1.cs 프로젝트: azdjdgh/VideoChat
        private void openUrlToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HResult hr;

            fmURL f = new fmURL();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                // Open the file with the playback object.
                hr = g_pPlayer.OpenURL(f.tbURL.Text);

                if (hr >= 0)
                {
                    UpdateUI(this.Handle, CPlayer.PlayerState.OpenPending);
                }
                else
                {
                    NotifyError(this.Handle, "Could not open this URL.", hr);
                    UpdateUI(this.Handle, CPlayer.PlayerState.Ready);
                }
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: GoshaDE/SuperMFLib
        private void openUrlToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int hr;

            fmURL f = new fmURL();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                // Open the file with the playback object.
                hr = g_pPlayer.OpenURL(f.tbURL.Text);

                if (hr >= 0)
                {
                    UpdateUI(this.Handle, CPlayer.PlayerState.OpenPending);
                }
                else
                {
                    NotifyError(this.Handle, "Could not open this URL.", hr);
                    UpdateUI(this.Handle, CPlayer.PlayerState.Ready);
                }
            }
        }