public void Reload()
 {
     TimeEntryTypes.Clear();
     LoadData();
     EditTimeEntry.RaiseCanExecuteChanged();
     CreateTimeEntry.RaiseCanExecuteChanged();
 }
예제 #2
0
        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();
            }
        }