private void AddNewItemClick(object sender, EventArgs e)
        {
            ProgressAddEventForm addEventForm = new ProgressAddEventForm();

            addEventForm.Closed += addEventForm_Closed;
            addEventForm.ShowDialog();
        }
        private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            ProgressAddEventForm addEventForm = new ProgressAddEventForm();

            addEventForm.Ev      = AnEvent.getList()[int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString())];
            addEventForm.Closed += addEventForm_Closed;
            addEventForm.ShowDialog();
        }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            ProgressAddEventForm addEventForm = new ProgressAddEventForm();
            DataGridViewRow      row          = dataGridView1.Rows[e.RowIndex];
            List <AnEvent>       events       = AnEvent.getList();
            var obj = events.Where((x) => x.Id == int.Parse(row.Cells["Номер"].Value.ToString())).First();

            addEventForm.Ev      = obj;
            addEventForm.Closed += addEventForm_Closed;
            addEventForm.ShowDialog();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var id     = int.Parse(textBox1.Text);
            var list   = from _event in AnEvent.getList() where _event.Id == id select _event;
            var _Event = list.First();

            ProgressAddEventForm addEventForm = new ProgressAddEventForm();

            addEventForm.Ev      = _Event;
            addEventForm.Closed += addEventForm_Closed;
            addEventForm.ShowDialog();
        }
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     ProgressAddEventForm addEventForm = new ProgressAddEventForm();
     DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
     List<AnEvent> events = AnEvent.getList();
     var obj = events.Where((x) => x.Id == int.Parse(row.Cells["Номер"].Value.ToString())).First();
     addEventForm.Ev = obj;
     addEventForm.Closed += addEventForm_Closed;
     addEventForm.ShowDialog();
 }
        private void button1_Click(object sender, EventArgs e)
        {
            var id = int.Parse(textBox1.Text);
            var list = from _event in AnEvent.getList() where _event.Id == id select _event;
            var _Event = list.First();

            ProgressAddEventForm addEventForm = new ProgressAddEventForm();
            addEventForm.Ev = _Event;
            addEventForm.Closed += addEventForm_Closed;
            addEventForm.ShowDialog();
        }
 private void AddNewItemClick(object sender, EventArgs e)
 {
     ProgressAddEventForm addEventForm = new ProgressAddEventForm();
     addEventForm.Closed += addEventForm_Closed;
     addEventForm.ShowDialog();
 }
 private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     ProgressAddEventForm addEventForm = new ProgressAddEventForm();
     addEventForm.Ev = AnEvent.getList()[int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString())];
     addEventForm.Closed += addEventForm_Closed;
     addEventForm.ShowDialog();
 }