mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 15:18:30 +00:00
* refactor the code to make it more OOP and extensible
* remove old outdated SD project files * make it use some .NET 2.0 features as generic collections and settings svn path=/trunk/; revision=31130
This commit is contained in:
parent
588f8770cd
commit
82b5e2eb8b
31 changed files with 687 additions and 491 deletions
26
irc/TechBot/TechBot.Library/Commands/Base/XmlCommand.cs
Normal file
26
irc/TechBot/TechBot.Library/Commands/Base/XmlCommand.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TechBot.Library
|
||||
{
|
||||
public abstract class XmlCommand : Command
|
||||
{
|
||||
protected XmlDocument m_XmlDocument;
|
||||
|
||||
public XmlCommand(TechBotService techBot)
|
||||
: base(techBot)
|
||||
{
|
||||
m_XmlDocument = new XmlDocument();
|
||||
m_XmlDocument.Load(XmlFile);
|
||||
}
|
||||
|
||||
public abstract string XmlFile { get; }
|
||||
|
||||
public XmlDocument XmlDocument
|
||||
{
|
||||
get { return m_XmlDocument; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue