Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            /*так как моя форма PersonEditForm называлась изначально Form1*/
            PersonEditForm newForm = new PersonEditForm();

            newForm.ShowDialog();
            Obnow();
        }
Example #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            int teleID = (int)teleListDataGridView.SelectedRows[0].Cells[0].Value;
            /*так как моя форма PersonEditForm называлась изначально Form1*/
            PersonEditForm newForm = new PersonEditForm();

            foreach (TeleInfo tele in _teleList)
            {
                tele.GetTele(teleID);
                newForm._newTele = tele;
            }
            newForm.ShowDialog();
            Obnow();
        }