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); }
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); }