sharee.bike-App/LastenradBayern/ShareeBike/View/ViewTypesTypeProvider.cs

79 lines
1.8 KiB
C#
Raw Normal View History

2023-11-06 12:23:09 +01:00
using System;
2024-04-09 12:53:23 +02:00
using ShareeBike.View.BikesAtStation;
using ShareeBike.View.Contact;
using ShareeBike.View.CopriWebView;
using ShareeBike.View.SelectBike;
using ShareeBike.View.LegalInformation;
using ShareeBike.View.Help;
using ShareeBike.View.Login;
using ShareeBike.View.Map;
using ShareeBike.View.MiniSurvey;
using ShareeBike.View.MyBikes;
using ShareeBike.View.Settings;
using ShareeBike.View.WhatsNew;
using ShareeBike.View.WhatsNew.Gtc;
2021-11-07 19:42:59 +01:00
using Xamarin.Forms;
2024-04-09 12:53:23 +02:00
namespace ShareeBike.View
2021-11-07 19:42:59 +01:00
{
2022-09-06 16:08:19 +02:00
public static class ViewTypesTypeProvider
{
public static Type GetViewType(this ViewTypes viewType)
{
switch (viewType)
{
case ViewTypes.LoginPage:
return typeof(LoginPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.MapPage:
return typeof(MapPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.RegisterPage:
return typeof(RegisterPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.PasswordForgottenPage:
return typeof(PasswordForgottenPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.MyBikesPage:
return typeof(MyBikesPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.SettingsPage:
return typeof(SettingsPage);
2021-11-07 19:42:59 +01:00
2023-11-21 15:26:57 +01:00
case ViewTypes.LegalInformationPage:
return typeof(LegalInformationPage);
2021-11-07 19:42:59 +01:00
2023-11-21 15:26:57 +01:00
case ViewTypes.HelpPage:
return typeof(HelpPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.ManageAccountPage:
return typeof(ManageAccountPage);
2021-11-07 19:42:59 +01:00
2023-11-21 15:26:57 +01:00
case ViewTypes.GtcPage:
return typeof(GtcPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.WhatsNewPage:
return typeof(WhatsNewPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.BikesAtStation:
return typeof(BikesAtStationPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.ContactPage:
return typeof(ContactPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.SelectStationPage:
return typeof(SelectStationPage);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
case ViewTypes.MiniSurvey:
return typeof(MiniSurveyPage);
2021-11-07 19:42:59 +01:00
2023-11-21 15:26:57 +01:00
case ViewTypes.SelectBikePage:
return typeof(SelectBikePage);
2022-09-06 16:08:19 +02:00
default:
return typeof(ContentPage);
}
}
}
2021-11-07 19:42:59 +01:00
}