netmonitor/NetMonitorServer/Factory.cs
2015-03-04 22:21:34 +00:00

23 lines
609 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlubbFish.Utils;
namespace NetMonitorServer {
class Factory {
internal static ActionClass getAction(string className) {
if(className.ToLower() == "net")
return new SetNetworks();
if(className.ToLower() == "service")
return new SetService();
if(className.ToLower() == "openvpn")
return new SetOpenVPNService();
return null;
}
internal static InIReader getSettings() {
return InIReader.getInstance("config.ini");
}
}
}