private void ReadFile(string file) { if (!File.Exists(file)) { return; } try { XmlDocument doc = new XmlDocument(); doc.Load(file); foreach (XmlNode n in doc.GetElementsByTagName("Command")) { CommandDescription cd = new CommandDescription(n); commands[cd.command] = cd; } } catch { } }
private void ReadFile(string file) { if (!File.Exists(file)) return; try { XmlDocument doc = new XmlDocument(); doc.Load(file); foreach (XmlNode n in doc.GetElementsByTagName("Command")) { CommandDescription cd = new CommandDescription(n); commands[cd.command] = cd; } } catch { } }