-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1db9fdf
commit 4e36356
Showing
7 changed files
with
154 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<winuiex:WindowEx | ||
x:Class="ReboundHub.UninstallationWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:ReboundHub" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:winuiex="using:WinUIEx" | ||
mc:Ignorable="d"> | ||
|
||
<Grid Background="Black" RequestedTheme="Dark"> | ||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="15"> | ||
<ProgressRing x:Name="Ring" IsIndeterminate="True" Width="50" Height="50" Foreground="White"/> | ||
<TextBlock x:Name="Title" Foreground="White" Text="Uninstalling Rebound 11: 7%" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center"/> | ||
<TextBlock x:Name="Subtitle" Foreground="White" IsTextSelectionEnabled="True" Text="Step 1 of 23: Uninstalling Rebound Defragment and Optimize Drives." FontSize="16" FontWeight="Bold" HorizontalAlignment="Center"/> | ||
<StackPanel Orientation="Horizontal" Spacing="15" x:Name="Buttons" Visibility="Collapsed" HorizontalAlignment="Center" Margin="20"> | ||
<Button Content="Restart now" Click="Button_Click" Width="150"/> | ||
<Button Content="Restart later" Click="Button_Click_1" Width="150"/> | ||
</StackPanel> | ||
</StackPanel> | ||
<StackPanel Margin="135" VerticalAlignment="Bottom" Spacing="15" Orientation="Horizontal" HorizontalAlignment="Center" x:Name="ProgressBars"> | ||
<ProgressBar Width="250" x:Name="ReboundProgress" Foreground="White"/> | ||
</StackPanel> | ||
<TextBlock x:Name="Description" Foreground="White" FontWeight="Bold" Text="Please do not turn off your computer. Rebound 11 is modifying essential files.
You can revert all changes after the installation." HorizontalTextAlignment="Center" TextWrapping="WrapWholeWords" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="35"/> | ||
</Grid> | ||
</winuiex:WindowEx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using System.Threading.Tasks; | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using Microsoft.UI.Xaml.Data; | ||
using Microsoft.UI.Xaml.Input; | ||
using Microsoft.UI.Xaml.Media; | ||
using Microsoft.UI.Xaml.Navigation; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using WinUIEx; | ||
using static ReboundHub.InstallationWindow; | ||
|
||
// To learn more about WinUI, the WinUI project structure, | ||
// and more about our project templates, see: http://aka.ms/winui-project-info. | ||
|
||
namespace ReboundHub; | ||
/// <summary> | ||
/// An empty window that can be used on its own or navigated to within a Frame. | ||
/// </summary> | ||
public sealed partial class UninstallationWindow : WindowEx | ||
{ | ||
public UninstallationWindow() | ||
{ | ||
this.InitializeComponent(); | ||
this.MoveAndResize(0, 0, 0, 0); | ||
Load(); | ||
} | ||
|
||
public async void Load() | ||
{ | ||
|
||
} | ||
|
||
private void Timer_Tick(object sender, object e) | ||
{ | ||
ExplorerManager.StopExplorer(); | ||
} | ||
|
||
DispatcherTimer timer = new DispatcherTimer(); | ||
|
||
private async void Button_Click(object sender, RoutedEventArgs e) | ||
{ | ||
Ring.Visibility = Visibility.Visible; | ||
Title.Text = "Restarting..."; | ||
Subtitle.Visibility = Visibility.Collapsed; | ||
Description.Visibility = Visibility.Collapsed; | ||
Buttons.Visibility = Visibility.Collapsed; | ||
|
||
await Task.Delay(3000); | ||
|
||
timer.Stop(); | ||
ExplorerManager.StartExplorer(); | ||
RestartPC(); | ||
} | ||
|
||
private async void Button_Click_1(object sender, RoutedEventArgs e) | ||
{ | ||
timer.Stop(); | ||
ExplorerManager.StartExplorer(); | ||
Ring.Visibility = Visibility.Visible; | ||
Title.Text = "Restarting Explorer..."; | ||
Subtitle.Visibility = Visibility.Collapsed; | ||
Description.Visibility = Visibility.Collapsed; | ||
Buttons.Visibility = Visibility.Collapsed; | ||
|
||
await Task.Delay(3000); | ||
|
||
SystemLock.Lock(); | ||
Close(); | ||
} | ||
} |