public static void ShowHistory() { // Make sure the history is loaded, will be done only once ImgurUtils.LoadHistory(); if (_instance == null) { _instance = new ImgurHistory(); } _instance.Show(); _instance.Redraw(); }
public static void ShowHistory() { lock (Lock) { if (ImgurUtils.IsHistoryLoadingNeeded()) { // Run upload in the background new PleaseWaitForm().ShowAndWait("Imgur " + Language.GetString("imgur", LangKey.history), Language.GetString("imgur", LangKey.communication_wait), ImgurUtils.LoadHistory ); } // Make sure the history is loaded, will be done only once if (_instance == null) { _instance = new ImgurHistory(); } if (!_instance.Visible) { _instance.Show(); } _instance.Redraw(); } }