modify WatchApplication window type 62/143162/2 tizen
authorSukHyung, Kang <shine.kang@samsung.com>
Wed, 9 Aug 2017 01:54:05 +0000 (10:54 +0900)
committerSukHyung, Kang <shine.kang@samsung.com>
Wed, 9 Aug 2017 07:41:04 +0000 (16:41 +0900)
 - changed from ElmSharp.Widget to Elmsharp.Window

Change-Id: I08b6b8411676fb2d8cc01d757f68dfb3b45342e8
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
Tizen.Applications.WatchApplication/Tizen.Applications/WatchApplication.cs
Tizen.Applications.WatchApplication/Tizen.Applications/WatchWindow.cs

index 01939fb..43cdbca 100755 (executable)
@@ -49,7 +49,7 @@ namespace Tizen.Applications
         /// <summary>
         /// Instance for the window
         /// </summary>
-        protected Widget Window;
+        protected Window Window;
 
         /// <summary>
         /// Occurs whenever the application is resumed.
@@ -103,6 +103,7 @@ namespace Tizen.Applications
 
             Interop.Watch.GetWin(out win);
             Window = new WatchWindow(win);
+            Window.Show();
         }
 
         /// <summary>
@@ -131,8 +132,8 @@ namespace Tizen.Applications
         protected virtual void OnTick(TimeEventArgs time)
         {
             TimeTick?.Invoke(this, time);
-        }\r
-\r
+        }
+
         /// <summary>
         /// Overrides this method if want to handle behavior when the time tick event comes in ambient mode.
         /// If base.OnAmbientTick() is not called, the event 'AmbientTick' will not be emitted.
index 2d751d5..66a0489 100755 (executable)
@@ -19,7 +19,7 @@ using System;
 
 namespace Tizen.Applications
 {
-    internal class WatchWindow : Widget
+    internal class WatchWindow : Window
     {
         private IntPtr _handle;
 
@@ -34,4 +34,4 @@ namespace Tizen.Applications
             return _handle;
         }
     }
-}
\ No newline at end of file
+}