code analysis and cleanup (#1411)
* cleanup scanner project * cleanup infrastructure projects * cleanup ffmpeg project * cleanup core project * cleanup app project * cleanup main project * update dependencies * code cleanup
This commit is contained in:
@@ -15,9 +15,9 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
|
||||
private int? _discardToFillAttempts;
|
||||
private int? _multipleCount;
|
||||
private TimeSpan? _playoutDuration;
|
||||
private TimeSpan? _startTime;
|
||||
private int _playoutDurationHours;
|
||||
private int _playoutDurationMinutes;
|
||||
private TimeSpan? _startTime;
|
||||
|
||||
public int Id { get; set; }
|
||||
public int Index { get; set; }
|
||||
@@ -145,7 +145,7 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
|
||||
private void CheckPlayoutDuration()
|
||||
{
|
||||
_playoutDuration ??= TimeSpan.Zero;
|
||||
|
||||
|
||||
if (_playoutDuration > TimeSpan.FromHours(24))
|
||||
{
|
||||
_playoutDuration = TimeSpan.FromHours(24);
|
||||
@@ -158,7 +158,7 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
|
||||
|
||||
_playoutDurationHours = (int)_playoutDuration.Value.TotalHours;
|
||||
_playoutDurationMinutes = _playoutDuration.Value.Minutes;
|
||||
|
||||
|
||||
OnPropertyChanged(nameof(PlayoutDuration));
|
||||
OnPropertyChanged(nameof(PlayoutDurationHours));
|
||||
OnPropertyChanged(nameof(PlayoutDurationMinutes));
|
||||
|
||||
Reference in New Issue
Block a user