public static void OpenImageFile(string path, string variable) { try { if (Singleton == null) { Singleton = new FormImageFiles(); Gui.Docking.ShowDockContent(Singleton, Gui.Docking.DockFiles); } Singleton.AddImageFile(path); } catch (Exception ex) { Utility.ReportException(ex); } }
public static void OpenImageFile(string path, string variable) { try { if (Singleton == null) { Singleton = new FormImageFiles(); Gui.Docking.ShowDockContent(Singleton, Gui.Docking.DockFiles, ContentCategory.Others); } Singleton.timerShowLastDroppedFile.Start(); Singleton.BringToFront(); Singleton.AddImageFile(path); } catch (Exception ex) { Utility.ReportException(ex); } }