Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaexplorer74 committed Aug 11, 2022
1 parent 4d87634 commit 2979855
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 29 deletions.
7 changes: 5 additions & 2 deletions TeslaX/TeslaX.UWP/IClearCookiesImplementation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ namespace TeslaX.UWP
{
public class IClearCookiesImplementation : IClearCookies
{
/*
public void Clear()
{
CookieManager cookieManager = CookieManager.Instance;

//TODO
//CookieManager cookieManager = CookieManager.Instance;
//cookieManager.RemoveAllCookie();
}
*/
}

public class CookieManager
Expand Down
35 changes: 19 additions & 16 deletions TeslaX/TeslaX/App.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
<!--?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
<?xml version="1.0" encoding="utf-8"?>
<Application
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TeslaX.App">

<Application.Resources>
<ResourceDictionary>
<!--Global Styles-->
<Color x:Key="NavigationPrimary">#2196F3</Color>
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="{StaticResource NavigationPrimary}" />
<Setter Property="BarTextColor" Value="White" />
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>

<!--Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TeslaX.App">
<Application.Resources>
Expand All @@ -14,17 +31,3 @@
</Application.Resources>
</Application-->

<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="TeslaRemote.App">
<Application.Resources>
<ResourceDictionary>
<!--Global Styles-->
<Color x:Key="NavigationPrimary">#2196F3</Color>
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="{StaticResource NavigationPrimary}" />
<Setter Property="BarTextColor" Value="White" />
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>

11 changes: 4 additions & 7 deletions TeslaX/TeslaX/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ protected override void OnResume()
using System;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
//using TeslaRemote.Services;
using TeslaRemote.Views;

namespace TeslaRemote
namespace TeslaX
{
public partial class App : Application
{
Expand All @@ -58,7 +56,7 @@ public App()

//DependencyService.Register<MockDataStore>();

/*

if (false)//(!string.IsNullOrEmpty(Settings.SiteId))
{
MainPage = new MainPage();
Expand All @@ -67,9 +65,8 @@ public App()
{
MainPage = new LoginPage();
}
*/
MainPage = new MainPage();
}

}//App

protected override void OnStart()
{
Expand Down
2 changes: 1 addition & 1 deletion TeslaX/TeslaX/IClearCookies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ namespace TeslaX
{
public interface IClearCookies
{
void Clear();
//void Clear();
}
}
4 changes: 4 additions & 0 deletions TeslaX/TeslaX/TeslaX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<None Remove="App.xaml.cs~RF64aa43.TMP" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Xam.Plugin.SimpleAudioPlayer" Version="1.4.0" />
Expand Down
2 changes: 1 addition & 1 deletion TeslaX/TeslaX/ViewModels/LoginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LoginViewModel
public LoginViewModel()
{
// Clear all cookies
DependencyService.Get<IClearCookies>().Clear();
//DependencyService.Get<IClearCookies>().Clear();
}

public string LoginUrl
Expand Down
9 changes: 7 additions & 2 deletions TeslaX/TeslaX/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@
</Ellipse.GestureRecognizers>
</Ellipse-->

<Label x:Name="unitsLabel" HorizontalTextAlignment="End" TextColor="White" Margin="0,5,50,0" FontSize="Medium" Text="kW"/>
<Label x:Name="unitsLabel"
HorizontalTextAlignment="End"
TextColor="White"
Margin="0,5,50,0"
FontSize="Medium"
Text="kW"/>

<cards:CarouselView ItemAppeared="CarouselView_ItemAppeared">
<!--cards:CarouselView ItemAppeared="CarouselView_ItemAppeared"-->
<ListView
x:Name="carousel"
Grid.Row="1"
Expand Down

0 comments on commit 2979855

Please sign in to comment.