Refresh() public method

public Refresh ( bool fullRefresh ) : int
fullRefresh bool True to compare against database; False for style change
return int
示例#1
0
        public void DoRefresh()
        {
            if (!CurrentDocumentControllerIsReady)
            {
                return;
            }

            var currentDatabase = currentDocumentController.GetDatabase();

            if (currentDatabase == null)
            {
                ShowNoDatabaseMessage();
                return;
            }

            var citationsUpdated = currentDocumentController.Refresh(true);

            if (citationsUpdated > 0)
            {
                MessageBox.Show(citationsUpdated == 1
                                                ? "One citation has been updated to match its entry in the Bibtex database."
                                                : citationsUpdated + " citations have been updated to match their entries in the Bibtex database."
                                , "Docear4Word");
            }
        }