public void DeleteTimeEntry()
 {
     if (this.confirmlessDelete())
     {
         Toggl.DeleteTimeEntry(this.guid);
         return;
     }
     Toggl.AskToDeleteEntry(this.guid);
 }
 private void deleteButton_OnClick(object sender, RoutedEventArgs e)
 {
     if (this.confirmlessDelete())
     {
         Toggl.DeleteTimeEntry(this.timeEntry.GUID);
         return;
     }
     Toggl.AskToDeleteEntry(this.timeEntry.GUID);
 }
Exemple #3
0
 public static void DeleteTimeEntry(this TimeEntryCellViewModel cell)
 {
     if (cell.ConfirmlessDelete())
     {
         Toggl.DeleteTimeEntry(cell.Guid);
         return;
     }
     Toggl.AskToDeleteEntry(cell.Guid);
 }
        private void onHighlightDelete(object sender, ExecutedRoutedEventArgs e)
        {
            if (!this.hasKeyboardSelection)
            {
                return;
            }

            Toggl.AskToDeleteEntry(this.keyboardHighlightedGUID);
        }
Exemple #5
0
 public static void DeleteTimeEntry(this TimeEntryBlock block)
 {
     if (block.ConfirmlessDelete())
     {
         Toggl.DeleteTimeEntry(block.TimeEntryId);
         return;
     }
     Toggl.AskToDeleteEntry(block.TimeEntryId);
 }
        private void onHighlightDelete(object sender, ExecutedRoutedEventArgs e)
        {
            if (!this.hasKeyboardSelection)
            {
                return;
            }

            TimeEntryCell item = this.cells[this.keyboardSelectedId].Item2;

            if (item.confirmlessDelete)
            {
                Toggl.DeleteTimeEntry(this.keyboardHighlightedGUID);
                return;
            }

            Toggl.AskToDeleteEntry(this.keyboardHighlightedGUID);
        }
 private void deleteButton_OnClick(object sender, RoutedEventArgs e)
 {
     Toggl.AskToDeleteEntry(this.timeEntry.GUID);
 }
 public void DeleteTimeEntry()
 {
     Toggl.AskToDeleteEntry(this.guid);
 }