public void GoNext() { if (touchDevice != null) CaptureTouch(touchDevice); //Create instance of current window data context var vm = DataContext as DeviceInfoViewModel; //if not null proceed if (vm != null) { // Gets the selected network adapter vm.AdapterDesc = Adapters.SelectedItem.ToString(); //check if "None" is selected or not from the dropdown. //If not proceed with IP configuration if (!vm.AdapterDesc.Trim().ToLower().Equals(Settings.Default.NONE.ToLower())) { //sets IP config to selected adapter. vm.SetIpCommand.Execute(null); } //navigate to next window on successfull completion Navigate(); } }
await Task.Run(() => { int progress = 0; for (int i = 1; i < 5; i++) { System.Threading.Thread.Sleep(1); progress++; } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)