Esempio n. 1
0
        /// <summary>
        /// Loading icons
        /// </summary>
        protected void LoadIcons()
        {
            string lXmlFilePath = this.SelectXmlFile();

            if (lXmlFilePath.Length > 0)
            {
                try
                {
                    this.UpdateWindow(JHJ.FolderIcons.Resources.MainWindow.LoadingIcons);
                    this.Application.LoadIcons(lXmlFilePath, true);
                    this.UpdateSetupTreeView();
                    this.ClearCounters();
                }
                catch (Exception lException)
                {
                    ErrorToolkit.ShowErrorMessage(lException);
                }
            }
Esempio n. 2
0
 /// <summary>
 /// Loading defaults
 /// </summary>
 protected void LoadDefaults()
 {
     try
     {
         this.UpdateWindow(JHJ.FolderIcons.Resources.MainWindow.LoadingDefaults);
         this.Application.LoadDefaults();
         this.UpdateSetupTreeView();
         this.ClearCounters();
     }
     catch (Exception lException)
     {
         ErrorToolkit.ShowErrorMessage(lException);
     }
     finally
     {
         this.UpdateWindow(string.Empty);
     }
 }