コード例 #1
0
ファイル: U003.cs プロジェクト: SangIk-Lee/YT.CAD.Tools2
        // 버튼 > LayerISO
        void Btn_LayerISO_Click(object sender, EventArgs e)
        {
            ReadData();

            CADUtil.TurnOffAllLayers();
            //CAD.TurnOnLayer(cbo_Layer1.Text);
            //CAD.TurnOnLayer(cbo_Layer2.Text);
            //CAD.TurnOnLayer(cbo_Layer3.Text);
            //CAD.TurnOnLayer(cbo_Layer4.Text);
        }
コード例 #2
0
ファイル: U003.cs プロジェクト: SangIk-Lee/YT.CAD.Tools2
        // 모든 레이어 켜기 / 끄기 / All Clear / Fitting
        void LCG_Main_CustomButtonClick(object sender, DevExpress.XtraBars.Docking2010.BaseButtonEventArgs e)
        {
            ReadData();

            switch (e.Button.Properties.Caption)
            {
            case "모든 레이어 켜기": CADUtil.TurnOnAllLayers(); break;

            case "모든 레이어 끄기": CADUtil.TurnOffAllLayers(); break;

            case "C":
            {
                ClearListBox(lst_L1);
                ClearListBox(lst_L2);
                ClearListBox(lst_L3);
                ClearListBox(lst_L4);
                ClearListBox(lst_L5);
                ClearListBox(lst_L6);
                ClearListBox(lst_L7);
                ClearListBox(lst_L8);
                ClearListBox(lst_L9);
                ClearListBox(lst_L10);
            }
            break;

            case "F":
            {
                int n = 0;
                if (LCG_1.Expanded)
                {
                    n++;
                }
                if (LCG_2.Expanded)
                {
                    n++;
                }
                if (LCG_3.Expanded)
                {
                    n++;
                }
                if (LCG_4.Expanded)
                {
                    n++;
                }
                if (LCG_5.Expanded)
                {
                    n++;
                }
                if (LCG_6.Expanded)
                {
                    n++;
                }
                if (LCG_7.Expanded)
                {
                    n++;
                }
                if (LCG_8.Expanded)
                {
                    n++;
                }
                if (LCG_9.Expanded)
                {
                    n++;
                }
                if (LCG_10.Expanded)
                {
                    n++;
                }

                int width  = LCG_1.Size.Width;
                int height = LCG_0.Height / n;

                if (LCG_1.Expanded)
                {
                    LCG_1.Size = new Size(width, height);
                }
                if (LCG_2.Expanded)
                {
                    LCG_2.Size = new Size(width, height);
                }
                if (LCG_3.Expanded)
                {
                    LCG_3.Size = new Size(width, height);
                }
                if (LCG_4.Expanded)
                {
                    LCG_4.Size = new Size(width, height);
                }
                if (LCG_5.Expanded)
                {
                    LCG_5.Size = new Size(width, height);
                }
                if (LCG_6.Expanded)
                {
                    LCG_6.Size = new Size(width, height);
                }
                if (LCG_7.Expanded)
                {
                    LCG_7.Size = new Size(width, height);
                }
                if (LCG_8.Expanded)
                {
                    LCG_8.Size = new Size(width, height);
                }
                if (LCG_9.Expanded)
                {
                    LCG_9.Size = new Size(width, height);
                }
                if (LCG_10.Expanded)
                {
                    LCG_10.Size = new Size(width, height);
                }
            }
            break;
            }
        }
コード例 #3
0
ファイル: U003.cs プロジェクト: SangIk-Lee/YT.CAD.Tools2
        // 버튼 > LayerOff
        void Btn_LayerOff_Click(object sender, EventArgs e)
        {
            ReadData();

            CADUtil.TurnOffAllLayers();
        }