public void UpdateProgressBar(Guid guid, string text, long progress)
        {
            MainWindowStatusBarViewModel viewModel = this.DataContext as MainWindowStatusBarViewModel;

            viewModel?.SetProgress(guid, progress);
            viewModel?.SetProgressText(guid, text);
        }
        public void UpdateStatusBarText(string text)
        {
            MainWindowStatusBarViewModel viewModel = this.DataContext as MainWindowStatusBarViewModel;

            viewModel?.SetStatusBarText(text);
        }
        public void SetIndeterminate(Guid guid, bool bIndeterminate)
        {
            MainWindowStatusBarViewModel viewModel = this.DataContext as MainWindowStatusBarViewModel;

            viewModel?.SetIndeterminate(guid, bIndeterminate);
        }
        public void SetRange(Guid guid, long range)
        {
            MainWindowStatusBarViewModel viewModel = this.DataContext as MainWindowStatusBarViewModel;

            viewModel?.SetRange(guid, range);
        }
        public void Release(Guid guid)
        {
            MainWindowStatusBarViewModel viewModel = this.DataContext as MainWindowStatusBarViewModel;

            viewModel?.Release(guid);
        }