public ProfileModel(String name, NetInterfaceModel netInterface) { Name = name; if (netInterface == null) { // TODO throw new ArgumentNullException(); } NetInterface = netInterface; ProfileState = StateEnum.OFF; _interfaceRequestWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.RequestProfileChange); _interfaceRequestWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.ProfileChangeSuccess); // IPv4 mock IpAddress = "192.168.0.1"; SubnetMask = "255.255.255.0"; Gateway = "192.168.1.50"; DNS = "192.168.1.51"; }
public SystemProfileModel(NetInterfaceModel netInterface, bool dummy) : base() { this.NetInterface = netInterface; }
public SystemProfileModel(NetInterfaceModel netInterface) : base("Konfiguracja systemowa", netInterface) { }