From 4ae5f8ef0b84128a1f97fedb8a42306771c2531e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Mon, 25 Dec 2023 14:02:43 +0100 Subject: [PATCH] Removed My IP page (#512) --- InternetTest/InternetTest/App.xaml.cs | 1 - InternetTest/InternetTest/Classes/Global.cs | 1 - InternetTest/InternetTest/MainWindow.xaml | 14 - InternetTest/InternetTest/MainWindow.xaml.cs | 24 - InternetTest/InternetTest/Pages/MyIpPage.xaml | 486 ------------------ .../InternetTest/Pages/MyIpPage.xaml.cs | 195 ------- .../UserControls/ActionCard.xaml.cs | 4 - 7 files changed, 725 deletions(-) delete mode 100644 InternetTest/InternetTest/Pages/MyIpPage.xaml delete mode 100644 InternetTest/InternetTest/Pages/MyIpPage.xaml.cs diff --git a/InternetTest/InternetTest/App.xaml.cs b/InternetTest/InternetTest/App.xaml.cs index eaa3f08..bebe2d8 100644 --- a/InternetTest/InternetTest/App.xaml.cs +++ b/InternetTest/InternetTest/App.xaml.cs @@ -42,7 +42,6 @@ private void Application_Startup(object sender, StartupEventArgs e) Global.HistoryPage = new(); Global.SettingsPage = new(); Global.DownDetectorPage = new(); - Global.MyIpPage = new(); Global.LocateIpPage = new(); Global.PingPage = new(); Global.IpConfigPage = new(); diff --git a/InternetTest/InternetTest/Classes/Global.cs b/InternetTest/InternetTest/Classes/Global.cs index d631510..5a502d6 100644 --- a/InternetTest/InternetTest/Classes/Global.cs +++ b/InternetTest/InternetTest/Classes/Global.cs @@ -63,7 +63,6 @@ public static class Global public static HistoryPage? HistoryPage { get; set; } public static SettingsPage? SettingsPage { get; set; } public static DownDetectorPage? DownDetectorPage { get; set; } - public static MyIpPage? MyIpPage { get; set; } public static LocateIpPage? LocateIpPage { get; set; } public static PingPage? PingPage { get; set; } public static IpConfigPage? IpConfigPage { get; set; } diff --git a/InternetTest/InternetTest/MainWindow.xaml b/InternetTest/InternetTest/MainWindow.xaml index bf78fc5..bc9fae6 100644 --- a/InternetTest/InternetTest/MainWindow.xaml +++ b/InternetTest/InternetTest/MainWindow.xaml @@ -638,20 +638,6 @@ - 0 ? Global.SynethiaConfig.DownDetectorPageInfo.InteractionCount / 2d : 1d); // Calculate the score break; - case MyIpPage: - Global.SynethiaConfig.MyIPPageInfo.LeaveUnixTime = Sys.UnixTime; - Global.SynethiaConfig.MyIPPageInfo.TotalTimeSpent += Global.SynethiaConfig.MyIPPageInfo.LeaveUnixTime - Global.SynethiaConfig.MyIPPageInfo.EnterUnixTime; - Global.SynethiaConfig.MyIPPageInfo.Score = Global.SynethiaConfig.MyIPPageInfo.TotalTimeSpent * (Global.SynethiaConfig.MyIPPageInfo.InteractionCount > 0 ? Global.SynethiaConfig.MyIPPageInfo.InteractionCount / 2d : 1d); // Calculate the score - break; case LocateIpPage: Global.SynethiaConfig.LocateIPPageInfo.LeaveUnixTime = Sys.UnixTime; Global.SynethiaConfig.LocateIPPageInfo.TotalTimeSpent += Global.SynethiaConfig.LocateIPPageInfo.LeaveUnixTime - Global.SynethiaConfig.LocateIPPageInfo.EnterUnixTime; @@ -446,7 +423,6 @@ private void ConfidentialModeBtn_Click(object sender, RoutedEventArgs e) RegularLockTxt.Visibility = Global.IsConfidentialModeEnabled ? Visibility.Collapsed : Visibility.Visible; FilledLockTxt.Visibility = !Global.IsConfidentialModeEnabled ? Visibility.Collapsed : Visibility.Visible; - Global.MyIpPage?.ToggleConfidentialMode(Global.IsConfidentialModeEnabled); Global.LocateIpPage?.ToggleConfidentialMode(Global.IsConfidentialModeEnabled); Global.IpConfigPage?.ToggleConfidentialMode(Global.IsConfidentialModeEnabled); Global.WiFiPasswordsPage?.ToggleConfidentialMode(); diff --git a/InternetTest/InternetTest/Pages/MyIpPage.xaml b/InternetTest/InternetTest/Pages/MyIpPage.xaml deleted file mode 100644 index 2dc0e42..0000000 --- a/InternetTest/InternetTest/Pages/MyIpPage.xaml +++ /dev/null @@ -1,486 +0,0 @@ - - - - - - - - - - - - - - - - - - - -