using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Remontor.Connector { internal class Connect { private IComp Comp; private string Login = ""; public Connect(IComp comp) { Comp = comp; } public Connect(IComp comp, string login) { this.Comp = comp; this.Login = login; } public IComp GetComp { get { return Comp; } } public string toString() { string result; if (Login == "") { return Comp.GetNetNameStr(); } return Login + "(" + Comp.GetNetNameStr() + ")"; } } }