private void EditTimesheet(int id, Timesheet entity = null)
 {
     TimesheetDetailViewModel = new TimesheetDetailViewModel(this, id, entity, _data);
     TimesheetDetailViewModel.RequestClose += (s, e) =>
     {
         if (TimesheetDetailViewModel.Entity.IsNew)
         {
             TimesheetDayViewModel.UpdateItem(TimesheetDetailViewModel.Entity);
         }
         TimesheetDetailViewModel = null;
     };
 }
        public void ProcessShortcutKey(ProcessShortcutKeyEventArgs e)
        {
            if (e.Key == ShortcutKey.Refresh)
            {
                Refresh();
                return;
            }

            if (TimesheetDetailViewModel != null)
            {
                TimesheetDetailViewModel.ProcessShortcutKey(e);
            }

            if (e.Handled)
            {
                return;
            }

            //switch (e.Key)
            //{
            //    case ShortcutKey.Save:
            //        break;
            //}
        }