Пример #1
0
 void fireWindowEnabledEvent(unoidl.com.sun.star.lang.EventObject e)
 {
     if (WindowEnabled != null)
     {
         try
         {
             WindowEnabled.Invoke(this, new EventObjectForwarder(e));
         }
         catch { }
     }
 }
Пример #2
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = BackgroundTileMapAddress.GetHashCode();
         hashCode = (hashCode * 397) ^ TileSetAddress.GetHashCode();
         hashCode = (hashCode * 397) ^ ScrollX.GetHashCode();
         hashCode = (hashCode * 397) ^ ScrollY.GetHashCode();
         hashCode = (hashCode * 397) ^ SpriteHeight.GetHashCode();
         hashCode = (hashCode * 397) ^ SpritesEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ WindowEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ WindowTileMapAddress.GetHashCode();
         return(hashCode);
     }
 }