Пример #1
0
 private static void AddEmptyChoice(SetupConfig setupConfig)
 {
     if (setupConfig.AllowNone)
     {
         var availableConfig = new SetupAvailable
         {
             Value = "None",
             Help = "None of the above",
             IsNull = true
         };
         setupConfig.SetupChoices.Add(availableConfig);
     }
 }
Пример #2
0
        private static void ExtractAvailableConfigs(XmlNode config, SetupConfig setupConfig)
        {
            var availables = config.GetChildrenByTag("available");
            for (int i = 0; i < availables.Count; i++)
            {
                var available = availables[i];

                var availableConfig = new SetupAvailable
                {
                    Value = available.GetAttribute("value"),
                    Help = available.GetAttribute("help"),
                    IsNull = false
                };

                ExtractWrokflow(available, availableConfig);
                setupConfig.SetupChoices.Add(availableConfig);
            }
            AddEmptyChoice(setupConfig);
        }