public Computer()
        {
            MacAddress = DeviceDataSource.GetRandomMacAddress();

            _ports = new ObservableCollection <Port>(PortsDataSource.GetComputerPorts(1, MacAddress));

            Name = DeviceDataSource.GetRandomName(typeof(Computer));

            IPv4 = "192.168.200." + DeviceDataSource.rand.Next(3, 20);
        }
Exemplo n.º 2
0
        public Switch()
        {
            MacAddress = DeviceDataSource.GetRandomMacAddress();

            _ports = new ObservableCollection <Port>(PortsDataSource.GetComputerPorts(20, MacAddress));

            _vlans = new ObservableCollection <VirtualLan>();

            SwitchConnectionTable = new Dictionary <string, string>();

            Name = DeviceDataSource.GetRandomName(typeof(Switch));



            _vlans.Add(

                new VirtualLan()
            {
                Name = "Simple",

                IPv4 = "192.168.200.2"
            });
        }
Exemplo n.º 3
0
 public Port()
 {
     MacAddress = DeviceDataSource.GetRandomMacAddress();
 }