public VideoControlViewModel(LocalDownloadInfoPacket localDownInfo, DateTime begin, DateTime end, ITimeProcess playProcess) : this(begin, end, playProcess) { VideoInfo = localDownInfo.Info; DisplayModel = new VideoDisplayViewModel(localDownInfo, begin, end, _playProcess); }
public VideoControlViewModel(DownloadInfoParam downloadInfo, ITimeProcess playProcess) : this(downloadInfo.BeginTime, downloadInfo.EndTime, playProcess) { VideoInfo = downloadInfo; TotalMilliSeconds = (downloadInfo.EndTime - downloadInfo.BeginTime).TotalMilliseconds; DisplayModel = new VideoDisplayViewModel(downloadInfo, _playProcess); }