Exemple #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Tourfrm frm = new Tourfrm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                btnAll.PerformClick();
            }
        }
Exemple #2
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (lvTours.SelectedItems.Count > 0)
     {
         Tourfrm frm = new Tourfrm();
         frm.ID = MyConvert.ToInt32(lvTours.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             btnAll.PerformClick();
         }
     }
 }