void Save() { if (SystemProperties.ShowMessage.MessageQuestion(SystemProperties.MessageNotification.YouWantToSave, "API URL") == DialogResult.Yes) { if (!string.IsNullOrWhiteSpace(txtSite.Text) && !string.IsNullOrWhiteSpace(txtPage.Text) && !string.IsNullOrWhiteSpace(txtMessage.Text) && !string.IsNullOrWhiteSpace(txtMobile.Text)) { using (GetAPI api = new GetAPI()) { api.Save(SetupURLLink(false), ref MsgReturned); SystemProperties.ShowMessage.MessageInformation(MsgReturned, "API URL"); SystemProperties.Cleared(this, false, true, true); } } else { SystemProperties.ShowMessage.MessageError(SystemProperties.MessageNotification.CheckInput + Environment.NewLine + Environment.NewLine + "Page" + Environment.NewLine + "Site" + Environment.NewLine + "Mobile" + Environment.NewLine + "Message", "API URL"); } } LoadURLLink(); }