Bloom.CollectionTab.LibraryModel.BringBookUpToDate C# (CSharp) Method

BringBookUpToDate() public method

public BringBookUpToDate ( ) : void
return void
        public void BringBookUpToDate()
        {
            var b = _bookSelection.CurrentSelection;
            _bookSelection.SelectBook(null);

            using (var dlg = new ProgressDialogForeground()) //REVIEW: this foreground dialog has known problems in other contexts... it was used here because of its ability to handle exceptions well. TODO: make the background one handle exceptions well
            {
                dlg.ShowAndDoWork(progress=>b.BringBookUpToDate(progress));
            }

            _bookSelection.SelectBook(b);
        }

Usage Example

 private void OnBringBookUpToDate_Click(object sender, EventArgs e)
 {
     _model.BringBookUpToDate();
 }