From: <soa...@us...> - 2007-05-02 09:37:51
|
Revision: 369 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=369&view=rev Author: soapskyway Date: 2007-05-02 02:36:55 -0700 (Wed, 02 May 2007) Log Message: ----------- Fixed small problem with new configuration form. Changed the order of the initialization, so that it is positioned before it is visible. Added support for the Visible property. Modified Paths: -------------- trunk/plugins/VideoLAN/VideoLanPlugin.cs Modified: trunk/plugins/VideoLAN/VideoLanPlugin.cs =================================================================== --- trunk/plugins/VideoLAN/VideoLanPlugin.cs 2007-05-01 15:59:15 UTC (rev 368) +++ trunk/plugins/VideoLAN/VideoLanPlugin.cs 2007-05-02 09:36:55 UTC (rev 369) @@ -130,7 +130,7 @@ { vlcControl = VlcUserControl.Instance; vlcControl.Enabled = false; - vlcControl.Visible = true; + vlcControl.Visible = false; GUIGraphicsContext.form.Controls.Add(vlcControl); } @@ -167,17 +167,17 @@ vlcControl.Stop(); vlcControl.ClearPlayList(); - + SetWindows(); + vlcControl.Visible = true; System.Threading.Thread.Sleep(1000); //wait for vlc strange playlist problem - vlcControl.AddToPlayList(strFile, null, (string[]) options.ToArray()); + vlcControl.AddToPlayList(strFile, null, (string[])options.ToArray(typeof(String))); vlcControl.Play(); GUIGraphicsContext.form.Focus(); Player_playEvent(); - SetWindows(); UpdateStatus(); return true; @@ -682,6 +682,28 @@ return deinterlace.ToLowerInvariant(); } } + + public override bool Visible + { + get + { + if (vlcControl != null) + { + return vlcControl.Visible; + } + else + { + return false; + } + } + set + { + if (vlcControl != null) + { + vlcControl.Visible = value; + } + } + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |