コード例 #1
0
ファイル: AssemblyList.cs プロジェクト: jorik041/dnSpy
 internal void RefreshSave()
 {
     if (!dirty)
     {
         dirty = true;
         App.Current.Dispatcher.BeginInvoke(
             DispatcherPriority.Background,
             new Action(
                 delegate {
             dirty = false;
             AssemblyListManager.SaveList(this);
         })
             );
     }
 }
コード例 #2
0
 void Assemblies_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     // Whenever the assembly list is modified, mark it as dirty
     // and enqueue a task that saves it once the UI has finished modifying the assembly list.
     if (!dirty)
     {
         dirty = true;
         App.Current.Dispatcher.BeginInvoke(
             DispatcherPriority.Background,
             new Action(
                 delegate {
             dirty = false;
             AssemblyListManager.SaveList(this);
         })
             );
     }
 }
コード例 #3
0
 internal void RefreshSave()
 {
     // Whenever the assembly list is modified, mark it as dirty
     // and enqueue a task that saves it once the UI has finished modifying the assembly list.
     if (!dirty)
     {
         dirty = true;
         App.Current.Dispatcher.BeginInvoke(
             DispatcherPriority.Background,
             new Action(
                 delegate {
             if (dirty)
             {
                 dirty = false;
                 AssemblyListManager.SaveList(this);
             }
         })
             );
     }
 }