示例#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);
            }
        }
        private void Child_MouseEnter(object sender, MouseEventArgs e)
        {
            ClassInfoControl       control = (ClassInfoControl)sender;
            SelectSubjectEventArgs args    = new SelectSubjectEventArgs();

            args.Info         = control.Info;
            args.IsMouseEnter = true;

            if (SelectSubject != null)
            {
                SelectSubject(this, args);
            }
        }
示例#3
0
        private void ClassList_SelectSubject(object sender, SelectSubjectEventArgs info)
        {
            ClassInfoListControl control = (ClassInfoListControl)sender;

            if (info.IsMouseEnter)
            {
                ClassTimePreview.ClassData.Add(info.Info);
                ClassTimePreview.UpDate();
            }
            else
            {
                ClassTimePreview.Remove();
            }
        }