-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code cleanup and began new editorconfig setting integrations
- Loading branch information
1 parent
23184bd
commit b775987
Showing
22 changed files
with
89 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
using PhotoCollage.Common.Enums; | ||
|
||
namespace PhotoCollage.Common | ||
namespace PhotoCollage.Common; | ||
|
||
public class CollageSettings | ||
{ | ||
public class CollageSettings | ||
{ | ||
public string Directory { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); | ||
public bool IsGrayscale { get; set; } = false; | ||
public bool IsRandom { get; set; } = true; | ||
public int MaximumRotation { get; set; } = 15; | ||
public int MaximumSize { get; set; } = 500; | ||
public bool IsFullScreen { get; set; } = false; | ||
public bool RotateBasedOnEXIF { get; set; } = false; | ||
public int NumberOfPhotos { get; set; } = 10; | ||
public double Opacity { get; set; } = 1.0; | ||
public BorderType PhotoBorderType { get; set; } = BorderType.Border; | ||
public ScreensaverSpeed Speed { get; set; } = ScreensaverSpeed.Medium; | ||
public FullScreenMode PhotoFullScreenMode { get; set; } = FullScreenMode.Centred; | ||
public bool UseVerboseLogging { get; set; } = false; | ||
} | ||
public string Directory { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); | ||
public bool IsGrayscale { get; set; } = false; | ||
public bool IsRandom { get; set; } = true; | ||
public int MaximumRotation { get; set; } = 15; | ||
public int MaximumSize { get; set; } = 500; | ||
public bool IsFullScreen { get; set; } = false; | ||
public bool RotateBasedOnEXIF { get; set; } = false; | ||
public int NumberOfPhotos { get; set; } = 10; | ||
public double Opacity { get; set; } = 1.0; | ||
public BorderType PhotoBorderType { get; set; } = BorderType.Border; | ||
public ScreensaverSpeed Speed { get; set; } = ScreensaverSpeed.Medium; | ||
public FullScreenMode PhotoFullScreenMode { get; set; } = FullScreenMode.Centered; | ||
public bool UseVerboseLogging { get; set; } = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
public enum FullScreenMode | ||
{ | ||
Stretched, | ||
Centred | ||
Centered | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
using System.Linq; | ||
|
||
namespace PhotoCollageScreensaver | ||
{ | ||
using System.Collections.Generic; | ||
namespace PhotoCollageScreensaver; | ||
|
||
using System.Collections.Generic; | ||
|
||
public static class EnumExtension | ||
{ | ||
public static IEnumerable<(T item, int index)> WithIndex<T>(this IEnumerable<T> self) | ||
=> self.Select((item, index) => (item, index)); | ||
} | ||
public static class EnumExtension | ||
{ | ||
public static IEnumerable<(T item, int index)> WithIndex<T>(this IEnumerable<T> self) | ||
=> self.Select((item, index) => (item, index)); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.