
35 changed files with 376 additions and 304 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,6 @@ |
|||
|
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI\W10SS_GUI\App.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI\W10SS_GUI\LocalizedResources\localizedRU.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI\W10SS_GUI\MainWindow.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI\W10SS_GUI\localizedEN.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI\W10SS_GUI\LocalizedResources\localizedEN.xaml;; |
|||
|
|||
|
@ -1,18 +0,0 @@ |
|||
using System; |
|||
using System.Windows; |
|||
using System.Windows.Media.Animation; |
|||
|
|||
namespace W10SS_GUI |
|||
{ |
|||
internal class Animation |
|||
{ |
|||
internal static void NewAnimationFactory() |
|||
{ |
|||
DoubleAnimation hamburgerAnimation = new DoubleAnimation |
|||
{ |
|||
Duration = new Duration(new TimeSpan(hours: 0, minutes: 0, seconds: (int)GuiEnum.AnimationHamburgerDuration)), |
|||
SpeedRatio = (double)GuiEnum.AnimationHamburgerSpeedRatio |
|||
}; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,45 @@ |
|||
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; |
|||
} |
|||
|
|||
private struct Speed |
|||
{ |
|||
internal const int ButtonHamburger = 5; |
|||
} |
|||
|
|||
internal Dictionary<string, Storyboard> Storyboards = new Dictionary<string, Storyboard>(); |
|||
internal Dictionary<string, DoubleAnimation> Animations = new Dictionary<string, 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.WidthProperty)); |
|||
storyboard.Children.Add(animation); |
|||
|
|||
Animations.Add("Hamburger", animation); |
|||
Storyboards.Add("Hamburger", storyboard); |
|||
|
|||
#endregion Hamburger Animation
|
|||
} |
|||
|
|||
} |
|||
} |
@ -1,28 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows; |
|||
using System.Windows.Input; |
|||
|
|||
namespace W10SS_GUI |
|||
{ |
|||
public partial class Controls : ResourceDictionary |
|||
{ |
|||
private void ButtonClose_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
|||
{ |
|||
Application.Current.MainWindow.Close(); |
|||
} |
|||
|
|||
private void ButtonMinimize_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
|||
{ |
|||
Application.Current.MainWindow.WindowState = WindowState.Minimized; |
|||
} |
|||
|
|||
private void ButtonHamburger_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
@ -1,110 +0,0 @@ |
|||
#pragma checksum "..\..\..\Controls\controls.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1AA5BB6F87D14F188955C2C1E2B87E87EFA4E027"
|
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// Этот код создан программой.
|
|||
// Исполняемая версия:4.0.30319.42000
|
|||
//
|
|||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
|||
// повторной генерации кода.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
using System; |
|||
using System.Diagnostics; |
|||
using System.Windows; |
|||
using System.Windows.Automation; |
|||
using System.Windows.Controls; |
|||
using System.Windows.Controls.Primitives; |
|||
using System.Windows.Data; |
|||
using System.Windows.Documents; |
|||
using System.Windows.Ink; |
|||
using System.Windows.Input; |
|||
using System.Windows.Markup; |
|||
using System.Windows.Media; |
|||
using System.Windows.Media.Animation; |
|||
using System.Windows.Media.Effects; |
|||
using System.Windows.Media.Imaging; |
|||
using System.Windows.Media.Media3D; |
|||
using System.Windows.Media.TextFormatting; |
|||
using System.Windows.Navigation; |
|||
using System.Windows.Shapes; |
|||
using System.Windows.Shell; |
|||
|
|||
|
|||
namespace W10SS_GUI { |
|||
|
|||
|
|||
/// <summary>
|
|||
/// Controls
|
|||
/// </summary>
|
|||
public partial class Controls : System.Windows.ResourceDictionary, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector { |
|||
|
|||
private bool _contentLoaded; |
|||
|
|||
/// <summary>
|
|||
/// InitializeComponent
|
|||
/// </summary>
|
|||
[System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] |
|||
public void InitializeComponent() { |
|||
if (_contentLoaded) { |
|||
return; |
|||
} |
|||
_contentLoaded = true; |
|||
System.Uri resourceLocater = new System.Uri("/Win10SetupScript;component/controls/controls.xaml", System.UriKind.Relative); |
|||
|
|||
#line 1 "..\..\..\Controls\controls.xaml"
|
|||
System.Windows.Application.LoadComponent(this, resourceLocater); |
|||
|
|||
#line default
|
|||
#line hidden
|
|||
} |
|||
|
|||
[System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] |
|||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] |
|||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] |
|||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] |
|||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] |
|||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { |
|||
this._contentLoaded = true; |
|||
} |
|||
|
|||
[System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] |
|||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] |
|||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] |
|||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] |
|||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] |
|||
void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) { |
|||
switch (connectionId) |
|||
{ |
|||
case 1: |
|||
|
|||
#line 6 "..\..\..\Controls\controls.xaml"
|
|||
((System.Windows.Controls.StackPanel)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonClose_MouseLeftButtonDown); |
|||
|
|||
#line default
|
|||
#line hidden
|
|||
break; |
|||
case 2: |
|||
|
|||
#line 23 "..\..\..\Controls\controls.xaml"
|
|||
((System.Windows.Controls.StackPanel)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMinimize_MouseLeftButtonDown); |
|||
|
|||
#line default
|
|||
#line hidden
|
|||
break; |
|||
case 3: |
|||
|
|||
#line 40 "..\..\..\Controls\controls.xaml"
|
|||
((System.Windows.Controls.StackPanel)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonHamburger_MouseLeftButtonDown); |
|||
|
|||
#line default
|
|||
#line hidden
|
|||
break; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,4 @@ |
|||
|
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\App.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\Brushes\brushes.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\Localized\EN.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\Localized\RU.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\MainWindow.xaml;; |
|||
|
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI2\W10SS_GUI\MainWindow.xaml;; |
|||
|
|||
|
@ -1,7 +1,7 @@ |
|||
|
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\App.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\Brushes\brushes.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\Localized\EN.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\Localized\RU.xaml;; |
|||
FC:\Users\dmitriy.demin\source\repos\W10SS_GUI\W10SS_GUI\MainWindow.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI2\W10SS_GUI\App.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI2\W10SS_GUI\Brushes\brushes.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI2\W10SS_GUI\Localized\EN.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI2\W10SS_GUI\Localized\RU.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\W10SS_GUI2\W10SS_GUI\MainWindow.xaml;; |
|||
|
|||
|
@ -1,4 +1,4 @@ |
|||
|
|||
|
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\VS\Script_Gui\Script_Gui\MainWindow.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\WPF_GUI\Script_Gui\Script_Gui\MainWindow.xaml;; |
|||
|
|||
|
@ -1,4 +1,4 @@ |
|||
|
|||
|
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\VS\Script_Gui\Script_Gui_3\MainWindow.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\WPF_GUI\Script_Gui\Script_Gui_3\MainWindow.xaml;; |
|||
|
|||
|
@ -1,4 +1,4 @@ |
|||
|
|||
|
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\VS\Script_Gui\Script_Gui_List\MainWindow.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\WPF_GUI\Script_Gui\Script_Gui_List\MainWindow.xaml;; |
|||
|
|||
|
@ -1,4 +1,4 @@ |
|||
|
|||
|
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\VS\Script_Gui\Script_Gui_List\MainWindow.xaml;; |
|||
FC:\Users\dmitriy.demin\Documents\GitHub\Windows-10-Setup-Script\WPF_GUI\Script_Gui\Script_Gui_List\MainWindow.xaml;; |
|||
|
|||
|
Loading…
Reference in new issue