예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }