コード例 #1
0
        public CheckBox checkbox(checkedSet ch)
        {
            CheckBox chbox = new CheckBox();

            chbox.Name     = ch.Name;
            chbox.Text     = ch.Text;
            chbox.Size     = new Size(ch.SX, ch.SY);
            chbox.Location = new Point(ch.PX, ch.PY);
            ch.Form.Controls.Add(chbox);
            return(chbox);
        }
コード例 #2
0
        public void View()
        {
            pnSet pn1 = new pnSet(this, 1200, 900, 0, 0);

            head = ct.panel(pn1);
            Controls.Add(head);

            lbSet lb1 = new lbSet(this, "top", "폐가전제품 방문수거 배출예약", 300, 40, 50, 10, 14);

            top      = ct.label(lb1);
            top.Font = new Font("Verdana", 20.5f, FontStyle.Bold);
            head.Controls.Add(top);
            label_list = new ArrayList();
            label_list.Add(new lbSet(this, "first", "약관동의", 200, 50, 50, 50, 15));
            label_list.Add(new lbSet(this, "second", "기본정보 입력", 200, 50, 300, 50, 15));
            label_list.Add(new lbSet(this, "third", "배출품목 입력", 200, 50, 550, 50, 15));
            label_list.Add(new lbSet(this, "fourth", "예약완료", 200, 50, 800, 50, 15));

            for (int i = 0; i < label_list.Count; i++)
            {
                Label label = ct.label((lbSet)label_list[i]);
                if (i == 0)
                {
                    label.BackColor = Color.Beige;
                }

                label.Font      = new Font("Verdana", 15.5f, FontStyle.Bold);
                label.TextAlign = ContentAlignment.MiddleCenter;
                head.Controls.Add(label);
            }

            richtbSet rt1 = new richtbSet(this, "service_text", 950, 200, 50, 170);

            service_box          = ct.richbox(rt1);
            service_box.ReadOnly = true;
            service_box.Text     = service_string;
            Point(service_box, 0, 11);
            Point(service_box, 2, 10);
            Point(service_box, 6, 10);
            head.Controls.Add(service_box);

            richtbSet rt2 = new richtbSet(this, "info_text", 450, 200, 50, 440);

            info_box             = ct.richbox(rt2);
            service_box.ReadOnly = true;
            info_box.Text        = info_string;
            Point(info_box, 2, 10);
            Point(info_box, 16, 10);
            head.Controls.Add(info_box);

            richtbSet rt3 = new richtbSet(this, "apply_text", 450, 200, 550, 440);

            apply_box          = ct.richbox(rt3);
            apply_box.ReadOnly = true;
            apply_box.Text     = apply_string;
            head.Controls.Add(apply_box);

            checkedSet ch1 = new checkedSet(this, "service", "▶ 서비스 약관(필수)", 950, 50, 50, 120);

            service_check            = ct.checkbox(ch1);
            service_check.CheckAlign = ContentAlignment.MiddleRight;
            head.Controls.Add(service_check);

            checkedSet ch2 = new checkedSet(this, "info", "▶ 개인정보 이용 동의(필수)", 450, 50, 50, 390);

            info_check            = ct.checkbox(ch2);
            info_check.CheckAlign = ContentAlignment.MiddleRight;
            head.Controls.Add(info_check);

            checkedSet ch3 = new checkedSet(this, "apply", "▶ 개인정보 제 3자 제공 동의(필수)", 450, 50, 550, 390);

            apply_check            = ct.checkbox(ch3);
            apply_check.CheckAlign = ContentAlignment.MiddleRight;
            head.Controls.Add(apply_check);

            checkedSet ch4 = new checkedSet(this, "all", "전체동의", 100, 50, 490, 650);

            all_check = ct.checkbox(ch4);
            all_check.CheckedChanged += check_all_click;
            head.Controls.Add(all_check);

            btnSet bt1 = new btnSet(this, "next", "다음단계", 100, 50, 960, 750, btn_next_click);

            next = ct.btn(bt1);
            head.Controls.Add(next);
        }