Skip to content

Portable Tool for an Ideal Windows Setup

-useless method has been removed

Greedeksea3cb5cd37e2
diff --git a/.Source/GTweak/View/ApplicationsView.xaml b/.Source/GTweak/View/ApplicationsView.xaml
index 87955668..27ffc91f 100644
--- a/.Source/GTweak/View/ApplicationsView.xaml
+++ b/.Source/GTweak/View/ApplicationsView.xaml
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:GTweak.View"
mc:Ignorable="d"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" Loaded="Page_Loaded" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}" Loaded="Page_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="139*"/>
diff --git a/.Source/GTweak/View/ApplicationsView.xaml.cs b/.Source/GTweak/View/ApplicationsView.xaml.cs
index db0432fb..3837d239 100644
--- a/.Source/GTweak/View/ApplicationsView.xaml.cs
+++ b/.Source/GTweak/View/ApplicationsView.xaml.cs
@@ -147,12 +147,6 @@ namespace GTweak.View
WorkWithText.TypeWriteAnimation((string)FindResource("defaultDescriptionApp"), TextDescription, TimeSpan.FromMilliseconds(300));
}
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
-
private void UpdateViewStateApps()
{
MicrosoftStore.Source = !UninstallingApps.isAppDeletedList["MicrosoftStore"] ? UninstallingApps.UserAppsList.Contains("Microsoft.WindowsStore") ? (DrawingImage)FindResource("A_DI_MicrosoftStore") : (DrawingImage)FindResource("DA_DI_MicrosoftStore") : (DrawingImage)FindResource("DI_Sandtime");
diff --git a/.Source/GTweak/View/ConfidentialityView.xaml b/.Source/GTweak/View/ConfidentialityView.xaml
index 3519ba45..3d055a37 100644
--- a/.Source/GTweak/View/ConfidentialityView.xaml
+++ b/.Source/GTweak/View/ConfidentialityView.xaml
@@ -7,7 +7,7 @@
xmlns:uc="clr-namespace:GTweak.Assets.UserControl"
mc:Ignorable="d"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" Loaded="Page_Loaded" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}" Loaded="Page_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="139*"/>
diff --git a/.Source/GTweak/View/ConfidentialityView.xaml.cs b/.Source/GTweak/View/ConfidentialityView.xaml.cs
index e957ea16..e6287c3c 100644
--- a/.Source/GTweak/View/ConfidentialityView.xaml.cs
+++ b/.Source/GTweak/View/ConfidentialityView.xaml.cs
@@ -59,11 +59,5 @@ namespace GTweak.View
WorkWithText.TypeWriteAnimation((string)FindResource("defaultDescription"), TextDescription, TimeSpan.FromMilliseconds(300));
Parallel.Invoke(()=> new ConfidentialityTweaks().ViewСonfidentiality(this));
}
-
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
}
}
diff --git a/.Source/GTweak/View/InformationSystemView.xaml b/.Source/GTweak/View/InformationSystemView.xaml
index be87d42f..a4bf789e 100644
--- a/.Source/GTweak/View/InformationSystemView.xaml
+++ b/.Source/GTweak/View/InformationSystemView.xaml
@@ -8,7 +8,7 @@
xmlns:vm="clr-namespace:GTweak.Core.ViewModel"
xmlns:xrpb="http://XamlRadialProgressBar/DotNet"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" Unloaded="Page_Unloaded" Loaded="Page_Loaded" MouseMove="Page_MouseMove" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}" Unloaded="Page_Unloaded" Loaded="Page_Loaded" MouseMove="Page_MouseMove">
<UserControl.DataContext>
<vm:InformationSystemVM />
</UserControl.DataContext>
diff --git a/.Source/GTweak/View/InformationSystemView.xaml.cs b/.Source/GTweak/View/InformationSystemView.xaml.cs
index 44bc5375..100c06e5 100644
--- a/.Source/GTweak/View/InformationSystemView.xaml.cs
+++ b/.Source/GTweak/View/InformationSystemView.xaml.cs
@@ -188,11 +188,5 @@ namespace GTweak.View
Application.Current.Dispatcher.Invoke(() => { RAMLoad.Value = new SystemData.MonitoringSystem().RamUsage; });
ImageHidden.Visibility = !SystemData.СomputerСonfiguration.isNoInternetConnection & !SystemData.СomputerСonfiguration.isInternetLimited ? Visibility.Visible : Visibility.Collapsed;
}
-
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
}
}
diff --git a/.Source/GTweak/View/InterfaceView.xaml b/.Source/GTweak/View/InterfaceView.xaml
index 2a768eca..d3657072 100644
--- a/.Source/GTweak/View/InterfaceView.xaml
+++ b/.Source/GTweak/View/InterfaceView.xaml
@@ -8,7 +8,7 @@
mc:Ignorable="d"
xmlns:vm="clr-namespace:GTweak.Core.ViewModel"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" Loaded="Page_Loaded" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}" Loaded="Page_Loaded">
<UserControl.DataContext>
<vm:InterfaceVM/>
</UserControl.DataContext>
diff --git a/.Source/GTweak/View/InterfaceView.xaml.cs b/.Source/GTweak/View/InterfaceView.xaml.cs
index 39b1b7ba..3f01d78a 100644
--- a/.Source/GTweak/View/InterfaceView.xaml.cs
+++ b/.Source/GTweak/View/InterfaceView.xaml.cs
@@ -93,11 +93,5 @@ namespace GTweak.View
WorkWithText.TypeWriteAnimation((string)FindResource("defaultDescription"), TextDescription, TimeSpan.FromMilliseconds(300));
Parallel.Invoke(() => new InterfaceTweaks().ViewInterface(this));
}
-
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
}
}
diff --git a/.Source/GTweak/View/MoreView.xaml b/.Source/GTweak/View/MoreView.xaml
index f2585b87..0816c65c 100644
--- a/.Source/GTweak/View/MoreView.xaml
+++ b/.Source/GTweak/View/MoreView.xaml
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:GTweak.View"
mc:Ignorable="d"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
diff --git a/.Source/GTweak/View/MoreView.xaml.cs b/.Source/GTweak/View/MoreView.xaml.cs
index 0a52c109..90442748 100644
--- a/.Source/GTweak/View/MoreView.xaml.cs
+++ b/.Source/GTweak/View/MoreView.xaml.cs
@@ -94,11 +94,5 @@ namespace GTweak.View
else
new ViewNotification().Show("", (string)FindResource("title1_notification"), (string)FindResource("warndisable_recovery_notification"));
}
-
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
}
}
diff --git a/.Source/GTweak/View/ServicesView.xaml b/.Source/GTweak/View/ServicesView.xaml
index 6745e7c5..3fd57f25 100644
--- a/.Source/GTweak/View/ServicesView.xaml
+++ b/.Source/GTweak/View/ServicesView.xaml
@@ -7,7 +7,7 @@
xmlns:uc="clr-namespace:GTweak.Assets.UserControl"
mc:Ignorable="d"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" Loaded="Page_Loaded" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}" Loaded="Page_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="139*"/>
diff --git a/.Source/GTweak/View/ServicesView.xaml.cs b/.Source/GTweak/View/ServicesView.xaml.cs
index 106f422a..4d703121 100644
--- a/.Source/GTweak/View/ServicesView.xaml.cs
+++ b/.Source/GTweak/View/ServicesView.xaml.cs
@@ -52,11 +52,5 @@ namespace GTweak.View
WorkWithText.TypeWriteAnimation((string)FindResource("defaultDescription"), TextDescription, TimeSpan.FromMilliseconds(300));
Parallel.Invoke(() => new ServicesTweaks().ViewServices(this));
}
-
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
}
}
diff --git a/.Source/GTweak/View/SystemView.xaml b/.Source/GTweak/View/SystemView.xaml
index 9838c134..0f0a2b5c 100644
--- a/.Source/GTweak/View/SystemView.xaml
+++ b/.Source/GTweak/View/SystemView.xaml
@@ -7,7 +7,7 @@
xmlns:local="clr-namespace:GTweak.View"
mc:Ignorable="d"
d:DesignHeight="550" d:DesignWidth="1100"
- Style="{StaticResource LaunchPage}" Loaded="Page_Loaded" KeyDown="Page_KeyDown">
+ Style="{StaticResource LaunchPage}" Loaded="Page_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="139*"/>
diff --git a/.Source/GTweak/View/SystemView.xaml.cs b/.Source/GTweak/View/SystemView.xaml.cs
index 6071661d..370fae4e 100644
--- a/.Source/GTweak/View/SystemView.xaml.cs
+++ b/.Source/GTweak/View/SystemView.xaml.cs
@@ -112,11 +112,5 @@ namespace GTweak.View
WorkWithText.TypeWriteAnimation((string)FindResource("defaultDescription"), TextDescription, TimeSpan.FromMilliseconds(300));
Parallel.Invoke(() => new SystemTweaks().ViewSystem(this));
}
-
- private void Page_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.System && (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)))
- e.Handled = true;
- }
}
}