Пример #1
0
        public TreeListNode()
        {
            subitems = new ContainerSubListViewItemCollection();
            subitems.ItemsChanged += new ItemsChangedEventHandler(OnSubItemsChanged);

            nodes = new TreeListNodeCollection();
            nodes.Owner = this;
            nodes.MouseDown += new MouseEventHandler(OnSubNodeMouseDown);
        }
Пример #2
0
 public ContainerListViewItem()
 {
     subitems = new ContainerSubListViewItemCollection();
     subitems.ItemsChanged += new ItemsChangedEventHandler(OnSubItemsChanged);
 }
Пример #3
0
        public TreeListNode(DateTime dt)
        {
            date = dt;
            week = Convert.ToInt32(dt.DayOfWeek.ToString("d"));
            year = dt.Year;
            month = dt.Month;
            day = dt.Day;
            if (year == DateTime.Now.Year && month == DateTime.Now.Month && day == DateTime.Now.Day)
            {
                isToday = true;
            }
            chinesDate = new ChineseDate(dt);
            backcolor = Color.Honeydew;
            nodes = new TreeListNodeCollection();
            relateTasks = new List<TaskEventNode>();
            nodes.Owner = this;
            nodes.MouseDown += new MouseEventHandler(OnSubNodeMouseDown);

            subitems = new ContainerSubListViewItemCollection();
            subitems.ItemsChanged += new ItemsChangedEventHandler(OnSubItemsChanged);
        }