Esempio n. 1
0
 private void NewGroupAdder(ClassGroupControl GC)
 {
     GC.EditGroupName    += EditGroupNameSender;
     GC.ClassGroupRemove += Groupdelete;
     GC.ChangeMember     += ADChangeMember;
     groupbox.Children.Add(GC); //상위클래스에서 실제그룹 추가해줌
 }
Esempio n. 2
0
        /// <summary>
        ///새로운 그룹 추가 버튼
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddButtonClicked(object sender, RoutedEventArgs e)
        {
            if (ElementAdd != null)
            {
                ElementAdd(this, new EventArgs());
            }
            ClassChangeGroupEventArgs changeargs = new ClassChangeGroupEventArgs();

            changeargs.rootGroup  = new ClassGroup();
            changeargs.add_delete = 1;
            ChangeGroup?.Invoke(this, changeargs);  //info가 추가 되었을 때 추가 : 1
            var GC = new ClassGroupControl(changeargs.rootGroup);

            NewGroupAdder(GC);
        }
Esempio n. 3
0
 public void Update()
 {
     //ClassChangeGroupEventArgs changeargs = new ClassChangeGroupEventArgs();
     //changeargs.rootGroup = new ClassGroup();
     //changeargs.add_delete = 1;
     //ChangeGroup?.Invoke(this, changeargs);  //info가 추가 되었을 때 추가 : 1
     //GC.Questionbutton = true;
     //GC.CheckPinClassGroupControl();
     groupbox.Children.Clear();
     foreach (ClassGroup g in GrootGroup.Children)
     {
         ClassGroupControl GControl = new ClassGroupControl(g);
         NewGroupAdder(GControl);
         GControl.BasketUpdate();
     }
 }