Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
            }
        }