private async void buttonX1_Click(object sender, EventArgs e) { if (AssingDateGetWebSite.DownloadDataFromWebCliend.LoginSet(true)) { try { AssingDateGetWebSite.DownloadDataFromWebCliend.ENDASSINGSHOW(idAssingPHPid); foreach (vitelAssingInformation vitelAssingInformation1 in Alldatesee) { Valuation Valuation1 = (new Valuation(0, vitelAssingInformation1.GetidInformation(), this.nameusername, vitelAssingInformation1.GetIDform(), vitelAssingInformation1.XDocumentconvert(), DateTime.Now)); await Sqldatabasethrding.SqlSaveVitl(Valuation1.adder()); } this.Close(); } catch (Exception ev) { MegBox.Show(ev.Message); } } else { MegBox.Show("لا يوجد إنترنت"); } }