Example #1
0
        //리치텍스트박스
        public RichTextBox richbox(Richtb rt)
        {
            RichTextBox rtxtbox = new RichTextBox();

            rtxtbox.Multiline = true;
            rtxtbox.Name      = rt.Name;
            rtxtbox.Size      = new Size(rt.SX, rt.SY);
            rtxtbox.Location  = new Point(rt.PX, rt.PY);
            rt.Form.Controls.Add(rtxtbox);
            return(rtxtbox);
        }
Example #2
0
        private void FORM_01_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            ClientSize           = new Size(750, 430); // 폼 사이즈 지정
            //this.ControlBox = false;
            BackColor = Color.Black;
            // 제목 패널
            pnSet pn1 = new pnSet(this, 750, 110, 0, 0);
            Panel 패널  = ct.panel(pn1);

            패널.BackColor = Color.FromArgb(19, 38, 78);
            Controls.Add(패널);   //패널 화면 출력

            ArrayList arr = new ArrayList();

            arr.Add(new lbSet(this, "lb1", "ELBON", 500, 35, 330, 10, 40));
            arr.Add(new lbSet(this, "lb2", "the table", 300, 70, 260, 30, 20));

            for (int i = 0; i < arr.Count; i++)
            {
                if (typeof(lbSet) == arr[i].GetType())
                {
                    Label label = ct.lable((lbSet)arr[i]);
                    if (i == 1)
                    {
                        label.Font      = new Font("Tahoma", 40, FontStyle.Bold); //글꼴설정
                        label.ForeColor = Color.White;
                    }
                    else
                    {
                        label.Font      = new Font("Tahoma", 20, FontStyle.Bold);
                        label.ForeColor = Color.White;
                    }
                    패널.Controls.Add(label);
                }
            }

            //로그인 패널
            Richtb tx1 = new Richtb(this, "tb1", 200, 35, 370, 45);

            텍스트박스1 = ct.richbox(tx1);
            텍스트박스1.SelectionFont = new Font("Tahoma", 15, FontStyle.Bold);
            Controls.Add(텍스트박스1);

            tbSet tx2 = new tbSet(this, "tb2", 200, 35, 370, 93);

            텍스트박스2              = ct.txtbox(tx2);
            텍스트박스2.Font         = new Font("Tahoma", 15, FontStyle.Bold);
            텍스트박스2.PasswordChar = '*';
            Controls.Add(텍스트박스2);

            pnSet pn2 = new pnSet(this, 750, 169, 0, 110);
            Panel 패널2 = ct.panel(pn2);

            패널2.BackColor = Color.White;
            Controls.Add(패널2);
            패널2.Controls.Add(텍스트박스1);
            패널2.Controls.Add(텍스트박스2);


            ArrayList arr1 = new ArrayList();

            arr1.Add(new lbSet(this, "lb3", "Name ", 150, 20, 190, 50, 15));
            arr1.Add(new lbSet(this, "lb4", "Password", 150, 20, 190, 100, 15));

            for (int i = 0; i < arr1.Count; i++)
            {
                if (typeof(lbSet) == arr1[i].GetType())
                {
                    Label label = ct.lable((lbSet)arr1[i]);
                    label.Font = new Font("Tahoma", 15, FontStyle.Bold);
                    패널2.Controls.Add(label);
                }
            }
            //끝 패널
            pnSet pn3 = new pnSet(this, 750, 130, 0, 280);
            Panel 패널3 = ct.panel(pn3);

            패널3.BackColor = Color.FromArgb(19, 38, 78);
            Controls.Add(패널3);   //패널 화면 출력

            ArrayList arr2 = new ArrayList();

            arr2.Add(new btnSet(this, "button", "로그인", 250, 40, 260, 25, btn_Click));
            arr2.Add(new btnSet(this, "button", "계정만들기", 130, 30, 320, 75, btn2_Click));
            for (int i = 0; i < arr2.Count; i++)
            {
                if (typeof(btnSet) == arr2[i].GetType())
                {
                    Button button = ct.btn((btnSet)arr2[i]);
                    button.Font      = new Font("Tahoma", 8, FontStyle.Regular);
                    button.FlatStyle = FlatStyle.Flat;
                    button.FlatAppearance.BorderSize = 0;
                    패널3.Controls.Add(button);
                }
            }

            pnSet pn4 = new pnSet(this, 750, 19, 0, 411);
            Panel 패널4 = ct.panel(pn4);

            패널4.BackColor = Color.White;
            Controls.Add(패널4);   //패널 화면 출력

            ArrayList arr3 = new ArrayList();

            arr3.Add(new lbSet(this, "lb3", "관리자 : (주)Mojave  연락처 : 1588-3000", 300, 20, 517, 3, 8));
            for (int i = 0; i < arr3.Count; i++)
            {
                if (typeof(lbSet) == arr3[i].GetType())
                {
                    Label label = ct.lable((lbSet)arr3[i]);
                    label.Font = new Font("Tahoma", 8, FontStyle.Bold);
                    패널4.Controls.Add(label);
                }
            }
        }
