Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
version and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyvinia committed May 22, 2022
1 parent f3437be commit 41dc45f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.4.0")]
[assembly: AssemblyFileVersion("4.4.0")]
[assembly: AssemblyVersion("4.4.1")]
[assembly: AssemblyFileVersion("4.4.1")]
26 changes: 12 additions & 14 deletions Themes/DarkTheme.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

namespace FrostyFix4.Themes
{
public partial class DarkTheme
{
private void CloseWindow_Event(object sender, RoutedEventArgs e)
{
public partial class DarkTheme {

private void CloseWindow_Event(object sender, RoutedEventArgs e) {
if (e.Source != null)
try { CloseWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
}
private void AutoMinimize_Event(object sender, RoutedEventArgs e)
{

private void AutoMinimize_Event(object sender, RoutedEventArgs e) {
if (e.Source != null)
try { MaximizeRestore(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
}
private void Minimize_Event(object sender, RoutedEventArgs e)
{

private void Minimize_Event(object sender, RoutedEventArgs e) {
if (e.Source != null)
try { MinimizeWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
}
Expand All @@ -24,20 +23,19 @@ public void CloseWind(Window window) {
window.Close();
}

public void MaximizeRestore(Window window)
{
public void MaximizeRestore(Window window) {
if (window.WindowState == WindowState.Maximized) {
window.WindowState = WindowState.Normal;
}

else if (window.WindowState == WindowState.Normal) {
window.WindowState = WindowState.Maximized;
}

}

public const string WrapperGridName = "WrapperGrid";
}

public void MinimizeWind(Window window) => window.WindowState = WindowState.Minimized;

public const string WrapperGridName = "WrapperGrid";
}
}

0 comments on commit 41dc45f

Please sign in to comment.