Browse Source

New version without substrate

pull/17/head
oZ-Zo 6 years ago
parent
commit
72e5fa922a
  1. 27
      NormalizeTextByLength.ps1
  2. 205
      ToggleButtonsGenerator.ps1
  3. 2706
      VS/GUI-3/MainWindow.xaml
  4. 6
      VS/GUI-4/App.config
  5. 9
      VS/GUI-4/App.xaml
  6. 17
      VS/GUI-4/App.xaml.cs
  7. 97
      VS/GUI-4/GUI-4.csproj
  8. 2976
      VS/GUI-4/MainWindow.xaml
  9. 33
      VS/GUI-4/MainWindow.xaml.cs
  10. 55
      VS/GUI-4/Properties/AssemblyInfo.cs
  11. 71
      VS/GUI-4/Properties/Resources.Designer.cs
  12. 117
      VS/GUI-4/Properties/Resources.resx
  13. 30
      VS/GUI-4/Properties/Settings.Designer.cs
  14. 7
      VS/GUI-4/Properties/Settings.settings
  15. 6
      VS/Windows-10-Setup-Script/Windows-10-Setup-Script.sln
  16. 3036
      Win-10-Setup-Script-GUI-Without-Substrate.ps1
  17. 2710
      Win-10-Setup-Script-GUI.ps1

27
NormalizeTextByLength.ps1

