Archived
Added: environment path support
This commit is contained in:
1 parent
b5a404735d
commit
a0147102b6
2 files changed
+14
-20
No files matched your search
+7
-13
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
|
||||
@@ -19,18 +20,11 @@ namespace AppLauncher.Models
|
||||
|
||||
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;
|
||||
//}
|
||||
public string CleanProcessFilename => (string.IsNullOrWhiteSpace(this.ProcessFilename) ? string.Empty : Environment.ExpandEnvironmentVariables(this.ProcessFilename));
|
||||
|
||||
public string CleanProcessArgument => (string.IsNullOrWhiteSpace(this.ProcessArgument) ? string.Empty : Environment.ExpandEnvironmentVariables(this.ProcessArgument));
|
||||
|
||||
public string CleanProcessWorkingDirectory => (string.IsNullOrWhiteSpace(this.ProcessWorkingDirectory) ? string.Empty : Environment.ExpandEnvironmentVariables(this.ProcessWorkingDirectory));
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user