コード例 #1
0
        /// <summary>
        /// Configuration of an event, that is triggert my network chaneges to
        /// update the network status and the iPv4 address
        /// </summary>
        public void setNetworkChangeEvent()
        {
            DynamicVals.GetIPaddrs();
            RaisePropertyChanged(nameof(NetworkIPs));

            NetworkChange.NetworkAddressChanged += NetworkChange_NetworkAddressChanged;
        }
コード例 #2
0
 /// <summary>
 /// Network Chnage event to upate the iPv4 address inside the backround Image
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void NetworkChange_NetworkAddressChanged(object sender, EventArgs e)
 {
     DynamicVals.GetIPaddrs();
     RaisePropertyChanged(nameof(NetworkIPs));
 }