Skip to content

Commit 3002fbb

Browse files
refactor ChangeFilePick to be more descriptive)
1 parent fe7142d commit 3002fbb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Samples/StyleTransfer/AppViewModel.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ public async Task SetModelSource()
131131
await ChangeLiveStream();
132132
break;
133133
case "AcquireImage":
134-
await ChangeFilePick();
134+
await ChangeImage();
135135
break;
136136
case "FilePick":
137-
await ChangeFilePick();
137+
await ChangeImage();
138138
break;
139139
case "Inking":
140140
break;
@@ -161,7 +161,7 @@ private async Task StartAcquireImage()
161161
Debug.WriteLine("Failed to capture image");
162162
}
163163

164-
await ChangeFilePick();
164+
await ChangeImage();
165165
}
166166

167167
public async Task StartFilePick()
@@ -178,7 +178,7 @@ public async Task StartFilePick()
178178
}
179179
else
180180
{
181-
await ChangeFilePick();
181+
await ChangeImage();
182182
}
183183

184184
}
@@ -189,7 +189,7 @@ public async Task StartFilePick()
189189
}
190190
}
191191

192-
public async Task ChangeFilePick()
192+
public async Task ChangeImage()
193193
{
194194
// Make sure have an input image, use default otherwise
195195
if (_appModel.InputFrame == null)
@@ -221,9 +221,9 @@ private async Task EvaluateVideoFrameAsync()
221221
Debug.WriteLine($"{output.Key} : {output.Value} -> {output.Value.GetType()}");
222222
}
223223

224+
224225
await InputSoftwareBitmapSource.SetBitmapAsync(_appModel.InputFrame.SoftwareBitmap);
225226
await OutputSoftwareBitmapSource.SetBitmapAsync(_appModel.OutputFrame.SoftwareBitmap);
226-
227227
}
228228
}
229229
public async Task StartLiveStream()

0 commit comments

Comments
 (0)