private void bt_Update_Click(object sender, EventArgs e) { DlgCreateBlock dlgCreateBlock = new DlgCreateBlock(this, false); dlgCreateBlock.Text = "编辑区域"; dlgCreateBlock.ShowDialog(); if (dlgCreateBlock.DialogResult == DialogResult.OK) { if (dlgCreateBlock._bChange) { int nIndex = uC_HallInfoSeek1.cbb_SeatingChart.SelectedIndex; cbb_Level_SelectedIndexChanged(null, null); //QueryData(); ReQueryDataBy(nIndex); } } else { if (dlgCreateBlock._bChange) { int nIndex = uC_HallInfoSeek1.cbb_SeatingChart.SelectedIndex; cbb_Level_SelectedIndexChanged(null, null); //QueryData(); ReQueryDataBy(nIndex); } } }
private void bt_CreateBlock_Click(object sender, EventArgs e) { DlgCreateBlock dlgCreateBlock = new DlgCreateBlock(this, true); dlgCreateBlock.Text = "创建区域"; dlgCreateBlock.ShowDialog(); if (dlgCreateBlock.DialogResult == DialogResult.OK) { if (dlgCreateBlock._bChange) { //ReQueryDataBy(_seatingChart); QueryData(); } } else { if (dlgCreateBlock._bChange) { //ReQueryDataBy(_seatingChart); QueryData(); } } }