internal bool LoadVarConfig()
 {
     try
     {
         if (_varConfig == null)
         {
             _varConfig = new VarConfig();
             using (StreamReader streamReader = new StreamReader(_pathVarConfig, DefGeneral.DEFAULT_ENCODING))
                 _varConfig.ReadXml(streamReader);
             _varConfig.AcceptChanges();
         }
         return(true);
     }
     catch (Exception exception)
     {
         Tools.UserInfoHandler.ShowException(exception);
         return(false);
     }
 }
Esempio n. 2
0
 public override void Run(System.Collections.Generic.Dictionary <string, object> arguments = null)
 {
     try
     {
         string varPath = Path.Combine(UISessionInfo.GetEuromodFilesFolder(), @"XMLParam\Config\VarConfig.xml");
         varData = new VarConfig();
         using (StreamReader streamReader = new StreamReader(varPath, DefGeneral.DEFAULT_ENCODING)) varData.ReadXml(streamReader);
         (new VariablesCheckerForm()).ShowDialog();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
     }
 }