예제 #1
0
파일: MainForm.cs 프로젝트: flos-club/iSpy
        public void Play(string filename, int objectId, string displayName)
        {
            if (InvokeRequired)
            {
                Invoke(new Action(() => Play(filename,objectId,displayName)));
                return;
            }
            if (PlayerVLC == null)
            {
                PlayerVLC = new PlayerVLC(displayName, this);
                PlayerVLC.Show(this);
                PlayerVLC.Closed += PlayerClosed;
                PlayerVLC.Activate();
                PlayerVLC.BringToFront();
                PlayerVLC.Owner = this;
            }

            PlayerVLC.ObjectID = objectId;
            PlayerVLC.Play(filename, displayName);
        }
예제 #2
0
        public void Play(string filename, int objectId, string displayName)
        {
            if (PlayerVLC == null)
            {
                PlayerVLC = new PlayerVLC(displayName, this);
                PlayerVLC.Show(this);
                PlayerVLC.Closed += PlayerClosed;
                PlayerVLC.Activate();
                PlayerVLC.BringToFront();
                PlayerVLC.Owner = this;
            }

            PlayerVLC.ObjectID = objectId;
            PlayerVLC.Play(filename, displayName);
        }