Example #3
0
        private void FORM_02_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            ClientSize           = new Size(750, 430); //폼 사이즈
            this.ControlBox      = false;              //최소화 최대화 버튼 없애기

            ct = new _Create();

            //Name 텍스트박스 출력
            Richtb tx1 = new Richtb(this, "txt1", 170, 30, 30, 60);

            네임택박 = ct.richbox(tx1);
            네임택박.SelectionFont = new Font("Tahoma", 15, FontStyle.Bold);
            Controls.Add(네임택박);

            //Postion 텍스트박스 출력
            Richtb tx2 = new Richtb(this, "txt2", 170, 30, 30, 120);

            포지션택박 = ct.richbox(tx2);
            포지션택박.SelectionFont = new Font("Tahoma", 15, FontStyle.Bold);
            Controls.Add(포지션택박);

            //Password 텍스트박스 출력
            tbSet tx3 = new tbSet(this, "txt3", 170, 30, 30, 180);

            패스워드택박 = ct.txtbox(tx3);
            패스워드택박.PasswordChar = '*';
            패스워드택박.Font         = new Font("Tahoma", 15, FontStyle.Bold);
            Controls.Add(패스워드택박);

            //Serial 텍스트박스 출력
            Richtb tx4 = new Richtb(this, "txt4", 170, 30, 30, 240);

            시리얼택박 = ct.richbox(tx4);
            시리얼택박.SelectionFont = new Font("Tahoma", 15, FontStyle.Bold);
            Controls.Add(시리얼택박);

            pnSet pn1 = new pnSet(this, 230, 370, 30, 30);
            Panel 패널  = ct.panel(pn1);

            패널.BackColor = Color.FromArgb(19, 38, 78);
            Controls.Add(패널);
            패널.Controls.Add(네임택박);
            패널.Controls.Add(포지션택박);
            패널.Controls.Add(패스워드택박);
            패널.Controls.Add(시리얼택박);

            ArrayList arr = new ArrayList();

            arr.Add(new lbSet(this, "label1", "Name", 50, 15, 90, 40, 10));
            arr.Add(new lbSet(this, "label2", "Postion", 100, 15, 83, 100, 10));
            arr.Add(new lbSet(this, "label3", "Password", 100, 15, 75, 160, 10));
            arr.Add(new lbSet(this, "label4", "Serial Number", 100, 15, 90, 220, 10));
            arr.Add(new btnSet(this, "Btn1_pn1", "가입", 80, 50, 30, 290, btn_Click));
            arr.Add(new btnSet(this, "Btn2_pn1", "취소", 80, 50, 120, 290, btn2_Click));

            for (int i = 0; i < arr.Count; i++)
            {
                if (typeof(lbSet) == arr[i].GetType())
                {
                    Label label = ct.lable((lbSet)arr[i]);
                    label.ForeColor = Color.White;
                    label.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                    패널.Controls.Add(label);
                }
                else
                {
                    if (typeof(btnSet) == arr[i].GetType())
                    {
                        Button button = ct.btn((btnSet)arr[i]);
                        button.FlatStyle = FlatStyle.Flat;
                        button.FlatAppearance.BorderSize = 0;
                        button.Font = new Font("Tahoma", 8, FontStyle.Bold);
                        패널.Controls.Add(button);
                    }
                }
            }

            pnSet pn2 = new pnSet(this, 420, 370, 300, 30);
            Panel 패널2 = ct.panel(pn2);

            패널2.BackColor = Color.FromArgb(232, 227, 227);
            Controls.Add(패널2);   //패널 화면 출력

            ArrayList arr2 = new ArrayList();

            arr2.Add(new lbSet(this, "label5", "ELBON the table     _", 140, 15, 35, 40, 10));
            arr2.Add(new lbSet(this, "label6", "Mojave of Pos", 200, 27, 180, 29, 30));
            arr2.Add(new lbSet(this, "label7", "1. Mojave of Pos 는 'Mojave/모하비'에서 제작하였습니다.", 350, 15, 35, 70, 8));
            arr2.Add(new lbSet(this, "label8", "2. Mojave of Pos는 ELBON the table의 효율적인 재정관리를 할 수                있도록 돕기 위해 제작 되었습니다.", 380, 30, 35, 100, 8));
            arr2.Add(new lbSet(this, "label9", "3. Mojave of Pos는 자체 제공한 시리얼넘버로 하나의 아이디만 회원               가입할수 있습니다.", 380, 30, 35, 145, 8));
            arr2.Add(new lbSet(this, "label10", "4. Mojave of Pos는 비밀번호찾기 기능을 따로 제공하지 않습니다.", 380, 15, 35, 190, 8));
            arr2.Add(new lbSet(this, "label6", "5. Mojave of Pos안의 ELBON the table 정보는 절대 외부에 공개를                하지 않습니다.", 380, 30, 35, 220, 8));
            arr2.Add(new lbSet(this, "label12", "6. Mojave of Pos는 포스기에 최적화 되어 있습니다.", 380, 15, 35, 265, 8));
            arr2.Add(new lbSet(this, "label13", "문의사항 : [email protected]", 380, 15, 35, 310, 8));
            for (int i = 0; i < arr2.Count; i++)
            {
                if (typeof(lbSet) == arr2[i].GetType())
                {
                    Label label = ct.lable((lbSet)arr2[i]);
                    if (i == 0)
                    {
                        label.Font = new Font("Tahoma", 9, FontStyle.Bold);
                    }
                    else if (i == 1)
                    {
                        label.Font = new Font("Tahoma", 19, FontStyle.Bold);
                    }
                    else
                    {
                        label.Font = new Font("Tahoma", 8, FontStyle.Bold);
                    }
                    패널2.Controls.Add(label);
                }
            }
        }