예제 #1
0
        public string CheckAddress(string a)
        {
            //Check to see if the passed address is still valid, if so just use it
            if (!vm.Interfaces.Any(t => string.Equals(t.Address.ToString(), a)))
            {
                if (vm.Interfaces.Count == 1)
                {
                    return(vm.Interfaces[0].Address.ToString());
                }
                vm.ShowDialog();
                if (quit)
                {
                    return(null);
                }
                return(vm.SelectedInterface.Address.ToString());
            }

            return(a);
        }