From 0f346f1b8393199ed8a828aab0bafb3bfde3154d Mon Sep 17 00:00:00 2001 From: oZ-Zo <50652175+oz-zo@users.noreply.github.com> Date: Wed, 18 Sep 2019 16:15:13 +0300 Subject: [PATCH] Add action menu --- VS/GUI-1/App.config | 6 + VS/GUI-1/App.xaml | 9 + VS/GUI-1/App.xaml.cs | 17 + VS/GUI-1/GUI-1.csproj | 97 ++++ VS/GUI-1/MainWindow.xaml | 543 ++++++++++++++++++ VS/GUI-1/MainWindow.xaml.cs | 38 ++ VS/GUI-1/Properties/AssemblyInfo.cs | 55 ++ VS/GUI-1/Properties/Resources.Designer.cs | 71 +++ VS/GUI-1/Properties/Resources.resx | 117 ++++ VS/GUI-1/Properties/Settings.Designer.cs | 30 + VS/GUI-1/Properties/Settings.settings | 7 + .../Windows-10-Setup-Script.sln | 6 + 12 files changed, 996 insertions(+) create mode 100644 VS/GUI-1/App.config create mode 100644 VS/GUI-1/App.xaml create mode 100644 VS/GUI-1/App.xaml.cs create mode 100644 VS/GUI-1/GUI-1.csproj create mode 100644 VS/GUI-1/MainWindow.xaml create mode 100644 VS/GUI-1/MainWindow.xaml.cs create mode 100644 VS/GUI-1/Properties/AssemblyInfo.cs create mode 100644 VS/GUI-1/Properties/Resources.Designer.cs create mode 100644 VS/GUI-1/Properties/Resources.resx create mode 100644 VS/GUI-1/Properties/Settings.Designer.cs create mode 100644 VS/GUI-1/Properties/Settings.settings diff --git a/VS/GUI-1/App.config b/VS/GUI-1/App.config new file mode 100644 index 00000000..8e156463 --- /dev/null +++ b/VS/GUI-1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/VS/GUI-1/App.xaml b/VS/GUI-1/App.xaml new file mode 100644 index 00000000..862e7abd --- /dev/null +++ b/VS/GUI-1/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/VS/GUI-1/App.xaml.cs b/VS/GUI-1/App.xaml.cs new file mode 100644 index 00000000..feff87ae --- /dev/null +++ b/VS/GUI-1/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_1 +{ + /// + /// Логика взаимодействия для App.xaml + /// + public partial class App : Application + { + } +} diff --git a/VS/GUI-1/GUI-1.csproj b/VS/GUI-1/GUI-1.csproj new file mode 100644 index 00000000..f2529ae4 --- /dev/null +++ b/VS/GUI-1/GUI-1.csproj @@ -0,0 +1,97 @@ + + + + + Debug + AnyCPU + {70233A63-50E9-46A4-9177-D67403D23004} + WinExe + GUI_1 + GUI-1 + v4.5 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + \ No newline at end of file diff --git a/VS/GUI-1/MainWindow.xaml b/VS/GUI-1/MainWindow.xaml new file mode 100644 index 00000000..4ab3d35b --- /dev/null +++ b/VS/GUI-1/MainWindow.xaml @@ -0,0 +1,543 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/VS/GUI-1/MainWindow.xaml.cs b/VS/GUI-1/MainWindow.xaml.cs new file mode 100644 index 00000000..8587f4a8 --- /dev/null +++ b/VS/GUI-1/MainWindow.xaml.cs @@ -0,0 +1,38 @@ +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_1 +{ + /// + /// Логика взаимодействия для MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + + private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + Window.DragMove(); + } + + private void Window_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e) + { + Window.DragMove(); + } + } +} diff --git a/VS/GUI-1/Properties/AssemblyInfo.cs b/VS/GUI-1/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..298da4a6 --- /dev/null +++ b/VS/GUI-1/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-1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GUI-1")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// COM, задайте атрибуту ComVisible значение TRUE для этого типа. +[assembly: ComVisible(false)] + +//Чтобы начать создание локализуемых приложений, задайте +//CultureYouAreCodingWith в файле .csproj +//внутри . Например, если используется английский США +//в своих исходных файлах установите в 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")] diff --git a/VS/GUI-1/Properties/Resources.Designer.cs b/VS/GUI-1/Properties/Resources.Designer.cs new file mode 100644 index 00000000..90a6386f --- /dev/null +++ b/VS/GUI-1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программным средством. +// Версия среды выполнения: 4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если +// код создан повторно. +// +//------------------------------------------------------------------------------ + +namespace GUI_1.Properties +{ + + + /// + /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. + /// + // Этот класс был автоматически создан при помощи 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() + { + } + + /// + /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. + /// + [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_1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Переопределяет свойство CurrentUICulture текущего потока для всех + /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/VS/GUI-1/Properties/Resources.resx b/VS/GUI-1/Properties/Resources.resx new file mode 100644 index 00000000..af7dbebb --- /dev/null +++ b/VS/GUI-1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/VS/GUI-1/Properties/Settings.Designer.cs b/VS/GUI-1/Properties/Settings.Designer.cs new file mode 100644 index 00000000..cc7465a8 --- /dev/null +++ b/VS/GUI-1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +namespace GUI_1.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; + } + } + } +} diff --git a/VS/GUI-1/Properties/Settings.settings b/VS/GUI-1/Properties/Settings.settings new file mode 100644 index 00000000..033d7a5e --- /dev/null +++ b/VS/GUI-1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/VS/Windows-10-Setup-Script/Windows-10-Setup-Script.sln b/VS/Windows-10-Setup-Script/Windows-10-Setup-Script.sln index 2a23ff17..8a9d615a 100644 --- a/VS/Windows-10-Setup-Script/Windows-10-Setup-Script.sln +++ b/VS/Windows-10-Setup-Script/Windows-10-Setup-Script.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.28307.757 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Windows-10-Setup-Script", "Windows-10-Setup-Script.csproj", "{D5A79EFF-F519-43EE-9806-A25ED11852C9}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GUI-1", "..\GUI-1\GUI-1.csproj", "{70233A63-50E9-46A4-9177-D67403D23004}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {D5A79EFF-F519-43EE-9806-A25ED11852C9}.Debug|Any CPU.Build.0 = Debug|Any CPU {D5A79EFF-F519-43EE-9806-A25ED11852C9}.Release|Any CPU.ActiveCfg = Release|Any CPU {D5A79EFF-F519-43EE-9806-A25ED11852C9}.Release|Any CPU.Build.0 = Release|Any CPU + {70233A63-50E9-46A4-9177-D67403D23004}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70233A63-50E9-46A4-9177-D67403D23004}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70233A63-50E9-46A4-9177-D67403D23004}.Release|Any CPU.ActiveCfg = Release|Any CPU + {70233A63-50E9-46A4-9177-D67403D23004}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE