private void AdminLinks_Load(object sender, EventArgs e) { var data = new YerbaSoft.DTO.ConfigurationManager(ConfigFullFileName).GetMainElement <WindowsHelper.EasyOpen.Configuration.EasyOpenConfig>(); lLinks.Items.Add(new Configuration.Exe() { Id = null, Name = "- NUEVO -" }); lLinks.Items.AddRange(data.Items.ToArray()); lLinks.SelectedIndex = 0; }
public static void Refresh() { var result = XmlHelper.ValidateXMLFromFiles(Path.Combine(AppPath, ConfigFileName), Path.Combine(AppPath, ConfigXSDFileName)); if (!result.Success) { foreach (var r in result.Data) { Global.Log($"{r.V1} :: Configuración {ConfigFileName} :: {r.V2}"); } return; } var mgr = new YerbaSoft.DTO.ConfigurationManager(Path.Combine(AppPath, ConfigFileName)); WindowsHelper = mgr.GetMainElement <WindowsHelper.Configuration.WindowsHelper>(); }