
19 changed files with 782 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|||
# Visual Studio 15 |
|||
VisualStudioVersion = 15.0.28307.1000 |
|||
MinimumVisualStudioVersion = 10.0.40219.1 |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W10SS_GUI", "W10SS_GUI\W10SS_GUI.csproj", "{278999F3-23AA-4699-ABC7-873A2FC6C247}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|Any CPU = Debug|Any CPU |
|||
Release|Any CPU = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{278999F3-23AA-4699-ABC7-873A2FC6C247}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{278999F3-23AA-4699-ABC7-873A2FC6C247}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{278999F3-23AA-4699-ABC7-873A2FC6C247}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{278999F3-23AA-4699-ABC7-873A2FC6C247}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
GlobalSection(ExtensibilityGlobals) = postSolution |
|||
SolutionGuid = {98D8E0CD-5C7D-4DED-B930-B1D7E8FCDE84} |
|||
EndGlobalSection |
|||
EndGlobal |
@ -0,0 +1,50 @@ |
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Windows; |
|||
using System.Windows.Media.Animation; |
|||
|
|||
namespace W10SS_GUI |
|||
{ |
|||
internal class AnimationFactory |
|||
{ |
|||
private struct Duration |
|||
{ |
|||
internal const int ButtonHamburger = 1; |
|||
} |
|||
|
|||
internal struct Element |
|||
{ |
|||
internal const int Hamburger = 0; |
|||
} |
|||
|
|||
private struct Speed |
|||
{ |
|||
internal const int ButtonHamburger = 5; |
|||
} |
|||
|
|||
internal Dictionary<int, Storyboard> Storyboards = new Dictionary<int, Storyboard>(); |
|||
internal Dictionary<int, DoubleAnimation> Animations = new Dictionary<int, DoubleAnimation>(); |
|||
|
|||
public AnimationFactory() |
|||
{ |
|||
#region Hamburger Animation
|
|||
|
|||
DoubleAnimation animation = new DoubleAnimation |
|||
{ |
|||
Duration = new System.Windows.Duration(new TimeSpan(hours: 0, minutes: 0, seconds: Duration.ButtonHamburger)), |
|||
SpeedRatio = Speed.ButtonHamburger |
|||
}; |
|||
|
|||
Storyboard storyboard = new Storyboard(); |
|||
Storyboard.SetTargetProperty(animation, new PropertyPath(FrameworkElement.HeightProperty)); |
|||
storyboard.Children.Add(animation); |
|||
|
|||
Animations.Add(Element.Hamburger, animation); |
|||
Storyboards.Add(Element.Hamburger, storyboard); |
|||
|
|||
#endregion Hamburger Animation
|
|||
} |
|||
|
|||
} |
|||
} |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<configuration> |
|||
<startup> |
|||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /> |
|||
</startup> |
|||
</configuration> |
@ -0,0 +1,16 @@ |
|||
<Application x:Class="W10SS_GUI.App" |
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:W10SS_GUI" |
|||
StartupUri="MainWindow.xaml"> |
|||
<Application.Resources> |
|||
<ResourceDictionary> |
|||
<ResourceDictionary.MergedDictionaries> |
|||
<ResourceDictionary Source="pack://application:,,,/Localized/EN.xaml" /> |
|||
<ResourceDictionary Source="pack://application:,,,/Brushes/brushes.xaml" /> |
|||
<ResourceDictionary Source="pack://application:,,,/Controls/controls.xaml" /> |
|||
<ResourceDictionary Source="pack://application:,,,/Controls/controlsSizes.xaml" /> |
|||
</ResourceDictionary.MergedDictionaries> |
|||
</ResourceDictionary> |
|||
</Application.Resources> |
|||
</Application> |
@ -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 W10SS_GUI |
|||
{ |
|||
/// <summary>
|
|||
/// Логика взаимодействия для App.xaml
|
|||
/// </summary>
|
|||
public partial class App : Application |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,8 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Brushes"> |
|||
<SolidColorBrush x:Key="ColorBlack" Color="Black"/> |
|||
<SolidColorBrush x:Key="ColorWhite" Color="White"/> |
|||
<SolidColorBrush x:Key="buttonHamburgerBackground" Color="#0173c7"/> |
|||
<SolidColorBrush x:Key="buttonHamburgerHover" Color="#2a8ad4"/> |
|||
</ResourceDictionary> |
@ -0,0 +1,32 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|||
<!--#region Hamburger Button--> |
|||
<ControlTemplate x:Key="buttonHamburger" TargetType="Button"> |
|||
<StackPanel Name="buttonHamburger" Background="{DynamicResource ResourceKey=buttonHamburgerBackground}"> |
|||
<StackPanel Name="containerHamburger" > |
|||
<Viewbox Width="28" Height="28" Margin="6"> |
|||
<Canvas Width="24" Height="24"> |
|||
<Path Data="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" Fill="{DynamicResource ResourceKey=ColorWhite}" /> |
|||
</Canvas> |
|||
</Viewbox> |
|||
</StackPanel> |
|||
</StackPanel> |
|||
<ControlTemplate.Triggers> |
|||
<Trigger Property="IsMouseOver" Value="True"> |
|||
<Setter TargetName="buttonHamburger" Property="Background" Value="{DynamicResource ResourceKey=buttonHamburgerHover}"/> |
|||
</Trigger> |
|||
<Trigger Property="IsPressed" Value="True"> |
|||
<Trigger.EnterActions> |
|||
<BeginStoryboard> |
|||
<Storyboard> |
|||
<ThicknessAnimation Storyboard.TargetName="containerHamburger" Storyboard.TargetProperty="Margin" Duration="0:0:0.5" From="0 0 0 0" To="0 5 0 0" SpeedRatio="5" AutoReverse="True"/> |
|||
</Storyboard> |
|||
</BeginStoryboard> |
|||
</Trigger.EnterActions> |
|||
</Trigger> |
|||
</ControlTemplate.Triggers> |
|||
</ControlTemplate> |
|||
<!--#endregion Hamburger Button--> |
|||
|
|||
|
|||
</ResourceDictionary> |
@ -0,0 +1,21 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Controls" |
|||
xmlns:system="clr-namespace:System;assembly=mscorlib"> |
|||
<system:Double x:Key="windowTextSize">16</system:Double> |
|||
<system:Double x:Key="windowHeaderTextSize">18</system:Double> |
|||
<system:Double x:Key="windowMinHeight">863</system:Double> |
|||
<system:Double x:Key="windowMinWidth">800</system:Double> |
|||
<system:Double x:Key="buttonHamburgerWidth">40</system:Double> |
|||
<system:Double x:Key="buttonHamburgerHeight">40</system:Double> |
|||
<system:Double x:Key="panelHamburgerWidth">300</system:Double> |
|||
<system:Double x:Key="panelHamburgerMinHeight">0</system:Double> |
|||
<system:Double x:Key="panelHamburgerMaxHeight">300</system:Double> |
|||
<system:Int32 x:Key="panelHamburgerZIndex">10</system:Int32> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
</ResourceDictionary> |
@ -0,0 +1,6 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Localized" |
|||
xmlns:system="clr-namespace:System;assembly=mscorlib"> |
|||
<!--<system:String x:Key="textblockHamburgerPrivacy">Privacy & Telemetry</system:String>--> |
|||
</ResourceDictionary> |
@ -0,0 +1,5 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Localized"> |
|||
|
|||
</ResourceDictionary> |
@ -0,0 +1,50 @@ |
|||
<Window x:Class="W10SS_GUI.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:local="clr-namespace:W10SS_GUI" |
|||
mc:Ignorable="d" |
|||
Name="Window" Title="Windows 10 Setup Script" MinHeight="{StaticResource ResourceKey=windowMinHeight}" |
|||
MinWidth="{StaticResource ResourceKey=windowMinWidth}" Height="{StaticResource ResourceKey=windowMinHeight}" |
|||
Width="{StaticResource ResourceKey=windowMinWidth}" FontFamily="Calibri" FontSize="{StaticResource ResourceKey=windowTextSize}" |
|||
TextOptions.TextFormattingMode="Display" WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True" |
|||
ResizeMode="CanResize" ShowInTaskbar="True" Background="{StaticResource {x:Static SystemColors.WindowBrushKey}}" |
|||
Foreground="{StaticResource {x:Static SystemColors.WindowTextBrushKey}}" Initialized="Window_Initialized" ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
|||
<Grid Name="gridWindow"> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="40"/> |
|||
<RowDefinition Height="*"/> |
|||
<RowDefinition Height="30"/> |
|||
</Grid.RowDefinitions> |
|||
|
|||
<!--#region Header --> |
|||
<StackPanel Name="windowHeader" Grid.Row="0" Orientation="Horizontal" Background="{StaticResource ResourceKey=buttonHamburgerBackground}"> |
|||
<Button Name="buttonHamburger" Template="{StaticResource ResourceKey=buttonHamburger}" Width="{StaticResource ResourceKey=buttonHamburgerWidth}" |
|||
Height="{StaticResource ResourceKey=buttonHamburgerHeight}" Canvas.Top="0" Canvas.Left="0"/> |
|||
<TextBlock Name="textHeader" FontSize="{StaticResource ResourceKey=windowHeaderTextSize}" Canvas.Left="60" |
|||
Canvas.Top="8" Text="Windows 10 Setup Script" Foreground="{StaticResource ResourceKey=ColorWhite}" |
|||
VerticalAlignment="Center" Margin="10" /> |
|||
</StackPanel> |
|||
<!--#endregion Header --> |
|||
|
|||
<!--#region Context --> |
|||
<Grid Grid.Row="1"> |
|||
<!--#region Hamburger Panel--> |
|||
<StackPanel Name="panelHamburger" Width="{StaticResource ResourceKey=panelHamburgerWidth}" |
|||
MinHeight="{StaticResource ResourceKey=panelHamburgerMinHeight}" Height="{StaticResource ResourceKey=panelHamburgerMinHeight}" |
|||
MaxHeight="{StaticResource ResourceKey=panelHamburgerMaxHeight}" VerticalAlignment="Top" |
|||
HorizontalAlignment="Left" Panel.ZIndex="{StaticResource ResourceKey=panelHamburgerZIndex}" |
|||
Background="{StaticResource ResourceKey=buttonHamburgerHover}" /> |
|||
<!--#endregion Hamburger Panel--> |
|||
|
|||
|
|||
|
|||
</Grid> |
|||
<!--#endregion Context --> |
|||
|
|||
<!--#region Footer --> |
|||
<StackPanel Grid.Row="2" Background="{StaticResource ResourceKey=buttonHamburgerBackground}"/> |
|||
<!--#endregion Footer --> |
|||
</Grid> |
|||
</Window> |
@ -0,0 +1,66 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading; |
|||
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 W10SS_GUI |
|||
{ |
|||
/// <summary>
|
|||
/// Логика взаимодействия для MainWindow.xaml
|
|||
/// </summary>
|
|||
public partial class MainWindow : Window |
|||
{ |
|||
AnimationFactory AnimationFactory = new AnimationFactory(); |
|||
|
|||
public MainWindow() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
|
|||
private void Window_Initialized(object sender, EventArgs e) |
|||
{ |
|||
SetLanguageDictionary(); |
|||
buttonHamburger.Click += ButtonHamburger_Click; |
|||
} |
|||
|
|||
private void ButtonWindowMinimize_Click(object sender, RoutedEventArgs e) => Application.Current.MainWindow.WindowState = WindowState.Minimized; |
|||
|
|||
private void ButtonWindowClose_Click(object sender, RoutedEventArgs e) => Application.Current.MainWindow.Close(); |
|||
|
|||
private void SetLanguageDictionary() |
|||
{ |
|||
ResourceDictionary dict = new ResourceDictionary(); |
|||
|
|||
switch (Thread.CurrentThread.CurrentCulture.ToString()) |
|||
{ |
|||
default: |
|||
dict.Source = new Uri("pack://application:,,,/Localized/EN.xaml", UriKind.Absolute); |
|||
break; |
|||
} |
|||
|
|||
Resources.MergedDictionaries.Add(dict); |
|||
} |
|||
|
|||
private void ButtonHamburger_Click(object sender, RoutedEventArgs e) |
|||
{ |
|||
//AnimationFactory.Animations[AnimationFactory.Element.Hamburger].To = panelHamburger.ActualWidth == panelHamburger.MinWidth ?
|
|||
// panelHamburger.MaxWidth : panelHamburger.MinWidth;
|
|||
AnimationFactory.Animations[AnimationFactory.Element.Hamburger].To = panelHamburger.ActualHeight == panelHamburger.MinHeight ? |
|||
panelHamburger.MaxHeight : panelHamburger.MinHeight; |
|||
AnimationFactory.Storyboards[AnimationFactory.Element.Hamburger].Begin(panelHamburger); |
|||
} |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,55 @@ |
|||
using System.Reflection; |
|||
using System.Resources; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
using System.Windows; |
|||
|
|||
// Общие сведения об этой сборке предоставляются следующим набором
|
|||
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
|
|||
// связанные со сборкой.
|
|||
[assembly: AssemblyTitle("W10SS_GUI")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("")] |
|||
[assembly: AssemblyProduct("W10SS_GUI")] |
|||
[assembly: AssemblyCopyright("Copyright © 2020")] |
|||
[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")] |
@ -0,0 +1,71 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// Этот код создан программным средством.
|
|||
// Версия среды выполнения: 4.0.30319.42000
|
|||
//
|
|||
// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
|
|||
// код создан повторно.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace W10SS_GUI.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("W10SS_GUI.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; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -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> |
@ -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 W10SS_GUI.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; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,7 @@ |
|||
<?xml version='1.0' encoding='utf-8'?> |
|||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)"> |
|||
<Profiles> |
|||
<Profile Name="(Default)" /> |
|||
</Profiles> |
|||
<Settings /> |
|||
</SettingsFile> |
@ -0,0 +1,124 @@ |
|||
<?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>{278999F3-23AA-4699-ABC7-873A2FC6C247}</ProjectGuid> |
|||
<OutputType>WinExe</OutputType> |
|||
<RootNamespace>W10SS_GUI</RootNamespace> |
|||
<AssemblyName>Win10SetupScript</AssemblyName> |
|||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
|||
<WarningLevel>4</WarningLevel> |
|||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
|||
<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> |
|||
<PropertyGroup> |
|||
<ApplicationManifest>app.manifest</ApplicationManifest> |
|||
</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="Brushes\brushes.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
<Page Include="Controls\controls.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
<Page Include="Controls\controlsSizes.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
<Page Include="Localized\EN.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
<Page Include="Localized\RU.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
<Page Include="MainWindow.xaml"> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
<SubType>Designer</SubType> |
|||
</Page> |
|||
<Compile Include="AnimationFactory.cs" /> |
|||
<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="app.manifest" /> |
|||
<None Include="Properties\Settings.settings"> |
|||
<Generator>SettingsSingleFileGenerator</Generator> |
|||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
|||
</None> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<None Include="App.config" /> |
|||
</ItemGroup> |
|||
<ItemGroup /> |
|||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|||
</Project> |
@ -0,0 +1,76 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> |
|||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> |
|||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> |
|||
<security> |
|||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> |
|||
<!--Параметры манифеста UAC |
|||
Если вы хотите изменить уровень контроля учетных записей, замените узел |
|||
requestedExecutionLevel на один из следующих. |
|||
|
|||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> |
|||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> |
|||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> |
|||
|
|||
При указании элемента requestedExecutionLevel будет отключена виртуализация файлов и реестра. |
|||
Удалите этот элемент, если виртуализация требуется приложению для обратной |
|||
совместимости. |
|||
--> |
|||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> |
|||
</requestedPrivileges> |
|||
</security> |
|||
</trustInfo> |
|||
|
|||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> |
|||
<application> |
|||
<!-- Список версий Windows, на которых это приложение было протестировано |
|||
и будет работать. Раскомментируйте соответствующие элементы, чтобы ОС Windows |
|||
автоматически выбрала наиболее совместимое окружение. --> |
|||
|
|||
<!-- Windows Vista --> |
|||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />--> |
|||
|
|||
<!-- Windows 7 --> |
|||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />--> |
|||
|
|||
<!-- Windows 8 --> |
|||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />--> |
|||
|
|||
<!-- Windows 8.1 --> |
|||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />--> |
|||
|
|||
<!-- Windows 10 --> |
|||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> |
|||
|
|||
</application> |
|||
</compatibility> |
|||
|
|||
<!-- Указывает, что приложение поддерживает определение DPI и не будет автоматически масштабироваться Windows при более высоких |
|||
значениях DPI. Приложения Windows Presentation Foundation (WPF) по умолчанию поддерживают определение DPI, им не нужно |
|||
специально включать параметр для этого. Для приложений Windows Forms на платформе .NET Framework 4.6, для которых задан этот параметр, необходимо |
|||
также задать для "EnableWindowsFormsHighDpiAutoResizing" значение "true" в файле app.config.--> |
|||
<!-- |
|||
<application xmlns="urn:schemas-microsoft-com:asm.v3"> |
|||
<windowsSettings> |
|||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> |
|||
</windowsSettings> |
|||
</application> |
|||
--> |
|||
|
|||
<!-- Включите темы для общих элементов управления и диалоговых окон Windows (Windows XP и более поздние версии) --> |
|||
<!-- |
|||
<dependency> |
|||
<dependentAssembly> |
|||
<assemblyIdentity |
|||
type="win32" |
|||
name="Microsoft.Windows.Common-Controls" |
|||
version="6.0.0.0" |
|||
processorArchitecture="*" |
|||
publicKeyToken="6595b64144ccf1df" |
|||
language="*" |
|||
/> |
|||
</dependentAssembly> |
|||
</dependency> |
|||
--> |
|||
|
|||
</assembly> |
Loading…
Reference in new issue