public void Reload() { TimeEntryTypes.Clear(); LoadData(); EditTimeEntry.RaiseCanExecuteChanged(); CreateTimeEntry.RaiseCanExecuteChanged(); }
private void tsmiEditLogEntry_Click(object sender, EventArgs e) { if (dgvSearchResults.SelectedRows.Count == 1) { EditTimeEntry edit = new EditTimeEntry(); edit.timeLogEntry = (TimeLog)dgvSearchResults.SelectedRows[0].DataBoundItem; edit.prevTimeLogEntry = GetPreviousEntry(edit.timeLogEntry); edit.ShowDialog(); LoadResults(); } }