Beispiel #1
0
        private void LblAddListBtn_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Utils.MarkTravel(this);
            State.LastAction = ACTION.AddToDoFromToDoList;
            State.LastListId = ListId;
            AddToDo w = new AddToDo();

            w.Show();
            this.Close();
        }
 private void LblAddTodoBtn_MouseDown(object sender, MouseButtonEventArgs e)
 {
     Utils.MarkTravel(this);
     if (Db.GetLists().Count > 0)
     {
         State.LastAction = ACTION.AddToDo;
         AddToDo w = new AddToDo();
         w.Show();
         this.Close();
     }
     else
     {
         State.LastAction = ACTION.AddList;
         AddList w = new AddList();
         w.Show();
         this.Close();
     }
 }