private void updateBinaryLabels(IPCalculation ipc) { lNetmaskBinary.Content = ipc.getNetmask().ToBinaryString(); lNetworkBinary.Content = ipc.getNetworkAddress().ToBinaryString(); lStartAddressBinary.Content = ipc.getfirstAddress().ToBinaryString(); lEndAddressBinary.Content = ipc.getLastAddress().ToBinaryString(); lBroadcastAddressBinary.Content = ipc.getBroadcastAddress().ToBinaryString(); }
private void updateDecimalLabels(IPCalculation ipc) { lNetmask.Content = ipc.getNetmask(); lNetwork.Content = ipc.getNetworkAddress(); lHostNumber.Content = ipc.getHostnumber(); lHostAddressSize.Content= ipc.getHostBits()+" Bits"; lNetworkAddressSize.Content = ipc.getNetworkBits()+" Bits"; lStartAddress.Content = ipc.getfirstAddress(); lEndAddress.Content = ipc.getLastAddress(); lBroadcastAddress.Content = ipc.getBroadcastAddress(); }