FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnityLauncherPro/UnityLauncherPro/Data/Project.cs at dev · unitycoder/UnityLauncherPro · GitHub
unitycoder
UnityLauncherPro
Repository navigation
Code
Issues
23
(23)
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
UnityLauncherPro
/
UnityLauncherPro
/
Data
/
Project.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (40 loc) · 1.63 KB
Breadcrumbs
UnityLauncherPro
/
UnityLauncherPro
/
Data
/
Project.cs
Copy path
File metadata and controls
45 lines (40 loc) · 1.63 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
(
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL