Пример #1
0
 private async void buttonX1_Click(object sender, EventArgs e)
 {
     if (Scileis == null)
     {
         Scileis = new Scileis(0, textBoxX1.Text);
         if (await Sqldatabasethrding.SqlSaveVitl(Scileis.adder()))
         {
             MegBox.Show("تم إضافة", this);
             this.Close();
         }
     }
     else
     {
         Scileis = new Scileis(Scileis.id, textBoxX1.Text);
         if (await Sqldatabasethrding.SqlSaveVitl(Scileis.updata()))
         {
             MegBox.Show("تم التعديل", this);
             this.Close();
         }
     }
 }