Ejemplo n.º 1
0
        private void ButtonAdd_Click(object sender, EventArgs e)
        {
            DlgCheckBillEdit dlg = new DlgCheckBillEdit();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                RefreshData();
            }
        }
Ejemplo n.º 2
0
        private void ButtonEdit_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedRows.Count <= 0)
            {
                MessageBox.Show("请选择一行再操作");
                return;
            }
            DataGridViewRow  row      = this.dataGridView1.SelectedRows[0];
            DataRowView      row_view = (DataRowView)row.DataBoundItem;
            DlgCheckBillEdit dlg      = new DlgCheckBillEdit(row_view.Row);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                RefreshData();
            }
        }