コード例 #1
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            Portion a     = (Portion)dataGridView1.CurrentRow.DataBoundItem;
            var     daily = new ShowTrip(a, GetClient, GetVietTravel);

            if (daily.ShowDialog() == DialogResult.OK)
            {
                portionBindingSource.ResetBindings(false);
            }
        }
コード例 #2
0
        private void TripClientGridView_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            Portion a       = (Portion)TripClientGridView.CurrentRow.DataBoundItem;
            var     chitiet = new ShowTrip(a, GetClient, GetVietTravel);

            if (chitiet.ShowDialog() == DialogResult.OK)
            {
                portionBindingSource.ResetBindings(false);
            }
            KhoiPhucHangDat();
            KhoiPhucDaiLy();
        }