Skip to content

Commit de38792

Browse files
author
Linnea May
committed
pr comments pt1: mostly naming conventions + aesthetics
1 parent c880d30 commit de38792

File tree

4 files changed

+178
-113
lines changed

4 files changed

+178
-113
lines changed

Samples/StyleTransfer/AppModel.cs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ public AppModel()
2525
this._outputCaptureElement = new CaptureElement();
2626
}
2727

28+
public List<String> ModelFileNames
29+
{
30+
get
31+
{
32+
return new List<string>
33+
{ "candy",
34+
"mosaic",
35+
"la_muse",
36+
"udnie"
37+
};
38+
}
39+
}
40+
2841
// Name of the style transfer model to apply to input media
2942
private string _modelSource;
3043
public string ModelSource
@@ -81,10 +94,15 @@ public CaptureElement OutputCaptureElement
8194
{
8295
get
8396
{
84-
if (_outputCaptureElement == null) _outputCaptureElement = new CaptureElement();
97+
if (_outputCaptureElement == null)
98+
_outputCaptureElement = new CaptureElement();
8599
return _outputCaptureElement;
86100
}
87-
set { _outputCaptureElement = value; OnPropertyChanged(); }
101+
set
102+
{
103+
_outputCaptureElement = value;
104+
OnPropertyChanged();
105+
}
88106
}
89107

90108
// MediaSource for the input media

0 commit comments

Comments
 (0)