예제 #1
0
 private void btnModify_Click_1(object sender, EventArgs e)
 {
     PL.updateTypes frm = new updateTypes();
     frm.txtCatName.Text = this.bunifuCustomDataGrid1.CurrentRow.Cells[1].Value.ToString();
     frm.OldName         = this.bunifuCustomDataGrid1.CurrentRow.Cells[1].Value.ToString();
     frm.typeID          = Convert.ToInt32(this.bunifuCustomDataGrid1.CurrentRow.Cells[0].Value);
     frm.ShowDialog();
     this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo(comboBox1.SelectedValue.ToString());
 }
예제 #2
0
 private void btnModify_Click(object sender, EventArgs e)
 {
     try
     {
         PL.updateTypes frm = new updateTypes();
         frm.txtCatName.Text = this.bunifuCustomDataGrid1.CurrentRow.Cells[1].Value.ToString();
         frm.typeID          = Convert.ToInt32(this.bunifuCustomDataGrid1.CurrentRow.Cells[0].Value);
         frm.ShowDialog();
         this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo();
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }