/*private void addWatcher(string key, string category) * { * watchers.Add( key , new CategoryWatcher( category , key ) ); * CategoryWatcher cw; * if( watchers.TryGetValue( key , out cw ) ) * { * cw.SleepTime = 10; * cw.CategoryHasItemsEvent += new CategoryWatcher.CategoryHasItemsEventHook( CategoryHasItemsEvent ); * } * }*/ // woo singleton public static WatcherController instance() { return(_instance ?? (_instance = new WatcherController( ))); }
/*private void addWatcher(string key, string category) { watchers.Add( key , new CategoryWatcher( category , key ) ); CategoryWatcher cw; if( watchers.TryGetValue( key , out cw ) ) { cw.SleepTime = 10; cw.CategoryHasItemsEvent += new CategoryWatcher.CategoryHasItemsEventHook( CategoryHasItemsEvent ); } }*/ // woo singleton public static WatcherController instance() { return _instance ?? ( _instance = new WatcherController( ) ); }