Esempio n. 1
0
        public CreateToDoList(int userId, int toDoListId)
        {
            this._userId = userId;
            InitializeComponent();
            _service = new ApplicationService();

            if (toDoListId != 0)
            {
                ToDoList toDoList = _service.GetToDoById(toDoListId);

                Title.Text   = toDoList.Title;
                _toDoListId  = toDoList.Id;
                this._userId = toDoList.UserId;

                CreateUpdateTitleToDo.Content = "Liste bearbeiten";
            }
            else
            {
                CreateUpdateTitleToDo.Content = "Neue Liste hinzufügen";
            }
        }
Esempio n. 2
0
        private void ToDo_Click(object sender, RoutedEventArgs e)
        {
            ToDoList nextpage = new ToDoList();

            nextpage.ShowDialog();
        }