if (widgetAction.Equals("PUSH"))\r
{\r
Tizen.Log.Debug("NUI", "WIDGET_ACTION : PUSH!\n");\r
-\r
- if (Int32.TryParse(widgetWidth, out int width) && Int32.TryParse(widgetHeight, out int height))\r
- {\r
- Bundle bundle2 = new Bundle();\r
- bundle2.AddItem(" ", " ");\r
- String encodedBundle2 = bundle2.Encode();\r
-\r
- WidgetView widgetview = WidgetViewManager.Instance.AddWidget(widgetID, encodedBundle2, width, height, 0.0f);\r
- if (widgetview != null)\r
- {\r
- widgetview.WidgetContentUpdated += OnWidgetContentUpdatedCB;\r
- widgetview.Preview = false;\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = widgetview });\r
- }\r
- }\r
-#if false\r
- if (widgetPage.Equals("CONTENT_PAGE"))\r
- {\r
- if (widgetID.Equals("secondPage@NUISettingsReset"))\r
- {\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = secondPageWidgetView });\r
- }\r
- else if (widgetID.Equals("thirdPage@NUISettingsReset"))\r
- {\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = thirdPageWidgetView });\r
- }\r
- else if (widgetID.Equals("fourthPage@NUISettingsReset"))\r
- {\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = fourthPageWidgetView });\r
- }\r
- }\r
- else if (widgetPage.Equals("DIALOG_PAGE"))\r
- {\r
- if (widgetID.Equals("secondPage@NUISettingsReset"))\r
- {\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new DialogPage() { Content = secondPageWidgetView });\r
- }\r
- else if (widgetID.Equals("thirdPage@NUISettingsReset"))\r
- {\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new DialogPage() { Content = thirdPageWidgetView });\r
- }\r
- else if (widgetID.Equals("fourthPage@NUISettingsReset"))\r
- {\r
- NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new DialogPage() { Content = fourthPageWidgetView });\r
- }\r
- }\r
-#endif\r
+ PushWidget(NUIApplication.GetDefaultWindow(), widgetID);\r
}\r
else if (widgetAction.Equals("POP"))\r
{\r