@ -0,0 +1,27 @@
$string = $null
$sourceText = Get-Content -Path "C:\Tmp\text.txt"
for ($i = 0; $i -lt $sourceText.Count; $i++) {
if ($i % 2 -eq 0) {
$string += """{0}"","-f $sourceText[$i].Replace("# ","")
}
}
$text = "Turn on Storage Sense to automatically free up space","Run Storage Sense every month","Delete temporary files that apps aren't using","Delete files in recycle bin if they have been there for over 30 days","Never delete files in ""Downloads"" folder","Turn off app suggestions on Start menu","Turn off hibernate","Turn off location for this device","Change environment variable for '$env:TEMP' to '$env:SystemDrive\Temp'","Turn on Win32 long paths","Group svchost.exe processes","Turn on Retpoline patch against Spectre v2","Turn on the display of stop error information on the BSoD","Do not preserve zone information","Turn off Admin Approval Mode for administrators","Turn on access to mapped
drives from app running with elevated permissions with Admin Approval Mode enabled","Set download mode for delivery optization on ""HTTP only""","Always wait for the network at computer startup and logon","Turn off Cortana","Do not allow Windows 10 to manage default printer","Turn off Windows features","Remove Windows capabilities","Uninstall Onedrive","Turn on updates for other Microsoft products","Enable System Restore","Turn off Windows Script Host","Turn off default background apps except","Set power management scheme for desktop and laptop","Turn on .NET 4 runtime for all apps","Turn
on firewall & network protection","Do not allow the computer to turn off the device to save power for desktop","Set the default input method to the English language","Remove printers","Turn on Windows Sandbox","Open shortcut to the Command Prompt from Start menu as Administrator","Use the PrtScn
button to open screen snipping","Create old style shortcut for ""Devices and Printers"" in '$env:APPDATA\Microsoft\Windows\Start Menu\Programs\System Tools'","Set location of the ""Desktop"", ""Documents"" ""Downloads"" ""Music"", ""Pictures"" and ""Videos""","Turn on automatic recommended troubleshooting","Set ""High performance"" in graphics performance preference for apps","Automatically adjust active hours for me based on daily usage","Launch folder in a separate process","Turn on automatic backup the system registry to the '$env:SystemRoot\System32\config\RegBack' folder","Turn off ""The Windows Filtering Platform has blocked a connection"" message","Turn off SmartScreen for apps and files","Turn off F1 Help key","Turn on Num Lock at startup","Turn off sticky Shift key after pressing 5 times"
#region Normalize Text by Length
$textLength = New-Object System.Collections.ArrayList($null)
for ($i = 0; $i -lt $text.Length; $i++) {
$obj = New-Object -TypeName PSObject -Property @{TextLength = $text[$i].Length; Text = $text[$i] }
[void]$textLength.Add($obj)
}
($textLength | Group-Object -Property TextLength | Sort-Object -Property Count -Descending).Group.Text -replace """", """ | ForEach-Object {
"""{0}""," -f $_
}
#endregion Normalize Text by Length

205
ToggleButtonsGenerator.ps1

@ -1,61 +1,10 @@
# Clear-Host
# $sourceText = Get-Content -Path "C:\Tmp\text.txt"
# for ($i = 0; $i -lt $sourceText.Count; $i++) {
# if ($i % 2 -eq 0) {
# $string += """{0}"","-f $sourceText[$i].Replace("# ","")
# }
# }
#region Eng Description
# $text = "Turn off ""Connected User Experiences and Telemetry"" service","Turn off per-user services","Turn off the Autologger session at the next computer restart",
# "Turn off the SQMLogger session at the next computer restart","Set the operating system diagnostic data level to ""Basic""","Turn off Windows Error Reporting","Change Windows Feedback frequency to ""Never""",
# "Turn off diagnostics tracking scheduled tasks","Do not offer tailored experiences based on the diagnostic data setting","Do not let apps on other devices open and message apps
on this device, and vice versa",
# "Do not allow apps to use advertising ID","Do not use sign-in info to automatically finish setting
up device after an update or restart","Do not let websites provide locally relevant content by
accessing language list",
# "Turn off reserved storage","Turn off tip, trick, and suggestions as you use Windows","Turn off suggested content in the Settings","Turn off automatic installing suggested apps","Set File Explorer to open to This PC by default",
# "Show Hidden Files, Folders, and Drives","Show File Name Extensions","Hide Task View button on taskbar","Show folder merge conflicts","Turn off Snap Assist","Turn off check boxes to select items","Show seconds on taskbar clock",
# "Hide People button on the taskbar","Hide all folders in the navigation pane","Turn on acrylic taskbar transparency","Turn off app launch tracking to improve Start menu and search results","Show ""This PC"" on Desktop",
# "Show more details in file transfer dialog","Remove the ""Previous Versions"" tab from properties context menu","Always show all icons in the notification area","Set the Control Panel view by large icons",
# "Remove 3D Objects folder in ""This PC"" and in the navigation pane","Hide ""Frequent folders"" in Quick access","Hide ""Recent files"" in Quick access","Turn off creation of an Edge shortcut on the desktop for each user profile",
# "Hide ""Windows Ink Workspace"" button in taskbar","Hide search box or search icon on taskbar","Turn on recycle bin files delete confirmation","Turn on ribbon in File Explorer","Choose theme color for default Windows mode",
# "Choose theme color for default app mode","Turn off ""New App Installed"" notification","Turn off recently added apps on Start Menu", "Turn off thumbnail cache removal","Turn off user first sign-in animation",
# "Turn off JPEG desktop wallpaper import quality reduction","Show Task Manager details","Unpin Microsoft Edge and Microsoft Store from taskbar","Remove Microsoft Edge shortcut from the Desktop",
# "Let Windows try to fix apps so they're not blurry","Import Start menu layout from pre-saved reg file","Show accent color on the title bars and window borders","Turn off automatically hiding scroll bars",
# "Save screenshots by pressing Win+PrtScr to the Desktop","Show more Windows Update restart notifications about restarting","Turn off the ""- Shortcut"" name extension for new shortcuts",
# "Turn on Storage Sense to automatically free up space","Run Storage Sense every month","Delete temporary files that apps aren't using","Delete files in recycle bin if they have been there for over 30 days",
# "Never delete files in ""Downloads"" folder","Turn off app suggestions on Start menu","Turn off hibernate","Turn off location for this device","Change environment variable for $env:TEMP to $env:SystemDrive\Temp",
# "Turn on Win32 long paths","Group svchost.exe processes","Turn on Retpoline patch against Spectre v2","Turn on the display of stop error information on the BSoD","Do not preserve zone information",
# "Turn off Admin Approval Mode for administrators","Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled","Set download mode for delivery optization on ""HTTP only""",
# "Always wait for the network at computer startup and logon","Turn off Cortana","Do not allow Windows 10 to manage default printer","Turn off Windows features","Remove Windows capabilities","Uninstall Onedrive",
# "Turn on updates for other Microsoft products","Enable System Restore","Turn off Windows Script Host","Turn off default background apps except","Set power management scheme for desktop and laptop",
# "Turn on .NET 4 runtime for all apps","Turn on firewall & network protection","Do not allow the computer to turn off the device to save power for desktop","Set the default input method to the English language",
# "Remove printers","Turn on Windows Sandbox","Open shortcut to the Command Prompt from Start menu as Administrator","Use the PrtScn button to open screen snipping",
# "Create old style shortcut for ""Devices and Printers"" in ""$env:APPDATA\Microsoft\Windows\Start Menu\Programs\System Tools""","Set location of the ""Desktop"", ""Documents"" ""Downloads"" ""Music"", ""Pictures"", and ""Videos""",
# "Turn on automatic recommended troubleshooting","Set ""High performance"" in graphics performance preference for apps","Automatically adjust active hours for me based on daily usage",
# "Launch folder in a separate process","Turn on automatic backup the system registry to the ""$env:SystemRoot\System32\config\RegBack"" folder","Turn off ""The Windows Filtering Platform has blocked a connection"" message",
# "Turn off SmartScreen for apps and files","Turn off F1 Help key","Turn on Num Lock at startup","Turn off sticky Shift key after pressing 5 times","Turn off Windows Defender SmartScreen for Microsoft Edge",
# "Do not allow Microsoft Edge to start and load the Start and New Tab page at Windows startup and each time Microsoft Edge is closed",
# "Do not allow Microsoft Edge to pre-launch at Windows startup, when the system is idle, and each time Microsoft Edge is closed","Uninstall all UWP apps from all accounts except","Uninstall all UWP apps from all accounts except",
# "Turn off Windows Game Recording and Broadcasting","Turn off Game Bar","Turn off Game Mode","Turn off Game Bar tips","Create scheduled task with the disk cleanup tool in Task Scheduler. The task runs every 90 days",
# "Create task to clean out the ""$env:SystemRoot\SoftwareDistribution\Download"" folder in Task Scheduler","Create scheduled task with the $env:TEMP folder cleanup in Task Scheduler. The task runs every 62 days",
# "Add folder to exclude from Windows Defender Antivirus scan","Turn on Windows Defender Exploit Guard Network Protection","Turn on Controlled folder access and add protected folders",
# "Turn on Windows Defender PUA Protection","Hide notification about sign in with Microsoft in the Windows Security","Hide notification about disabled Smartscreen for Microsoft Edge","Turn on Windows Defender Sandbox",
# "Add ""Extract"" to MSI file type context menu","Add ""Run as different user"" from context menu for .exe file type","Add ""Install"" to CAB file type context menu","Remove ""Cast to Device"" from context menu",
# "Remove ""Share"" from context menu","Remove ""Previous Versions"" from file context menu","Remove ""Edit with Paint 3D"" from context menu","Remove ""Include in Library"" from context menu",
# "Remove ""Turn on BitLocker"" from context menu","Remove ""Edit with Photos"" from context menu","Remove ""Create a new video"" from Context Menu","Remove ""Edit"" from Context Menu",
# "Remove ""Print"" from batch and cmd files context menu","Remove ""Compressed (zipped) Folder"" from context menu","Remove ""Rich Text Document"" from context menu","Remove ""Bitmap image"" from context menu",
# "Remove ""Send to"" from folder context menu","Make the ""Open"", ""Print"", ""Edit"" context menu items available, when more than 15 selected","Turn off ""Look for an app in the Microsoft Store"" in ""Open with"" dialog"
#endregion Eng Description
#region Privacy & Telemetry Normalized
$text = "Change Windows Feedback frequency to "Never"",
#region Privacy & Telemetry Normalized Text
$textPrivacy = "Change Windows Feedback frequency to "Never"",
"Turn off automatic installing suggested apps",
"Turn off "Connected User Experiences and Telemetry" service",
"Turn off the SQMLogger session at the next computer restart",
"Do not allow apps to use advertising ID",
"Do not use sign-in info to automatically finish setting up device after an update or restart","Do not let websites provide locally relevant content by accessing language list",
"Do not use sign-in info to automatically finish setting up device after an update or restart", "Do not let websites provide locally relevant content by accessing language list",
"Turn off suggested content in the Settings",
"Turn off tip, trick, and suggestions as you use Windows",
"Turn off reserved storage",
@ -66,46 +15,138 @@ $text = "Change Windows Feedback frequency to "Never"",
"Do not offer tailored experiences based on the diagnostic data setting",
"Turn off diagnostics tracking scheduled tasks",
"Turn off Windows Error Reporting"
#endregion Privacy & Telemetry Normalized
#endregion Privacy & Telemetry Normalized Text
#region Normalize Text by Length
# $textLength = New-Object System.Collections.ArrayList($null)
#region UI & Personalization Normalized Text
$textUi = "Set the Control Panel view by large icons",
"Hide search box or search icon on taskbar",
"Turn off "New App Installed" notification",
"Turn off automatically hiding scroll bars",
"Hide all folders in the navigation pane",
"Hide "Frequent folders" in Quick access",
"Choose theme color for default app mode",
"Show File Name Extensions",
"Show "This PC" on Desktop",
"Show Task Manager details",
"Remove Microsoft Edge shortcut from the Desktop",
"Import Start menu layout from pre-saved reg file",
"Show more details in file transfer dialog",
"Turn off recently added apps on Start Menu",
"Remove the "Previous Versions" tab from properties context menu",
"Show more Windows Update restart notifications about restarting",
"Turn off check boxes to select items",
"Turn on acrylic taskbar transparency",
"Always show all icons in the notification area",
"Hide "Windows Ink Workspace" button in taskbar",
"Hide Task View button on taskbar",
"Turn off thumbnail cache removal",
"Show accent color on the title bars and window borders",
"Save screenshots by pressing Win+PrtScr to the Desktop",
"Turn on ribbon in File Explorer",
"Turn on recycle bin files delete confirmation",
"Choose theme color for default Windows mode",
"Turn off user first sign-in animation",
"Let Windows try to fix apps so they're not blurry",
"Turn off the "- Shortcut" name extension for new shortcuts",
"Turn off JPEG desktop wallpaper import quality reduction",
"Unpin Microsoft Edge and Microsoft Store from taskbar",
"Show seconds on taskbar clock",
"Hide People button on the taskbar",
"Turn off Snap Assist",
"Show Hidden Files, Folders, and Drives",
"Show folder merge conflicts",
"Hide "Recent files" in Quick access",
"Turn off creation of an Edge shortcut on the desktop for each user profile",
"Remove 3D Objects folder in "This PC" and in the navigation pane",
"Turn off app launch tracking to improve Start menu and search results",
"Set File Explorer to open to This PC by default"
#endregion UI & Personalization Normalized Text
# for ($i = 0; $i -lt 17; $i++) {
# $obj = New-Object -TypeName PSObject -Property @{TextLength = $text[$i].Length; Text = $text[$i]}
# [void]$textLength.Add($obj)
# }
# ($textLength | Group-Object -Property TextLength | Sort-Object -Property Count -Descending).Group.Text -replace """", """ | ForEach-Object {
# """{0}"","-f $_
# }
#endregion Normalize Text by Length
#region System
$text = "Group svchost.exe processes",
"Remove Windows capabilities",
"Turn on Num Lock at startup",
"Turn on the display of stop error information on the BSoD",
"Always wait for the network at computer startup and logon",
"Turn on Storage Sense to automatically free up space",
"Set the default input method to the English language",
"Do not allow the computer to turn off the device to save power for desktop",
"Turn off "The Windows Filtering Platform has blocked a connection" message",
"Turn off default background apps except",
"Turn off SmartScreen for apps and files",
"Turn on .NET 4 runtime for all apps",
"Launch folder in a separate process",
"Turn off hibernate",
"Uninstall Onedrive",
"Delete temporary files that apps aren't using",
"Turn on automatic recommended troubleshooting",
"Delete files in recycle bin if they have been there for over 30 days",
"Open shortcut to the Command Prompt from Start menu as Administrator",
"Turn off app suggestions on Start menu",
"Turn
on firewall & network protection",
"Remove printers",
"Turn on Windows Sandbox",
"Turn off sticky Shift key after pressing 5 times",
"Set power management scheme for desktop and laptop",
"Turn off Windows Script Host",
"Set "High performance" in graphics performance preference for apps",
"Automatically adjust active hours for me based on daily usage",
"Turn on automatic backup the system registry to the 'C:\Windows\System32\config\RegBack' folder",
"Set location of the "Desktop", "Documents" "Downloads" "Music", "Pictures" and "Videos"",
"Use the PrtScn
button to open screen snipping",
"Create old style shortcut for "Devices and Printers" in 'C:\Users\dmitriy.demin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools'",
"Turn off F1 Help key",
"Turn on Win32 long paths",
"Turn on Retpoline patch against Spectre v2",
"Do not preserve zone information",
"Change environment variable for 'C:\Temp' to 'C:\Temp'",
"Run Storage Sense every month",
"Never delete files in "Downloads" folder",
"Turn off location for this device",
"Turn off Admin Approval Mode for administrators",
"Turn off Windows features",
"Turn on updates for other Microsoft products",
"Enable System Restore",
"Do not allow Windows 10 to manage default printer",
"Turn on access to mapped
drives from app running with elevated permissions with Admin Approval Mode enabled",
"Set download mode for delivery optization on "HTTP only"",
"Turn off Cortana"
#endregion System
#region Toggle Buttons Generator
# Privacy & Telemetry: $i = 0; $i -lt 17 ; $i++
if (Test-Path -Path "C:\Tmp\toggleButtons.txt") {
Remove-Item -Path "C:\Tmp\toggleButtons.txt" -Force -Confirm:$false
}
$toggleSwitchName = "ToggleSwitchSystem" # For UI & Personalization Settings
#"ToggleSwitchPrivacy" # For Privacy & Telemetry Settings
#"ToggleSwitchUi" # For UI & Personalization Settings
#"ToggleSwitchSystem" # For System Settings
$texBoxName = "TexBlockSystem" # For UI & Personalization Settings
#"TexBlockPrivacy" # For Privacy & Telemetry Settings
#"TexBlockUi" # For UI & Personalization Settings
#"TexBlockSystem" # For System Settings
for ($i = 0; $i -lt $text.Length; $i++) {
$content = $text[$i].Replace("""", """)
@"
<Border BorderBrush="#DADADA" BorderThickness="1 0 1 1" Margin="10 0 10 0" Background="#FFFFFF">
@"
<Border BorderBrush="{Binding ElementName=BorderPrivacy, Path=BorderBrush}" BorderThickness="{Binding ElementName=BorderPrivacy, Path=BorderThickness}" Margin="{Binding ElementName=BorderPrivacy, Path=Margin}" Style="{StaticResource BorderHoverStyle}">
<StackPanel Orientation="Horizontal" Margin="10">
<Grid HorizontalAlignment="Left">
<ToggleButton Name="ToggleSwitch$i" Style="{DynamicResource ToggleSwitchLeftStyle}" IsChecked="False"/>
<TextBlock Margin="65 0 10 0" VerticalAlignment="Center" IsHitTestVisible="False">
<ToggleButton Name="$toggleSwitchName$i" Style="{DynamicResource ToggleSwitchLeftStyle}" IsChecked="False"/>
<TextBlock Name="$texBoxName$i" Text="$content" Margin="65 0 10 0" VerticalAlignment="Center" IsHitTestVisible="False">
<TextBlock.Style>
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}">
<Setter Property="Text" Value="$content" />
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=ToggleSwitch$i, Path=IsChecked}" Value="True">
<Setter Property="Text" Value="$content"/>
<DataTrigger Binding="{Binding ElementName=$toggleSwitchName$i, Path=IsChecked}" Value="True">
<Setter Property="Foreground" Value="{Binding ElementName=BorderWindow, Path=BorderBrush}"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=ToggleSwitch$i, Path=IsEnabled}" Value="false">
<DataTrigger Binding="{Binding ElementName=$toggleSwitchName$i, Path=IsEnabled}" Value="false">
<Setter Property="Opacity" Value="0.2" />
</DataTrigger>
</Style.Triggers>
@ -116,5 +157,13 @@ for ($i = 0; $i -lt $text.Length; $i++) {
</StackPanel>
</Border>
"@ | Out-File -FilePath "C:\Tmp\toggleButtons.txt" -Append
# Add Placeholder Panel to Group End
if ($i -eq ($text.Length - 1)) {
@"
<!--Placeholder Panel-->
<StackPanel Margin="{Binding ElementName=BorderPrivacy, Path=Margin}" Height="{Binding ElementName=BorderPrivacy, Path=Height}" Background="Transparent"/>
"@ | Out-File -FilePath "C:\Tmp\toggleButtons.txt" -Append
}
}
#endregion Toggle Buttons Generator

2706
VS/GUI-3/MainWindow.xaml

File diff suppressed because it is too large

6
VS/GUI-4/App.config

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

9
VS/GUI-4/App.xaml

@ -0,0 +1,9 @@
<Application x:Class="GUI_4.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GUI_4"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

17
VS/GUI-4/App.xaml.cs

@ -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 GUI_4
{
/// <summary>
/// Логика взаимодействия для App.xaml
/// </summary>
public partial class App : Application
{
}
}

97
VS/GUI-4/GUI-4.csproj

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CBC5A83A-6512-420F-83A8-FC1D40A17D20}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>GUI_4</RootNamespace>
<AssemblyName>GUI-4</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

