コード例 #1
0
 /// <summary>
 /// Reload data from database.
 /// </summary>
 private void ReLoadData(Action actionBeforeRestart = null)
 {
     ActionCloseTranslatedWindows.PerformClick();
     ActionSearchClear.PerformClick();
     PanelViewVerses.AutoScrollPosition    = new Point(0, 0);
     PanelSearchResults.AutoScrollPosition = new Point(0, 0);
     PanelViewVerses.Controls.Clear();
     PanelSearchResults.Controls.Clear();
     SearchResults = null;
     Refresh();
     ApplicationDatabase.Instance.Close();
     actionBeforeRestart?.Invoke();
     ApplicationDatabase.Restart();
     LoadData();
     DoStartGoToReference();
 }