Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmPersonItem f = new frmPersonItem();
     if (f.ShowDialog() == DialogResult.OK)
     {
         Fill();
     }
 }
Пример #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.CurrentRow == null)
            {
                return;
            }

            frmPersonItem f = new frmPersonItem();
            f.TblPerson = GetSelectedPerson();
            if (f.ShowDialog () == DialogResult.OK )
            {
                Fill();
            }
        }