-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathProject.cs
More file actions
45 lines (40 loc) · 1.63 KB
/
Project.cs
File metadata and controls
45 lines (40 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Globalization;
using System.Windows.Data;
namespace UnityLauncherPro
{
public class Project : IValueConverter
{
public string Title { set; get; }
public string Version { set; get; }
public string Path { set; get; }
public DateTime? Modified { set; get; }
public string Arguments { set; get; }
public string GITBranch { set; get; } // TODO rename to Branch
//public string TargetPlatform { set; get; }
public string TargetPlatform { set; get; } // TODO rename to Platform
public string[] TargetPlatforms { set; get; }
public bool folderExists { set; get; }
public string SRP { set; get; } // Scriptable Render Pipeline, TODO add version info?
// WPF keeps calling this method from AppendFormatHelper, GetNameCore..? not sure if need to return something else or default would be faster?
public override string ToString()
{
return Path;
}
// for debugging
//public override string ToString()
//{
// return $"{Title} {Version} {Path} {Modified} {Arguments} {GITBranch} {TargetPlatform}";
//}
// change datagrid colors based on value using converter https://stackoverflow.com/a/5551986/5452781
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
bool b = (bool)value;
return b;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotSupportedException();
}
}
}