Example #1
0
 public ZTableItem(int zfrom, int charTableIndex, int zto, IToDo funcdo)
 {
     this.zfrom          = zfrom;
     this.zto            = zto;
     this.charTableIndex = charTableIndex;
     this.funcdo         = funcdo;
 }
 public void Save(IToDo t)
 {
     Outlook.TaskItem item = ((OutlookToDo)t).TaskItem;
     item.Assign();
     item.Save();
     sync();
 }
Example #3
0
 private void TryInteract(IToDo _interact)
 {
     if (_interact != null)
     {
         _interact.Action();
     }
 }
Example #4
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            IToDo todo = calendars[comboBox1.SelectedIndex].createToDo();

            todo.Summary = eventSummaryTextBox.Text;
            todo.Start   = eventStartPicker.Value;
            todo.Due     = eventStartPicker.Value;
            try
            {
                calendars[comboBox1.SelectedIndex].Save(todo);
                todos.Add(todo);
                checkList.Items.Add(todo.Summary);
            }catch (Exception ex)
            {
                MessageBox.Show("Calendar doesn't support todos.");
            }
        }
Example #5
0
 public EditController(IToDo iToDo)
 {
     _iToDo = iToDo;
 }
Example #6
0
        public void Save(IToDo t)
        {
            ToDo todo = (ToDo)t;

            Save(todo);
        }
 public ToDoController(IToDo toDoRepo, UserManager <IdentityUser> userManager)
 {
     _userManager = userManager;
     _toDoRepo    = toDoRepo;
 }
Example #8
0
 public async Task <bool> AddToDoAsync(IToDo toDo)
 {
     return(await _toDoRepository.CreateAsync(toDo));
 }
Example #9
0
 public ToDoController(IMapper mapper, IToDo toDo)
 {
     _mapper = mapper;
     _toDo   = toDo;
 }
Example #10
0
 public ToDoController(IToDo iToDo)
 {
     _IToDo = iToDo;
 }
Example #11
0
 public ToDosController(IToDo repository)
 {
     this.repository = repository;
 }
Example #12
0
 public DeleteController(IToDo iToDo)
 {
     _iToDo = iToDo;
 }
Example #13
0
 public ToDoController(IToDo _toRepo)
 {
     toRepo = _toRepo;
 }
Example #14
0
 public AddController(IToDo iToDo)
 {
     _iToDo = iToDo;
 }
Example #15
0
 public void AfterConstruction(IToDo instance)
 {
     instance.Created = DateTime.Today;
 }
Example #16
0
 public ToDoController(IToDo database)
 {
     this.database = database;
 }
Example #17
0
 public ToDoController(IToDo todoInterface, ToDoContext context)
 {
     this.todoInter = todoInterface;
     _context       = context;
 }
 public ToDoController(IToDo todo)
 {
     toDo = todo;
 }
Example #19
0
 public async Task <bool> UpdateToDoAsync(string key, IToDo toDo)
 {
     return(await _toDoRepository.UpdateAsync(key, toDo));
 }
Example #20
0
 public ZTableItem(int zfrom, int charTableIndex, int zto, IToDo funcdo)
 {
     this.zfrom = zfrom;
     this.zto = zto;
     this.charTableIndex = charTableIndex;
     this.funcdo = funcdo;
 }
Example #21
0
 public HomeController(IToDo iToDo)
 {
     _iToDo = iToDo;
 }
Example #22
0
 public ToDoController(IToDo context)
 {
     _context = context;
 }