From: <nic...@us...> - 2014-06-05 20:38:02
|
Revision: 4822 http://sourceforge.net/p/mp-plugins/code/4822 Author: nicsergio Date: 2014-06-05 20:37:57 +0000 (Thu, 05 Jun 2014) Log Message: ----------- Modified Paths: -------------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj Added Paths: ----------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator0.png trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator1.png trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator2.png Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs 2014-06-05 19:04:01 UTC (rev 4821) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs 2014-06-05 20:37:57 UTC (rev 4822) @@ -1,9 +1,11 @@ using System.Drawing; using System.Reflection; +using System.Timers; using MediaPortal.Dialogs; using MediaPortal.ExtensionMethods; using MediaPortal.GUI.Library; using My.Common; +using System; namespace ShortCuter.Plugin { @@ -12,6 +14,8 @@ #region Dati public const int DialogWindowID = 2821976; //Id finestra di dialogo personalizzata public const string DialogSkinFile = "ShortCuter.Navigator.DialogMenu.xml"; //File della skin per personalizzazione finestra di dialogo + private Timer animationLogo; + private bool anCyc; #endregion [SkinControl(20)] @@ -28,6 +32,7 @@ } public override void Dispose() { + animationLogo.SafeDispose(); tega.SafeDispose(); base.Dispose(); } @@ -36,21 +41,34 @@ base.OnPageLoad(); tega.MemoryImage = Image.FromStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ShortCuter.Resources.Images.SkinNavigator.png")); tega.SetFileName("[ShortCuter:NavigatorLogo]"); + base.lblHeading2.Label = Tools.MyAssembly.Title; + animationLogo = new Timer(2000); + animationLogo.Elapsed += new ElapsedEventHandler(animationLogoElapsed); + animationLogo.Enabled = true; - System.Timers.Timer timer = new System.Timers.Timer(100); - timer.Elapsed += new System.Timers.ElapsedEventHandler(_timer_Elapsed); - timer.Enabled = true; // Enable it - } protected override void OnPageDestroy(int new_windowId) { - + if (animationLogo != null) + { + animationLogo.Enabled = false; + animationLogo.Elapsed -= animationLogoElapsed; + animationLogo = null; + } base.OnPageDestroy(new_windowId); } #endregion - void _timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { } + void animationLogoElapsed(object sender, System.Timers.ElapsedEventArgs e) + { + animationLogo.Stop(); + animationLogo.Interval = 300; + tega.MemoryImage = Image.FromStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ShortCuter.Resources.Images.SkinNavigator" + Convert.ToInt16(anCyc).ToString() + ".png")); + tega.SetFileName("[ShortCuter:NavigatorLogo" + Convert.ToInt16(anCyc).ToString() + "]"); + anCyc = !anCyc; + animationLogo.Start(); + } #region Proprietà public override int GetID { get { return DialogWindowID; } } Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator0.png =================================================================== (Binary files differ) Index: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator0.png =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator0.png 2014-06-05 19:04:01 UTC (rev 4821) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator0.png 2014-06-05 20:37:57 UTC (rev 4822) Property changes on: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator0.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator1.png =================================================================== (Binary files differ) Index: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator1.png =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator1.png 2014-06-05 19:04:01 UTC (rev 4821) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator1.png 2014-06-05 20:37:57 UTC (rev 4822) Property changes on: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator1.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator2.png =================================================================== (Binary files differ) Index: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator2.png =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator2.png 2014-06-05 19:04:01 UTC (rev 4821) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator2.png 2014-06-05 20:37:57 UTC (rev 4822) Property changes on: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/Images/SkinNavigator2.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-06-05 19:04:01 UTC (rev 4821) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-06-05 20:37:57 UTC (rev 4822) @@ -200,6 +200,8 @@ </ItemGroup> <ItemGroup> <Content Include="ExternalResources\Dialogs.dll" /> + <EmbeddedResource Include="Resources\Images\SkinNavigator0.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavigator1.png" /> <EmbeddedResource Include="Resources\Images\SkinNavigator.png" /> <Content Include="Resources\Images\SkinNavAdd.png" /> <Content Include="..\Common\Resources\Images\ArrowDown.png"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |