26 lines
749 B
C#
26 lines
749 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.Substring(0, 3).ToLower() == "net")
|
|
return new SetNetworks();
|
|
if (className.Substring(0, 7).ToLower() == "service")
|
|
return new SetService();
|
|
if (className.Substring(0, 7).ToLower() == "openvpn")
|
|
return new SetOpenVPNService();
|
|
return null;
|
|
}
|
|
internal static InIReader getSettings() {
|
|
return InIReader.getInstance("config.ini");
|
|
}
|
|
}
|
|
}
|