Esempio n. 1
0
        private void Child_SelectSubject(object sender, SelectSubjectEventArgs info)
        {
            ClassInfoGroupControl  control = (ClassInfoGroupControl)sender;
            SelectSubjectEventArgs args    = new SelectSubjectEventArgs();

            args.Info         = info.Info;
            args.IsMouseEnter = info.IsMouseEnter;

            if (SelectSubject != null)
            {
                SelectSubject(this, args);
            }
        }
Esempio n. 2
0
        public void UpDate()
        {
            foreach (KeyValuePair <string, List <ClassInfo> > item in ClassDatalist.Groups)
            {
                child = new ClassInfoGroupControl();


                child.GroupName     = item.Key;
                child.ClassDatalist = ClassDatalist.Groups[item.Key];
                child.Update();

                child.VerticalAlignment   = VerticalAlignment.Top;
                child.HorizontalAlignment = HorizontalAlignment.Stretch;
                child.MaxHeight           = 500;
                child.Margin         = new Thickness(5);
                child.SelectSubject += Child_SelectSubject;

                MainScroll.Children.Add(child);
            }
        }