Ejemplo n.º 1
0
        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";
        }
Ejemplo n.º 2
0
 public SystemProfileModel(NetInterfaceModel netInterface, bool dummy)
     : base()
 {
     this.NetInterface = netInterface;
 }
Ejemplo n.º 3
0
 public SystemProfileModel(NetInterfaceModel netInterface)
     : base("Konfiguracja systemowa", netInterface)
 {
 }