* refactor the code to make it more OOP and extensible
[reactos.git] / irc / TechBot / TechBot.Library / Commands / Base / XmlCommand.cs
1 using System;
2 using System.Xml;
3 using System.Collections.Generic;
4 using System.Text;
5
6 namespace TechBot.Library
7 {
8 public abstract class XmlCommand : Command
9 {
10 protected XmlDocument m_XmlDocument;
11
12 public XmlCommand(TechBotService techBot)
13 : base(techBot)
14 {
15 m_XmlDocument = new XmlDocument();
16 m_XmlDocument.Load(XmlFile);
17 }
18
19 public abstract string XmlFile { get; }
20
21 public XmlDocument XmlDocument
22 {
23 get { return m_XmlDocument; }
24 }
25 }
26 }