コード例 #1
0
 void icons_EntryUpdated(object sender, LruCacheBackground <Action, Icon> .EntryUpdatedEventArgs arg)
 {
     if (arg.key == this)
     {
         if (PropertyChanged != null)
         {
             PropertyChanged(this, new PropertyChangedEventArgs("Icon"));
         }
     }
 }
コード例 #2
0
 static Action()
 {
     icons = new LruCacheBackground <Action, Icon>(1024);
     icons.ProvideValue = new LruCache <Action, Icon> .ProvideValue(x => x.CommandObject.GetIcon());
 }
コード例 #3
0
ファイル: SearchBox.cs プロジェクト: sidiandi/hagen
 void IconCache_EntryUpdated(object sender, LruCacheBackground <Action, Icon> .EntryUpdatedEventArgs arg)
 {
     this.BeginInvoke((MethodInvoker) delegate { itemView.BuildList(); });
 }