示例#1
0
        private void btn_save_Click(object sender, EventArgs e)
        {
            if (txt_number.Text == "")
            {
                MessageBox.Show("من فضلك يرجي ادخال رقم الطاولة");
                return;
            }

            t.AddTables((txt_number.Text));
            MessageBox.Show("تم الاضافه  بنجاح", "عمليه الاضافه", MessageBoxButtons.OK, MessageBoxIcon.Information);
            txt_number.Text         = "";
            gridControl1.DataSource = t.SelectTables();
        }
示例#2
0
 private void Btn_add_Click(object sender, EventArgs e)
 {
     if (txt_number.Text == "")
     {
         MessageBox.Show("من فضلك يرجي ادخال رقم الطاولة");
         return;
     }
     if (txt_number.Text == "0")
     {
         MessageBox.Show("من فضلك يرجي ادخال رقم الطاولة");
         return;
     }
     t.AddTables((txt_number.Text));
     MessageBox.Show("تم الاضافه  بنجاح", "عمليه الاضافه", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
     txt_number.Clear();
     dataGridViewPR.DataSource = t.SelectTables();
 }