Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
tzurielSoftware committed Jan 28, 2019
1 parent 5e5e639 commit a4b363a
Show file tree
Hide file tree
Showing 89 changed files with 2,931 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
886 changes: 886 additions & 0 deletions WindowsOptimizationTool/WindowsOptimizationTool/W.O.T/W.O.T.vdproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsOptimizationTool", "WindowsOptimizationTool\WindowsOptimizationTool.csproj", "{05F42308-7A98-426C-8AFA-27BE9BC124AD}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "W.O.T", "W.O.T\W.O.T.vdproj", "{DFE62ADD-690E-4301-87C0-D46F0FB87F21}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{05F42308-7A98-426C-8AFA-27BE9BC124AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05F42308-7A98-426C-8AFA-27BE9BC124AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05F42308-7A98-426C-8AFA-27BE9BC124AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05F42308-7A98-426C-8AFA-27BE9BC124AD}.Release|Any CPU.Build.0 = Release|Any CPU
{DFE62ADD-690E-4301-87C0-D46F0FB87F21}.Debug|Any CPU.ActiveCfg = Debug
{DFE62ADD-690E-4301-87C0-D46F0FB87F21}.Debug|Any CPU.Build.0 = Debug
{DFE62ADD-690E-4301-87C0-D46F0FB87F21}.Release|Any CPU.ActiveCfg = Release
{DFE62ADD-690E-4301-87C0-D46F0FB87F21}.Release|Any CPU.Build.0 = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3A9C111E-5A18-489B-936D-764FDE2CBF2B}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="WindowsOptimizationTool.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WindowsOptimizationTool"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace WindowsOptimizationTool
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Windows.Input;
namespace WindowsOptimizationTool.Commands
{
class DelegateCommand : ICommand
{
public Action CommandAction { get; set; }
public Func<bool> CanExecuteFunc { get; set; }
public DelegateCommand(Action action)
{
CommandAction = action;
}
public event EventHandler CanExecuteChanged
{
add { CommandManager.RequerySuggested += value; }
remove { CommandManager.RequerySuggested -= value; }
}

public void Execute(object parameter)
{
CommandAction();
}

public bool CanExecute(object parameter)
{
return CanExecuteFunc == null || CanExecuteFunc();
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<Window x:Class="WindowsOptimizationTool.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:WindowsOptimizationTool.ViewModels"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" WindowStyle="None" BorderThickness="0" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
<Window.DataContext>
<vm:MainViewModel/>
</Window.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>

<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="0.3*"/>
</Grid.ColumnDefinitions>

<Image Source="Images\2.jpg" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="7" Grid.RowSpan="12" Opacity="0.4" Stretch="Fill" />

<ComboBox IsReadOnly="True" IsEditable="True" Text="..." IsSynchronizedWithCurrentItem="True" Grid.Column="6" Margin="-20,0,0,0" Grid.Row="0" SelectedIndex="{Binding SelectedValue}" Background="WhiteSmoke" Opacity="0.7">
<ComboBoxItem Background="WhiteSmoke" Opacity="0.7">Exit</ComboBoxItem>
<ComboBoxItem Background="WhiteSmoke" Opacity="0.7">About</ComboBoxItem>
</ComboBox>

<TextBlock Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="5" Text="{Binding SpaceInfo}" FontSize="11"/>

<Label Content="Remove trash" Grid.Column="1" Grid.Row="1" FontSize="18" FontFamily="Tempus Sans ITC" FontWeight="Bold" Margin="5,0,0,0" />
<Label Content="Freeing storage" Grid.Column="3" Grid.Row="1" FontSize="18" FontFamily="Tempus Sans ITC" FontWeight="Bold" Margin="5,0,0,0" />
<Label Content="User preferences" Grid.Column="5" Grid.Row="1" FontSize="18" FontFamily="Tempus Sans ITC" FontWeight="Bold" Margin="5,0,0,0" />


<Button IsEnabled="{Binding IsEnabled}" Content="Empty Temp-Folder" ToolTip="Clean up all unnecessary temp files" Grid.Column="1" Grid.Row="2" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding EmptyTempFolder}"/>
<Button IsEnabled="{Binding IsEnabled}" Content="Remove Empty-Folders" ToolTip="Remove empty folders from drive C" Grid.Column="1" Grid.Row="3" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding RemoveEmptyFolders}"/>
<Button IsEnabled="{Binding IsEnabled}" Content="Activate Disk-Cleanup" ToolTip="Windows disk clean-up" Grid.Column="1" Grid.Row="4" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding CleanUp}"/>

<Button IsEnabled="{Binding IsEnabled}" Content="Disable Hibernation" ToolTip="Disable pc Hibernation - save 7GB of storage" Grid.Column="3" Grid.Row="2" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding CmdCommand}"/>
<Button IsEnabled="{Binding IsEnabled}" Content="Disable Restore-Point" ToolTip="Save space on you HDD" Grid.Column="3" Grid.Row="3" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding RestorePoine}"/>
<Button IsEnabled="{Binding IsEnabled}" Content="Disable Indexing" ToolTip="Increase performance" Grid.Column="3" Grid.Row="4" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding Index}"/>

<Button IsEnabled="{Binding IsEnabled}" Content="Turn off UAC" ToolTip="User-account-control" Grid.Column="5" Grid.Row="2" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding UAC}"/>
<Button IsEnabled="{Binding IsEnabled}" Content="Disable visual effects" ToolTip="Increase performance" Grid.Column="5" Grid.Row="3" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding Visual}"/>
<Button IsEnabled="{Binding IsEnabled}" Content="Disable WD" ToolTip="Windows Defender" Grid.Column="5" Grid.Row="4" Margin="7,7,7,7" Background="WhiteSmoke" Opacity="0.7" Command="{Binding WD}"/>

<ListView ItemsSource="{Binding ConsoleData}" Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="5" Grid.RowSpan="4" Foreground="White" Background="#FF000128" Opacity="0.8"/>

<ProgressBar Grid.Column="1" Grid.Row="10" Minimum="0" Maximum="{Binding ProgBarLength}" Grid.ColumnSpan="5" Value="{Binding ProgBarValue}" Background="White" Margin="0,7,0,7" Opacity="0.7"/>

</Grid>
</Window>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WindowsOptimizationTool
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WindowsOptimizationTool")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WindowsOptimizationTool")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.

//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]


[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]


// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a4b363a

Please sign in to comment.