Esempio n. 1
0
File: frmTM.cs Progetto: hkiaipc/fnq
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmTMItem f = new frmTMItem();
     if(f.ShowDialog () == DialogResult .OK )
     {
         Fill ();
     }
 }
Esempio n. 2
0
File: frmTM.cs Progetto: hkiaipc/fnq
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.CurrentRow != null)
            {
                Debug.Assert(GetSelectedTM() != null);

                frmTMItem f = new frmTMItem();
                f.TblTM = GetSelectedTM();
                if (f.ShowDialog() == DialogResult.OK)
                {
                    Fill();
                }
            }
        }