Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            frmEdytorNauczyciel edytor = new frmEdytorNauczyciel(-1);

            edytor.ShowDialog();
            pobieranieDanych();
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Int32 mojId = (Int32)nauczycielDataGridView.CurrentRow.Cells[0].Value;
            //((czlowiekSet_nauczyciel)nauczycielBindingSource.Current).Id;
            // Int32 mojId = ((czlowiekSet_nauczyciel)nauczycielBindingSource.Current).Id;
            frmEdytorNauczyciel edytor = new frmEdytorNauczyciel(mojId);

            edytor.ShowDialog();
            pobieranieDanych();
        }