Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.isValid)
         {
             Console.WriteLine("~Resource");
             Resource.RemoveResource(this.id);
             this.isValid = false;
             Console.WriteLine("~Resource done");
         }
     }
 }
Exemplo n.º 2
0

        
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.image != null)
         {
             Console.WriteLine("~ResourceImage '{0}'", this.name);
             Resource.RemoveResource(this.id);
             this.image.Dispose();
             this.image = null;
             Console.WriteLine("~ResourceImage '{0}' done", this.name);
         }
     }
 }