public void ReadXml(XmlReader reader) { int od = reader.Depth; reader.Read(); while (reader.Depth != od) { switch (reader.Name) { case "Protocol": protocol = ProtocolRegistry.GetProtocol(reader.ReadInnerXml()); break; case "Address": address = reader.ReadInnerXml(); break; case "Name": name = reader.ReadInnerXml(); break; case "Port": port = Int32.Parse(reader.ReadInnerXml()); break; default: reader.ReadInnerXml(); break; } } reader.Read(); }
public void DefaultSettings() { Nickname = "Birch"; Username = "******"; uiFont = new FontFamily("Arial"); messageFont = new FontFamily("Consolas"); AddNetworkInformation(new NetworkInformation(ProtocolRegistry.GetProtocol("IRC"), 0, "int0x10.com", 6697, "int0x10", true)); }