示例#1
0
 public void PopupInput(Toggl.TimeEntry te)
 {
     if (te.GUID == editForm.GUID)
     {
         if (editableEntry.GetType() == typeof(TimeEntryCell))
         {
             ((TimeEntryCell)editableEntry).opened = false;
         }
         editForm.CloseButton_Click(null, null);
         return;
     }
     if (editableEntry != null && editableEntry.GetType() == typeof(TimeEntryCell))
     {
         ((TimeEntryCell)editableEntry).opened = false;
     }
     editForm.reset();
     editableEntry = getSelectedEntryByGUID(te.GUID);
     if (null == editableEntry)
     {
         return;
     }
     setEditFormLocation(te.DurationInSeconds < 0);
     editForm.GUID = te.GUID;
     editForm.Show();
 }
示例#2
0
 public void PopupInput(Toggl.TogglTimeEntryView te)
 {
     if (te.GUID == editForm.GUID)
     {
         editForm.ClosePopup();
         return;
     }
     editForm.reset();
     setEditFormLocation();
     editForm.GUID = te.GUID;
     editForm.Show();
     timeEntryListViewController.HighlightEntry(te.GUID);
 }