WIP: refactoring + tile layout

This commit is contained in:
Ray committed 2020-04-11 18:43:20 +01:00
1 parent 06f570122c
commit c9edc93e40
23 files changed
+1078 -491

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
using System.Collections.Generic;
using System.Drawing;
namespace AppLauncher.Models
{
public class TileGroupModel
{
public string Title { get; set; }
public bool IsExpanded { get; set; } = false;
public bool IsExclusive { get; set; } = false;
public List<TileModel> Items { get; set; } = new List<TileModel>();
public Size GridSize = new Size(0, 0);
}
}
+22
View File
@@ -0,0 +1,22 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
namespace AppLauncher.Models
{
public class TileModel
{
public string Title { get; set; }
public Image Icon { get; set; }
public string ProcessFilename { get; set; }
public string ProcessArgument { get; set; }
public string ProcessWorkingDirectory { get; set; }
public ProcessWindowStyle ProcessWindowStyle { get; set; } = ProcessWindowStyle.Normal;
public bool ProcessAsAdmin { get; set; } = false;
public Point Position { get; set; }
public bool IsGroup { get; set; } = false;
protected List<TileModel> Items { get; set; } = new List<TileModel>();
}
}