refactor: require ProcessStep to return BasePage
authorLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Wed, 23 Sep 2020 06:03:14 +0000 (08:03 +0200)
committerLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Wed, 23 Sep 2020 06:35:54 +0000 (08:35 +0200)
Change-Id: I7ccee0441c2a5bee1b203ce82a9d8f2e4138a194

Oobe/Oobe.Common/Interfaces/ProcessStep.cs
Oobe/Oobe.Language/LanguageStep.cs
Oobe/Oobe.Region/RegionStep.cs
Oobe/Oobe.Terms/TermsStep.cs
Oobe/Oobe.Welcome/WelcomeStep.cs
Oobe/Oobe.Wifi/WifiStep.cs

index e961bdd..606d4f1 100644 (file)
@@ -16,6 +16,7 @@
 
 using System;
 using Oobe.Common.Interfaces;
+using Oobe.Common.Pages;
 using Tizen.NUI.BaseComponents;
 
 namespace Oobe.Common.Interfaces
@@ -65,7 +66,7 @@ namespace Oobe.Common.Interfaces
         {
         }
 
-        public virtual View CreateView(IProcessNavigation nav)
+        public virtual BasePage CreateView(IProcessNavigation nav)
         {
             return null;
         }
index f2c9795..cd00a9c 100644 (file)
@@ -44,7 +44,7 @@ namespace Oobe.Language
             manager = new LanguageManger();
         }
 
-        public override View CreateView(IProcessNavigation nav)
+        public override BasePage CreateView(IProcessNavigation nav)
         {
             var container = new TwoButtonsPage();
 
@@ -56,6 +56,7 @@ namespace Oobe.Language
             foreach (LanguageInfo info in manager.Languages)
             {
                 CarouselPickerItemData item = new CarouselPickerItemData();
+
                 item.Text = info.LocalName;
                 carousel.AddItem(item);
             }
index 3bb1b19..f619532 100644 (file)
@@ -39,7 +39,7 @@ namespace Oobe.Region
             manager = new RegionManager();
         }
 
-        public override View CreateView(IProcessNavigation nav)
+        public override BasePage CreateView(IProcessNavigation nav)
         {
             var container = new TwoButtonsPage();
 
index 13d108e..061453e 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 using Oobe.Common.Interfaces;\r
+using Oobe.Common.Pages;\r
 using Oobe.Terms.Model;\r
 using Oobe.Terms.Views;\r
 using Tizen.NUI.BaseComponents;\r
@@ -30,7 +31,7 @@ namespace Oobe.Terms
             provider = new TermsProvider();\r
         }\r
 \r
-        public override View CreateView(IProcessNavigation nav)\r
+        public override BasePage CreateView(IProcessNavigation nav)\r
         {\r
             return new TermsView(nav, provider);
         }\r
index d86c9db..9a71602 100644 (file)
@@ -25,7 +25,7 @@ namespace Oobe.Welcome
 {\r
     public class WelcomeStep : ProcessStep\r
     {\r
-        public override View CreateView(IProcessNavigation nav)\r
+        public override BasePage CreateView(IProcessNavigation nav)\r
         {\r
             var container = new OneButtonPage();\r
 \r
index 22ceee0..9a187ff 100644 (file)
@@ -32,7 +32,7 @@ namespace Oobe.Wifi
         private WifiView wifiView = null;
         private EventHandler<ConnectionStateChangedEventArgs> connectionChanged;
 
-        public override View CreateView(IProcessNavigation nav)
+        public override BasePage CreateView(IProcessNavigation nav)
         {
             DisposeView();