public RDPbutton(string group, string caption, string hint, IPPort ipport, string parameters, LoginRDP rdplogin, LoginVPN vpnlogin) { this.group = group; this.caption = caption; this.hint = hint; this.ipport = ipport; this.parameters = parameters; this.rdplogin = rdplogin; this.vpnlogin = vpnlogin; }
/// <summary> /// Connect to VPN using <see cref="LoginVPN"/>. /// </summary> /// <param name="vpn">Parameter needed for connect vpn.</param> /// <returns>true if succesfull conection</returns> public bool Connect(LoginVPN vpn) { return(Connect($"\"{vpn.Name}\" {vpn.User} {vpn.Pass}")); }