示例#1
0
        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();
            }
        }
示例#2
0
        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();
            }
        }