Inheritance: System.EventArgs
コード例 #1
0
 public static void InvokeHungerChanged(HungerChangedEventArgs e)
 {
     if (HungerChanged != null)
     {
         HungerChanged(e);
     }
 }
コード例 #2
0
 public static void InvokeHungerChanged(HungerChangedEventArgs e)
 {
     if (EventSink.HungerChanged != null)
     {
         EventSink.HungerChanged.Invoke(e);
     }
 }
コード例 #3
0
ファイル: EventSink.cs プロジェクト: Godkong/Origins
 public static void InvokeHungerChanged( HungerChangedEventArgs e )
 {
     if ( HungerChanged != null )
         HungerChanged( e );
 }
コード例 #4
0
ファイル: EventSink.cs プロジェクト: zerodowned/angelisland
		public static void InvokeHungerChanged(HungerChangedEventArgs e)
		{
			if (HungerChanged != null)
			{
				foreach (HungerChangedEventHandler currentDelegate in HungerChanged.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}
コード例 #5
0
 public static void InvokeHungerChanged(HungerChangedEventArgs e)
 {
     HungerChanged?.Invoke(e);
 }