async void addUser() { //Функция добавления пользователя (асинх.) try { requestStarted = true; string jsonString = formingDataString(); if (jsonString != "NOT OK") { WebTools postImageAndUserInfo = new WebTools(); JObject customerInfo = postImageAndUserInfo.AddCustomer(address, token, "savedAddFrame.jpg", jsonString); } requestStarted = false; } catch (Exception e) { MessageBox.Show(e.ToString()); requestStarted = false; } }