private void toolStripButtonEdit_Click(object sender, EventArgs e) { Worklog worklog = (Worklog)bindingSourceWorklogs.Current; FormAddEditWorklogs formAddWorklog = new FormAddEditWorklogs(worklog); if (formAddWorklog.ShowDialog() == DialogResult.OK) { WorklogsRepository worklogsRepository = new WorklogsRepository(); worklogsRepository.Save(worklog); BindControls(); } }