private FwOutRule(FwRuleText text) : this() { Text = text; }
public FwOutRule(FwRuleText text, uint ip, uint mask) : this(text, string.Format("{0}/{1}", GetIPStr(ip), GetIPStr(mask))) { }
public FwOutRule(FwRuleText text, string ipStr, string mask) : this(text, string.Format("{0}/{1}", ipStr, mask)) { }
public FwOutRule(FwRuleText text, string remoteAddresses) : this(text) { UpdateRemoteAddresses(remoteAddresses.Split(',')[0]); }
public FwOutRule(FwRuleText text, IPAddress addr) : this(text, (uint)addr.Address, _fullIPMask) { }
public FwOutRule(INetFwRule fwRule) : this(FwRuleText.Empty) { ApplicationName = fwRule.ApplicationName; Name = fwRule.Name; Description = fwRule.Description; _remoteAddresses = fwRule.RemoteAddresses.Split(',')[0]; SetMaskFromRemoteAddresses(); Text = new FwRuleText(IPStr); }