Пример #1
0
        public void DoAdd(IamUc uc)
        {
            if (panel_filter.Controls.Count >= 14)
            {
                MessageBox.Show("最多14个过滤条件");
                return;
            }
            var control = uc as Control;

            control.Top  = yIndex * 200 + 15;
            control.Left = xIndex * 410 + 5;
            panel_filter.Controls.Add(control);
            xIndex++;
            if (xIndex % 2 == 0 && xIndex != 0)
            {
                yIndex++;
                xIndex = 0;
            }
        }
Пример #2
0
        public void DoRemove(IamUc uc)
        {
            var control = uc as Control;

            panel_filter.Controls.Remove(control);
        }