public MainWindowVM(ProgressBar searchProgressBar, TextBlock searchProgressText, ScrollViewer logScrollViewer) { m_LogScrollViewer = logScrollViewer; VisualLogger = new VisualLogger(); VisualLogger.OnUpdated += (logText) => { LogText = logText; }; VisualLogger.AddLine("Standing by."); SearchProgressBar = new ProgressBarWrapper(searchProgressBar, searchProgressText, () => { OnPropertyChanged(nameof(SearchProgressBar)); if (SearchProgressBar.IsCompleted) { VisualLogger.AddLine("Search completed."); } }); UpdateSearchQuery(SearchQueryType.Artist); }
public ProgressBarWrapperTask(ProgressBarWrapper parent, float taskWeight, int sectionCount) { m_Parent = parent; m_TaskWeight = taskWeight; m_SectionCount = sectionCount; }