コード例 #1
0
        /*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( )));
        }
コード例 #2
0
 /*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( ) );
 }