private void simpleButton1_Click(object sender, EventArgs e) { if (DialogResult.Yes == XtraMessageBox.Show("请检查填写是否正确", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)) { //if (_MainID == 0) //{ gridView3.CloseEditor(); gridView3.UpdateCurrentRow(); DataSet ds = new DataSet(); ds.Tables.Add(dtCA.Copy()); dt.TableName = "Ticket"; ds.Tables.Add(dt.Copy()); r.TableChang(ds); this.Close(); //} //else //{ //} } else { return; } }
private void simpleButton1_Click(object sender, EventArgs e) { gridView3.CloseEditor(); gridView3.UpdateCurrentRow(); DataSet ds = new DataSet(); ds.Tables.Add(((DataTable)(gridControl1.DataSource)).Copy()); ds.Tables.Add(((DataTable)(gridControl3.DataSource)).Copy()); r.TableChang(ds); this.Close(); }