2976
VS/GUI-4/MainWindow.xaml

File diff suppressed because it is too large

33
VS/GUI-4/MainWindow.xaml.cs

@ -0,0 +1,33 @@
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 GUI_4
{
/// <summary>
/// Логика взаимодействия для MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Window_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
{
DragMove();
}
}
}

55
VS/GUI-4/Properties/AssemblyInfo.cs

@ -0,0 +1,55 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// Общие сведения об этой сборке предоставляются следующим набором
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("GUI-4")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GUI-4")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
[assembly: ComVisible(false)]
//Чтобы начать создание локализуемых приложений, задайте
//<UICulture>CultureYouAreCodingWith</UICulture> в файле .csproj
//внутри <PropertyGroup>. Например, если используется английский США
//в своих исходных файлах установите <UICulture> в en-US. Затем отмените преобразование в комментарий
//атрибута NeutralResourceLanguage ниже. Обновите "en-US" в
//строка внизу для обеспечения соответствия настройки UICulture в файле проекта.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //где расположены словари ресурсов по конкретным тематикам
//(используется, если ресурс не найден на странице,
// или в словарях ресурсов приложения)
ResourceDictionaryLocation.SourceAssembly //где расположен словарь универсальных ресурсов
//(используется, если ресурс не найден на странице,
// в приложении или в каких-либо словарях ресурсов для конкретной темы)
)]
// Сведения о версии сборки состоят из следующих четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию.
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

