Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2020-09-23 06:01:20 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2020-09-23 06:01:20 +0300
commit1fee52f41d1344a8d868be5b207677cd878bc7db (patch)
treebc1c084bc4dff28f69a766c03d4c66c4489c54ff /UVtools.WPF/Controls/Helpers.cs
parent2f848af71837bfe36b35040b8847d456b778d84a (diff)
WPF progress
Diffstat (limited to 'UVtools.WPF/Controls/Helpers.cs')
-rw-r--r--UVtools.WPF/Controls/Helpers.cs67
1 files changed, 67 insertions, 0 deletions
diff --git a/UVtools.WPF/Controls/Helpers.cs b/UVtools.WPF/Controls/Helpers.cs
new file mode 100644
index 0000000..67fd27a
--- /dev/null
+++ b/UVtools.WPF/Controls/Helpers.cs
@@ -0,0 +1,67 @@
+/*
+ * GNU AFFERO GENERAL PUBLIC LICENSE
+ * Version 3, 19 November 2007
+ * Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ * Everyone is permitted to copy and distribute verbatim copies
+ * of this license document, but changing it is not allowed.
+ */
+using System.Collections.Generic;
+using Avalonia.Controls;
+
+namespace UVtools.WPF.Controls
+{
+ public static class Helpers
+ {
+ public static readonly List<FileDialogFilter> ImagesFileFilter = new List<FileDialogFilter>
+ {
+ new FileDialogFilter
+ {
+ Name = "Image Files",
+ Extensions = new List<string>
+ {
+ "png",
+ "bmp",
+ "jpeg",
+ "jpg",
+ "gif"
+ }
+ }
+ };
+
+ public static readonly List<FileDialogFilter> PngFileFilter = new List<FileDialogFilter>
+ {
+ new FileDialogFilter
+ {
+ Name = "Image Files",
+ Extensions = new List<string>
+ {
+ "png",
+ }
+ }
+ };
+
+ public static readonly List<FileDialogFilter> TxtFileFilter = new List<FileDialogFilter>
+ {
+ new FileDialogFilter
+ {
+ Name = "Text Files",
+ Extensions = new List<string>
+ {
+ "txt",
+ }
+ }
+ };
+
+ public static readonly List<FileDialogFilter> IniFileFilter = new List<FileDialogFilter>
+ {
+ new FileDialogFilter
+ {
+ Name = "Ini Files",
+ Extensions = new List<string>
+ {
+ "ini",
+ }
+ }
+ };
+ }
+}