Ejemplo n.º 1
0
    public void Dispose()
    {
        DisplayName?.Dispose();

        // Disable collection synchronization
        BindingOperations.DisableCollectionSynchronization(InstalledGames);
        BindingOperations.DisableCollectionSynchronization(NotInstalledGames);
    }
Ejemplo n.º 2
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public override void Dispose()
 {
     if (Error != null)
     {
         Error.Dispose();
     }
     if (DisplayName != null)
     {
         DisplayName.Dispose();
     }
     if (ShortName != null)
     {
         ShortName.Dispose();
     }
     if (Prompt != null)
     {
         Prompt.Dispose();
     }
     if (Description != null)
     {
         Description.Dispose();
     }
     base.Dispose();
 }
 public void Dispose()
 {
     DisplayName?.Dispose();
 }