Пример #1
0
 void FormImageFiles_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         Singleton = null;
     }
     catch (Exception ex)
     {
         Utility.ReportException(ex);
     }
 }
Пример #2
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);
            }
        }
Пример #3
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);
            }
        }
Пример #4
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);
            }
        }
Пример #5
0
 void FormImageFiles_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         foreach (ListViewItem item in listViewImages.Items)
         {
             PathVariable tag = (PathVariable)item.Tag;
             if (Gui.Scripting.Variables[tag.Variable] == Gui.ImageControl.Image)
             {
                 Gui.ImageControl.Image = null;
                 break;
             }
         }
         Singleton = null;
     }
     catch (Exception ex)
     {
         Utility.ReportException(ex);
     }
 }
Пример #6
0
 void FormImageFiles_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         Singleton = null;
     }
     catch (Exception ex)
     {
         Utility.ReportException(ex);
     }
 }