예제 #1
0
        public void add_group_form()
        {
            var          item            = Settings.groupList[Settings.groupList.Count - 1];
            GroupTabForm groupSelectForm = new GroupTabForm();

            groupSelectForm.Init_group(item);

            groupSelectForm.Location   = new Point(Settings.poz_x_group, groupPanel.AutoScrollPosition.Y + Settings.poz_y_group);
            groupSelectForm.AutoScroll = true;
            groupPanel.Controls.Add(groupSelectForm);
            Settings.poz_y_group += groupSelectForm.Height + 1;
        }
예제 #2
0
 public void add_groups_form()
 {
     groupPanel.Controls.Clear();
     Settings.poz_y_group = 0;
     foreach (Group item in Settings.groupList)
     {
         GroupTabForm groupSelectForm = new GroupTabForm();
         groupSelectForm.Init_group(item);
         groupSelectForm.Location   = new Point(Settings.poz_x_group, groupPanel.AutoScrollPosition.Y + Settings.poz_y_group);
         groupSelectForm.AutoScroll = true;
         groupPanel.Controls.Add(groupSelectForm);
         Settings.poz_y_group += groupSelectForm.Height + 1;
     }
 }