コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (richTextBox1.Text == null)
     {
         richTextBox1.Text = "";
     }
     if (p.Updatelecturer(idprogram, richTextBox1.Text))
     {
         MessageBox.Show("Cập nhập thành công.");
     }
     else
     {
         MessageBox.Show("Lỗi đường truyền, vui lòng thử lại sau.");
     }
 }
コード例 #2
0
 private void fileSaveItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (richtextboxLecturer.Text == null)
     {
         richtextboxLecturer.Text = "";
     }
     if (p.Updatelecturer(idprogram, richtextboxLecturer.Text))
     {
         MessageBox.Show("Cập nhập thành công.");
         Hide();
     }
     else
     {
         MessageBox.Show("Lỗi đường truyền, vui lòng thử lại sau.");
     }
 }