예제 #1
0
        public MyContentPanel(string listName)
        {
            TitleName = listName;

            this.Location      = new Point(206, 26);
            this.FlowDirection = FlowDirection.TopDown;
            this.Size          = new Size(490, 563);
            this.WrapContents  = false;
            this.BackColor     = MyColor.contentBackColor;
            this.AutoScroll    = true;

            AddTitlePanel();
            //AddShortcut();
            Todos = new MyTodoPanel(0);
            this.Controls.Add(Todos);
        }
예제 #2
0
        private void AddSubList(string title)
        {
            MyAreaPanel area = MainForm.Data.userArea[title];

            foreach (MyListItem child in area.Controls)
            {
                if (child.ItemName == title)
                {
                    continue;
                }
                MyUserListPanel temp = (MyUserListPanel)MainForm.Data.contPanels[child.ItemName];
                if (temp.Todos.TodoList.Controls.Count > 0)
                {
                    MyTodoPanel sublist = new MyTodoPanel(1, child.ItemName, temp.Todos.TodoList);
                    sublists.Add(sublist);
                    Controls.Add(sublist);
                }
            }
        }