public MainViewModel(IMainModel model , IIOServices ioServices , IUIServices uiServices , IWindowFactory windowFactory) { Model = model; IOServices = ioServices; UIServices = uiServices; WindowFactory = windowFactory; m_TaskIsRunning = false; m_SelectedOverwriteOption = OverwriteOptions.First(); RemainingTimeCalculator = new RemainingTimeCalculator(); WindowsProgressBarHandler = new WindowsProgressBarHandler(); Synchronizer = new Synchronizer(Application.Current.Dispatcher); ReadLastRecentFile(); }
private void SetWindowsProgressBar() { WindowsProgressBarHandler.Set(TaskIsRunning ? ProgressValue : -1, ProgressMax); }