[Tizen] ApplicationHandle in NUIApplication added
authordongsug.song <dongsug.song@samsung.com>
Tue, 25 Jul 2017 03:01:50 +0000 (12:01 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 25 Jul 2017 03:01:50 +0000 (12:01 +0900)
Change-Id: I3e8037299c52a5209bcdeeb6a0cb3735a59c3745
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
src/Tizen.NUI/src/internal/NUICoreBackend.cs
src/Tizen.NUI/src/public/BaseHandle.cs
src/Tizen.NUI/src/public/NUIApplication.cs

index 35a855d..20dff95 100755 (executable)
@@ -234,5 +234,14 @@ namespace Tizen.NUI
             handler?.Invoke();
         }
 
+
+       internal Application ApplicationHandle
+       {
+               get
+               {
+                       return _application;
+               }
+       }
+
     }
 }
index 0f03701..c692895 100755 (executable)
@@ -55,15 +55,6 @@ namespace Tizen.NUI
             }
         }
 
-        internal BaseHandle(global::System.IntPtr cPtr)
-        {
-            _registerMe = swigCMemOwn = true;
-            swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-
-            // Register this instance of BaseHandle in the registry.
-            Registry.Register(this);
-        }
-
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseHandle obj)
         {
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
index 10a75ea..b5bdacb 100755 (executable)
@@ -176,22 +176,12 @@ namespace Tizen.NUI
             Transparent = 1
         }
 
-        /// <summary>
-        /// Get the window instance.
-        /// </summary>
-        public Window Window
-        {
-            get
-            {
-                return _application.GetWindow();
-            }
-        }
 
         internal Application ApplicationHandle
         {
             get
             {
-                return _application;
+                return ((NUICoreBackend)this.Backend).ApplicationHandle;
             }
         }