Added: support for add tile at coord

This commit is contained in:
Ray committed 2020-05-17 02:17:30 +01:00
1 parent c90d846f2e
commit d4258b39eb
9 files changed
+408 -371

No files matched your search

+16 -2
View File
@@ -7,7 +7,6 @@ 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; }
@@ -16,7 +15,22 @@ namespace AppLauncher.Models
public Point Position { get; set; }
public bool IsGroup { get; set; } = false;
protected List<TileModel> Items { get; set; } = new List<TileModel>();
public List<TileModel> Items { get; set; } = new List<TileModel>();
public override string ToString() => this.Title ?? string.Empty;
//public void Update(TileModel model)
//{
// this.Title = model.Title;
// this.ProcessFilename = model.ProcessFilename;
// this.ProcessArgument = model.ProcessArgument;
// this.ProcessWorkingDirectory = model.ProcessWorkingDirectory;
// this.ProcessWindowStyle = model.ProcessWindowStyle;
// this.ProcessAsAdmin = model.ProcessAsAdmin;
// this.Position = model.Position;
// this.IsGroup = model.IsGroup;
// this.Items = model.Items;
//}
}
}