From 017dca335fd45dd5d12a3f5423d90c4dd3a545a5 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Thu, 19 Oct 2017 19:27:12 +0900 Subject: [PATCH] [C#][Connection] Fix EventArgs Change-Id: I80a6e0a0bc67d2fe441e14ca198a4d3af20b271e Signed-off-by: Cheoleun Moon --- org.tizen.guides/html/dotnet/connection.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.tizen.guides/html/dotnet/connection.htm b/org.tizen.guides/html/dotnet/connection.htm index b1f5c13..aa69cd9 100644 --- a/org.tizen.guides/html/dotnet/connection.htm +++ b/org.tizen.guides/html/dotnet/connection.htm @@ -100,13 +100,13 @@ ConnectionManager.ConnectionTypeChanged += EventHandlerConnectionTypeChanged;
  • Define the event handlers:
    -public static void EventHandlerIpAddressChanged(object sender, EventArgs e)
    +public static void EventHandlerIpAddressChanged(object sender, AddressEventArgs e)
     {
    -    Log.Info(Globals.LogTag, "IPCHANGE = " + ((AddressEventArgs)e).IPv4Address);
    +    Log.Info(Globals.LogTag, "IPCHANGE = " + e.IPv4Address);
     }
    -public static void EventHandlerConnectionTypeChanged(object sender, EventArgs e)
    +public static void EventHandlerConnectionTypeChanged(object sender, ConnectionTypeEventArgs e)
     {
    -    Log.Info(Globals.LogTag, "ConnectionType = " + ((ConnectionTypeEventArgs)e).ConnectionType);
    +    Log.Info(Globals.LogTag, "ConnectionType = " + e.ConnectionType);
     }
     
  • -- 2.7.4