예제 #1
0
        public EditForm()
        {
            InitializeComponent();
            ibLeftBtn.SetMap(Properties.Resources.imgLift1, Properties.Resources.imgLift2);
            ibRightBtn.SetMap(Properties.Resources.imgRight1, Properties.Resources.imgRight2);
            ibBackOut.SetMap(Properties.Resources.imgRepeal1, Properties.Resources.imgRepeal2);
            ibDrawAll.SetMap(Properties.Resources.imgDrawAll1, Properties.Resources.imgDrawAll2);
            ibDrawLift.SetMap(Properties.Resources.imgHalfLift1, Properties.Resources.imgHalfLift2);
            ibDrawRight.SetMap(Properties.Resources.imgHalfRight1, Properties.Resources.imgHalfRight2);
            ibPointEdit.SetMap(Properties.Resources.imgPointCh1, Properties.Resources.imgPointCh2);
            ibReturn.SetMap(Properties.Resources.imgExit1, Properties.Resources.imgExit2);

            foreach (Control ctl in this.Controls)
            {
                if (ctl is Tablet)
                {
                    Tablet Param = ctl as Tablet;
                    if (Param.Tag != null)
                    {
                        EditManager.ParamList.Add(Param);
                    }
                }
            }
            TabletComparerByTag TagComparer = new TabletComparerByTag();

            EditManager.ParamList.Sort(TagComparer);
            VisibleList.Add(tlCol);
            VisibleList.Add(tlRow);
            VisibleList.Add(tlCurve);
            VisibleList.Add(tlJag);
            VisibleList.Add(tlGapX);
        }
예제 #2
0
        //按键列表
        private void LoadPatternDataButton()
        {
            TabletComparerByTag TagComparer = new TabletComparerByTag();

            foreach (Control ctl in this.Controls)
            {
                if (ctl is Tablet)
                {
                    Tablet Tab = ctl as Tablet;
                    if (Tab.Tag != null)
                    {
                        TabList.Add(Tab);
                    }
                }
            }
            TabList.Sort(TagComparer);
        }