private void btnAdd_Click(object sender, EventArgs e) { Tripfrm frm = new Tripfrm(); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { listTrip = Chuyen.All(); btnAll.PerformClick(); } }
private void btnUpdate_Click(object sender, EventArgs e) { Tripfrm frm = new Tripfrm(); frm.MChuyen = MyConvert.ToInt32(lvTrips.SelectedItems[0].SubItems[0].Text); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { listTrip = Chuyen.All(); btnAll.PerformClick(); } }