71
VS/GUI-4/Properties/Resources.Designer.cs

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программным средством.
// Версия среды выполнения: 4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
// код создан повторно.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GUI_4.Properties
{
/// <summary>
/// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
/// </summary>
// Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
// класс с помощью таких средств, как ResGen или Visual Studio.
// Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
// с параметром /str или заново постройте свой VS-проект.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GUI_4.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Переопределяет свойство CurrentUICulture текущего потока для всех
/// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

117
VS/GUI-4/Properties/Resources.resx

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

30
VS/GUI-4/Properties/Settings.Designer.cs

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GUI_4.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

7
VS/GUI-4/Properties/Settings.settings

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

6
VS/Windows-10-Setup-Script/Windows-10-Setup-Script.sln

@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GUI-2", "..\GUI-2\GUI-2.csp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GUI-3", "..\GUI-3\GUI-3.csproj", "{6314A588-2600-4F41-B667-36717A1847B3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GUI-4", "..\GUI-4\GUI-4.csproj", "{CBC5A83A-6512-420F-83A8-FC1D40A17D20}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -33,6 +35,10 @@ Global
{6314A588-2600-4F41-B667-36717A1847B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6314A588-2600-4F41-B667-36717A1847B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6314A588-2600-4F41-B667-36717A1847B3}.Release|Any CPU.Build.0 = Release|Any CPU
{CBC5A83A-6512-420F-83A8-FC1D40A17D20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBC5A83A-6512-420F-83A8-FC1D40A17D20}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBC5A83A-6512-420F-83A8-FC1D40A17D20}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBC5A83A-6512-420F-83A8-FC1D40A17D20}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

3036
Win-10-Setup-Script-GUI-Without-Substrate.ps1

File diff suppressed because it is too large

2710
Win-10-Setup-Script-GUI.ps1

File diff suppressed because it is too large
Loading…
Cancel
Save