private void Change_Wallet_Address(object sender, EventArgs e) { Task.Run(() => { //This will request a change to all the addresses if (MainService.MyOpenOrderList.Count > 0) { MainService.MessageBox("Notice!", "Cannot change addresses with open orders present.", "OK", false); return; } bool result = MainService.PromptUser("Confirmation", "Are you sure you want to change all your wallet addresses?", "OK", "Cancel"); if (result == true) { MainService.ChangeWalletAddresses(); MainService.MessageBox("Notice!", "Wallet addresses have been changed to new ones.", "OK", false); } }); }