|
@@ -57,22 +57,17 @@ namespace VideoImageBuilder.Service
|
|
MessageBox.Show("ChargeboxId shoud not be empty");
|
|
MessageBox.Show("ChargeboxId shoud not be empty");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (string.IsNullOrEmpty(uiContext.VideoPath1))
|
|
|
|
|
|
+ if (string.IsNullOrEmpty(uiContext.VideoPath1) && string.IsNullOrEmpty(uiContext.VideoPath2))
|
|
{
|
|
{
|
|
- MessageBox.Show("Vertical screensave video file path should not be empty");
|
|
|
|
|
|
+ MessageBox.Show("video file path should not be empty");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (!File.Exists(uiContext.VideoPath1))
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(uiContext.VideoPath1) && !File.Exists(uiContext.VideoPath1))
|
|
{
|
|
{
|
|
MessageBox.Show("Vertical screensave video file not found");
|
|
MessageBox.Show("Vertical screensave video file not found");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (string.IsNullOrEmpty(uiContext.VideoPath2))
|
|
|
|
- {
|
|
|
|
- MessageBox.Show("Horizonal AD video file path should not be empty");
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- if (!File.Exists(uiContext.VideoPath2))
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(uiContext.VideoPath2) && !File.Exists(uiContext.VideoPath2))
|
|
{
|
|
{
|
|
MessageBox.Show("Horizontal AD video file not found");
|
|
MessageBox.Show("Horizontal AD video file not found");
|
|
return false;
|
|
return false;
|