Beispiel #1
0
        public Viewer(Home_View _HV)
        {
            HV = _HV;
            InitializeComponent();
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.UpdateStyles();
            Region_Circle = new TransControl(this);
            CircularBox.Controls.Add(Region_Circle);
            Region_Circle.Visible = false;
            Region_Circle.Size = new Size(60, 60);

            LinearPanel.HorizontalScroll.Visible = false;
            this.initTaxonomyTree();
            Cog_Combo.Text = "ALL";
            Cog_Combo.SendToBack();

            Color_List = new List<Color>();
            Deg_index = new List<int>();
            EG_index = new List<int>();
            Cog_index = new List<int>();
        }
        public Designer(Home_View _HV)
        {
            HV = _HV;
            InitializeComponent();

            //LW.Show();

            ViewerData.selectEGList();

            //init Data Structure
            for (int i = 0; i < 20; i++)
            {
                secInsertedEG[i] = new InsertedEG();
            }

            PBdesign.Maximum = ViewerData.totalCnt;
            LBtotalEG.Text = "" + PBdesign.Maximum;

            ViewerData.selectEGList(indexOfCircle);

            PBsecDesign.Maximum = ViewerData.cnt;
            LBsecTotalEG.Text = "24" /*+ PBsecDesign.Maximum*/;

            LBsecCurEG.Text = "" + secInsertedEG[indexOfCircle].cnt;

            LBcurrEG.Text = "" + insertedEG.cnt;

            BTdesign.Enabled = false;

            TBsection.Text = (indexOfCircle + 1) + "";

            reloadList();

            /*
            Thread initThread = new Thread(new ThreadStart(initDesignData));
            initThread.Start();
            */
            MaxCntReload();
        }