diff --git a/W10SS_GUI2_280120/W10SS_GUI.sln b/W10SS_GUI2_280120/W10SS_GUI.sln new file mode 100644 index 00000000..139da9bf --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI.sln @@ -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 diff --git a/W10SS_GUI2_280120/W10SS_GUI/AnimationFactory.cs b/W10SS_GUI2_280120/W10SS_GUI/AnimationFactory.cs new file mode 100644 index 00000000..8c742b15 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/AnimationFactory.cs @@ -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 Storyboards = new Dictionary(); + internal Dictionary Animations = new Dictionary(); + + 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 + } + + } +} \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/App.config b/W10SS_GUI2_280120/W10SS_GUI/App.config new file mode 100644 index 00000000..8324aa6f --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/App.xaml b/W10SS_GUI2_280120/W10SS_GUI/App.xaml new file mode 100644 index 00000000..014a0f18 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/App.xaml @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/W10SS_GUI2_280120/W10SS_GUI/App.xaml.cs b/W10SS_GUI2_280120/W10SS_GUI/App.xaml.cs new file mode 100644 index 00000000..669b2725 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/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 W10SS_GUI +{ + /// + /// Логика взаимодействия для App.xaml + /// + public partial class App : Application + { + } +} diff --git a/W10SS_GUI2_280120/W10SS_GUI/Brushes/brushes.xaml b/W10SS_GUI2_280120/W10SS_GUI/Brushes/brushes.xaml new file mode 100644 index 00000000..3e630ba6 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/Brushes/brushes.xaml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/Controls/controls.xaml b/W10SS_GUI2_280120/W10SS_GUI/Controls/controls.xaml new file mode 100644 index 00000000..feaf06a2 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/Controls/controls.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/Controls/controlsSizes.xaml b/W10SS_GUI2_280120/W10SS_GUI/Controls/controlsSizes.xaml new file mode 100644 index 00000000..253a864f --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/Controls/controlsSizes.xaml @@ -0,0 +1,21 @@ + + 16 + 18 + 863 + 800 + 40 + 40 + 300 + 0 + 300 + 10 + + + + + + + \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/Localized/EN.xaml b/W10SS_GUI2_280120/W10SS_GUI/Localized/EN.xaml new file mode 100644 index 00000000..501fdf45 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/Localized/EN.xaml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/Localized/RU.xaml b/W10SS_GUI2_280120/W10SS_GUI/Localized/RU.xaml new file mode 100644 index 00000000..e75dcdce --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/Localized/RU.xaml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/W10SS_GUI2_280120/W10SS_GUI/MainWindow.xaml b/W10SS_GUI2_280120/W10SS_GUI/MainWindow.xaml new file mode 100644 index 00000000..c32942c0 --- /dev/null +++ b/W10SS_GUI2_280120/W10SS_GUI/MainWindow.xaml @@ -0,0 +1,50 @@ + + + + + + + + + + +