From: <ste...@us...> - 2011-02-15 14:49:55
|
Revision: 4109 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4109&view=rev Author: steve44src Date: 2011-02-15 14:49:49 +0000 (Tue, 15 Feb 2011) Log Message: ----------- - new Added Paths: ----------- trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindowManager.cs Added: trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindowManager.cs =================================================================== --- trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindowManager.cs (rev 0) +++ trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindowManager.cs 2011-02-15 14:49:49 UTC (rev 4109) @@ -0,0 +1,47 @@ +/* + * Erstellt mit SharpDevelop. + * Benutzer: srinke + * Datum: 15.02.2011 + * Zeit: 14:49 + * + * Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern. + */ +using System; +using System.Collections.Generic; + +namespace MP4IPSymcon +{ + /// <summary> + /// Description of IPSWindowManager. + /// </summary> + public class IPSWindowManager + { + public IPSWindowManager() + { + } + + private Dictionary<int, IPSWindow> ipsWindows = new Dictionary<int, IPSWindow>(); + + private static IPSWindowManager theInstance; + + public static IPSWindowManager getIPSWindowManager() { + if( theInstance == null ) { + theInstance = new IPSWindowManager(); + } + return theInstance; + } + + public void registerWindow( int oid, IPSWindow win ) { + ipsWindows[oid] = win; + } + + public IPSWindow getWindowById( int id ) { + return ipsWindows[id]; + } + + public bool hasWindow( int id ) { + return ipsWindows.ContainsKey(id); + } + + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |