Skip to content

Portable Tool for an Ideal Windows Setup

-added alt-name & changed popup v 4.100.0

Greedeks1c822db8ea4a
diff --git a/.Source/GTweak/Languages/en/Lang.xaml b/.Source/GTweak/Languages/en/Lang.xaml
index beff92f0..6f5ab832 100644
--- a/.Source/GTweak/Languages/en/Lang.xaml
+++ b/.Source/GTweak/Languages/en/Lang.xaml
@@ -396,7 +396,7 @@
<v:String x:Key="limited_systemInformation">Network access is limited</v:String>
<v:String x:Key="connection_block_systemInformation">Connecting without network access</v:String>
<v:String x:Key="connection_lose_systemInformation">There is no internet connection</v:String>
- <v:String x:Key="text_copy_systemInformatin">Copied</v:String>
+ <v:String x:Key="text_copy_systemInformatin">Copied!</v:String>
<v:String x:Key="driver_not_installed_systemInformatin">You don't have a driver installed</v:String>
<!--#endregion-->
diff --git a/.Source/GTweak/Languages/ru/Lang.xaml b/.Source/GTweak/Languages/ru/Lang.xaml
index 33c35090..d8a40756 100644
--- a/.Source/GTweak/Languages/ru/Lang.xaml
+++ b/.Source/GTweak/Languages/ru/Lang.xaml
@@ -396,7 +396,7 @@
<v:String x:Key="limited_systemInformation">Доступ к сети ограничен</v:String>
<v:String x:Key="connection_block_systemInformation">Подключение без доступа к сети</v:String>
<v:String x:Key="connection_lose_systemInformation">Отсутствует подключения к интернету</v:String>
- <v:String x:Key="text_copy_systemInformatin">Скопировано</v:String>
+ <v:String x:Key="text_copy_systemInformatin">Скопировано!</v:String>
<v:String x:Key="driver_not_installed_systemInformatin">У вас не установлен драйвер</v:String>
<!--#endregion-->
diff --git a/.Source/GTweak/Properties/AssemblyInfo.cs b/.Source/GTweak/Properties/AssemblyInfo.cs
index c5a69343..77564354 100644
--- a/.Source/GTweak/Properties/AssemblyInfo.cs
+++ b/.Source/GTweak/Properties/AssemblyInfo.cs
@@ -10,8 +10,8 @@ using System.Windows;
[assembly: AssemblyCopyright("Copyright © Greedeks 2024")]
[assembly: AssemblyTrademark("Greedeks")]
[assembly: AssemblyCulture("")]
-[assembly: AssemblyInformationalVersion("Build: 4.91.9")]
-[assembly: AssemblyFileVersion("4.91.9")]
+[assembly: AssemblyInformationalVersion("Build: 4.100.0")]
+[assembly: AssemblyFileVersion("4.100.0")]
[assembly: ComVisible(false)]
diff --git a/.Source/GTweak/Utilities/Tweaks/SystemData.cs b/.Source/GTweak/Utilities/Tweaks/SystemData.cs
index b9603f77..5296ba3e 100644
--- a/.Source/GTweak/Utilities/Tweaks/SystemData.cs
+++ b/.Source/GTweak/Utilities/Tweaks/SystemData.cs
@@ -125,9 +125,9 @@ namespace GTweak.Utilities.Tweaks
internal sealed class СomputerСonfiguration
{
internal static string WindowsClientVersion { get; set; } = string.Empty;
- internal static bool IsConnectionLose { get; set; } = false;
- internal static bool IsConnectionBlock { get; set; } = false;
- internal static bool IsInternetLimited { get; set; } = false;
+ internal static bool IsConnectionLose { get; private set; } = false;
+ internal static bool IsConnectionBlock { get; private set; } = false;
+ internal static bool IsInternetLimited { get; private set; } = false;
private static string _type = string.Empty;
private static readonly EnumerationOptions optionsObj = new EnumerationOptions { ReturnImmediately = true };
@@ -329,8 +329,7 @@ namespace GTweak.Utilities.Tweaks
webRequest.ContentType = "application/json";
webRequest.UserAgent = "Nothing";
- using Stream stream = webRequest.GetResponse().GetResponseStream();
- using StreamReader sreader = new StreamReader(stream);
+ using StreamReader sreader = new StreamReader(webRequest.GetResponse().GetResponseStream());
string DataAsJson = sreader.ReadToEnd();
GitVersionUtility gitVersionUtility = JsonConvert.DeserializeObject<GitVersionUtility>(DataAsJson);
diff --git a/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs b/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs
index c857b308..8b150cfe 100644
--- a/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs
+++ b/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs
@@ -10,7 +10,7 @@ namespace GTweak.Utilities.Tweaks
{
internal sealed class UninstallingApps
{
- internal static string UserAppsList { get; set; } = string.Empty;
+ internal static string UserAppsList { get; private set; } = string.Empty;
internal static bool IsOneDriveInstalled => File.Exists(Environment.ExpandEnvironmentVariables(@"%userprofile%\AppData\Local\Microsoft\OneDrive\OneDrive.exe"));
private static bool isLocalAccount = false;
@@ -111,17 +111,12 @@ namespace GTweak.Utilities.Tweaks
["Mail"] = "communicationsapps",
["ClipChamp"] = "Clipchamp Video Editor",
["Music"] = "zunemusic",
- ["Video"] = "zunevideo"
+ ["Video"] = "zunevideo",
+ ["Widgets"] = "Windows.Client.WebExperience"
};
-
internal void ViewInstalledApp()
{
-
-
-
-
-
ProcessStartInfo startInfo = new ProcessStartInfo
{
FileName = @"powershell.exe",
@@ -145,7 +140,10 @@ namespace GTweak.Utilities.Tweaks
internal async static void DeletingPackage(string packageName)
{
- if (packageName != "OneDrive")
+ if (packageName == "OneDrive")
+ DeletedOneDrive();
+
+ else
{
IsAppUnavailable[packageName] = true;
@@ -159,9 +157,9 @@ namespace GTweak.Utilities.Tweaks
process.StartInfo.Arguments = "Get-AppxProvisionedPackage -online | where-object {$_.PackageName -like '*" + packageName + "*'} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
process.Start();
- foreach (var appDelete in ListAppsScipt[packageName])
+ foreach (string getPackage in ListAppsScipt[packageName])
{
- process.StartInfo.Arguments = string.Format("Get-AppxPackage -Name " + appDelete + " -AllUsers | Remove-AppxPackage");
+ process.StartInfo.Arguments = string.Format("Get-AppxPackage -Name " + getPackage + " -AllUsers | Remove-AppxPackage");
process.Start();
}
@@ -201,9 +199,6 @@ namespace GTweak.Utilities.Tweaks
break;
}
}
-
- else if (packageName == "OneDrive")
- DeletedOneDrive();
}
internal async static void DeletedOneDrive()
diff --git a/.Source/GTweak/View/InformationSystemView.xaml b/.Source/GTweak/View/InformationSystemView.xaml
index 1600d51c..1f4a3578 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">
+ Style="{StaticResource LaunchPage}" Unloaded="Page_Unloaded" Loaded="Page_Loaded">
<UserControl.DataContext>
<vm:InformationSystemVM />
</UserControl.DataContext>
@@ -21,10 +21,10 @@
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
- <Popup x:Name="PopupCopy" AllowsTransparency="True">
- <Border x:Name="CopyTextToastBody" Opacity="0" Background="{StaticResource Color_Background_Dark}" BorderThickness="1" CornerRadius="2" BorderBrush="{StaticResource Color_Accent}" Width="Auto" Height="35" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1">
- <StackPanel Orientation="Horizontal">
- <Label Content="{DynamicResource text_copy_systemInformatin}" Foreground="{StaticResource Color_Accent}" FontFamily="{StaticResource Jura}" FontSize="13" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
+ <Popup x:Name="PopupCopy" AllowsTransparency="True" Placement="Mouse" HorizontalOffset="20">
+ <Border x:Name="CopyTextToastBody" Opacity="0" Background="{StaticResource Color_Accent}" BorderThickness="1" CornerRadius="3" Width="Auto" Height="25" HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="1">
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
+ <Label Content="{DynamicResource text_copy_systemInformatin}" Foreground="{StaticResource Color_Background_Dark}" FontFamily="{StaticResource Jura}" FontSize="11px" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
</StackPanel>
</Border>
</Popup>
@@ -57,7 +57,7 @@
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource Text}" FontSize="15pt" Width="Auto" Height="65">
<Run Foreground="{StaticResource Color_Accent}" Text="{DynamicResource title_win_systemInformation}"/>
- <Run Foreground="{StaticResource Color_Highlighted}" Text="{Binding DisplayWindowsName}" PreviewMouseDown="Run_PreviewMouseDown" Cursor="Hand"/>
+ <Run Foreground="{StaticResource Color_Highlighted}" Text="{Binding DisplayWindowsName}" PreviewMouseDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</TextBlock>
<Image x:Name="ImageWindows" Source="{StaticResource DI_LogoWin}" Height="80" Width="80" HorizontalAlignment="Right" Margin="30,0,0,0"/>
</StackPanel>
@@ -108,28 +108,28 @@
<Grid Grid.Row="0">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_bios_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayBiosName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayBiosName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_motherbr_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayMotherBrName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayMotherBrName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
<Grid Grid.Row="2">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_cpu_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayCpuName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayCpuName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
<Grid Grid.Row="3">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_gpu_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayGpuName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayGpuName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
@@ -137,7 +137,7 @@
<Grid Grid.Row="4">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_ram_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayRamName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayRamName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
</Grid>
@@ -153,21 +153,21 @@
<Grid Grid.Row="0">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_disk_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayDiskName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayDiskName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_sound_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplaySoundName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplaySoundName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
<Grid Grid.Row="2">
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_netadapter_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
- <TextBlock Text="{Binding DisplayNetAdapterName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Text="{Binding DisplayNetAdapterName}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand"/>
</StackPanel>
</Grid>
@@ -175,7 +175,7 @@
<StackPanel Orientation="Vertical" Margin="50,20,0,0">
<TextBlock Text="{DynamicResource title_ip_systemInformation}" Style="{StaticResource Text}" Foreground="{StaticResource Color_Accent}" Height="Auto" Width="Auto"/>
<StackPanel Orientation="Horizontal">
- <TextBlock x:Name="IpAddress" Text="{Binding DisplayIpAddress}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseDown" Cursor="Hand">
+ <TextBlock x:Name="IpAddress" Text="{Binding DisplayIpAddress}" Style="{StaticResource Text}" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{StaticResource Color_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="TextComputerData_PreviewMouseDown" Cursor="Hand">
<TextBlock.Effect>
<BlurEffect Radius="{Binding SetBlurValue}"/>
</TextBlock.Effect>
diff --git a/.Source/GTweak/View/InformationSystemView.xaml.cs b/.Source/GTweak/View/InformationSystemView.xaml.cs
index 480b9d1c..70031699 100644
--- a/.Source/GTweak/View/InformationSystemView.xaml.cs
+++ b/.Source/GTweak/View/InformationSystemView.xaml.cs
@@ -56,13 +56,14 @@ namespace GTweak.View
backgroundWorker.DoWork += delegate
{
Parallel.Invoke(SystemData.СomputerСonfiguration.UpdatingDeviceData);
- new Thread(() => new SystemData.MonitoringSystem().GetCpuUsage()).Start();
- new Thread(() => new SystemData.MonitoringSystem().GetCpuUsage()).IsBackground = true;
+ Thread _thread = new Thread(() => { new SystemData.MonitoringSystem().GetCpuUsage();})
+ { IsBackground = true };
+ _thread.Start();
};
backgroundWorker.RunWorkerCompleted += delegate
{
- new Thread(() => new SystemData.MonitoringSystem().CountProcess.ToString()).Start();
- new Thread(() => new SystemData.MonitoringSystem().CountProcess.ToString()).IsBackground = true;
+ Thread _thread = new Thread(() => { new SystemData.MonitoringSystem().CountProcess.ToString(); })
+ { IsBackground = true };
Application.Current.Dispatcher.Invoke(ProgressBarAnim);
DataContext = new InformationSystemVM();
@@ -88,20 +89,32 @@ namespace GTweak.View
timer.Start();
}
- private void AnimationPopup(bool _reverse)
+ private void AnimationPopup()
{
PopupCopy.IsOpen = true;
DoubleAnimation doubleAnim = new DoubleAnimation()
{
- From = !_reverse ? 0 : 0.9,
- To = !_reverse ? 0.9 : 0,
- SpeedRatio = 10,
+ From = 0,
+ To = 0.9,
+ SpeedRatio = 9,
+ AutoReverse = true,
+ Duration = TimeSpan.FromSeconds(3),
EasingFunction = new QuadraticEase(),
- Duration = TimeSpan.FromSeconds(2)
};
- doubleAnim.Completed += (s, _) => { if (_reverse) PopupCopy.IsOpen = false; };
+ doubleAnim.Completed += (s, _) => { PopupCopy.IsOpen = false; };
Timeline.SetDesiredFrameRate(doubleAnim, 400);
CopyTextToastBody.BeginAnimation(ContextMenu.OpacityProperty, doubleAnim);
+
+ doubleAnim = new DoubleAnimation()
+ {
+ From = -20,
+ To = -50,
+ SpeedRatio = 8,
+ Duration = TimeSpan.FromSeconds(3),
+ EasingFunction = new PowerEase(),
+ };
+ Timeline.SetDesiredFrameRate(doubleAnim, 400);
+ PopupCopy.BeginAnimation(Popup.VerticalOffsetProperty, doubleAnim);
}
private void ImageHidden_PreviewMouseDown(object sender, MouseButtonEventArgs e)
@@ -123,20 +136,24 @@ namespace GTweak.View
}
}
- private async void TextBlock_PreviewMouseDown(object sender, MouseButtonEventArgs e)
+ private void TextComputerData_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount >= 2)
{
- TextBlock textBlock = (TextBlock)sender;
Clipboard.Clear();
- Clipboard.SetData(DataFormats.UnicodeText, textBlock.Text.Replace('\n', ' '));
-
- if (!PopupCopy.IsOpen)
+ if (sender.GetType().Name == "TextBlock")
{
- AnimationPopup(false);
- await Task.Delay(400);
- AnimationPopup(true);
+ TextBlock textBlock = (TextBlock)sender;
+ Clipboard.SetData(DataFormats.UnicodeText, textBlock.Text.Replace('\n', ' '));
}
+ else if (sender.GetType().Name == "Run")
+ {
+ Run runtext = (Run)sender;
+ Clipboard.SetData(DataFormats.UnicodeText, runtext.Text.Replace('\n', ' '));
+ }
+
+ if (!PopupCopy.IsOpen)
+ AnimationPopup();
}
}
@@ -167,36 +184,15 @@ namespace GTweak.View
});
}
- private async void Run_PreviewMouseDown(object sender, MouseButtonEventArgs e)
- {
- if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount >= 2)
- {
- Run runtext = (Run)sender;
- Clipboard.Clear();
- Clipboard.SetData(DataFormats.UnicodeText, runtext.Text.Replace('\n', ' '));
-
- if (!PopupCopy.IsOpen)
- {
- AnimationPopup(false);
- await Task.Delay(400);
- AnimationPopup(true);
- }
- }
- }
-
- private void Page_MouseMove(object sender, MouseEventArgs e)
- {
- Point currentPos = this.PointToScreen(Mouse.GetPosition(this));
- PopupCopy.Placement = PlacementMode.Absolute;
- PopupCopy.HorizontalOffset = currentPos.X + 10;
- PopupCopy.VerticalOffset = currentPos.Y - 30;
-
- }
-
private void Page_Unloaded(object sender, RoutedEventArgs e) => timer.Stop();
private void Page_Loaded(object sender, RoutedEventArgs e)
{
+ Thread _thread = new Thread(() => { new SystemData.MonitoringSystem().GetCpuUsage(); })
+ { IsBackground = true };
+
+ _thread = new Thread(() => { new SystemData.MonitoringSystem().CountProcess.ToString(); })
+ { IsBackground = true };
Application.Current.Dispatcher.Invoke(() => { CPULoad.Value = SystemData.MonitoringSystem.CpuUsage; });
Application.Current.Dispatcher.Invoke(() => { RAMLoad.Value = new SystemData.MonitoringSystem().RamUsage; });
}