示例#1
0
文件: RuleView.cs 项目: yungjin/-
        private void getView()
        {
            hashtable = new Hashtable();
            hashtable.Add("type", "");
            hashtable.Add("size", new Size(1000, 500));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "head");
            head = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1000, 200));
            hashtable.Add("point", new Point(0, 500));
            hashtable.Add("color", Color.Yellow);
            hashtable.Add("name", "contents");
            contents = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("width", 45);
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox1");
            hashtable.Add("enabled", false);
            textBox1 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 100);
            hashtable.Add("point", new Point(45, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "textBox2");
            hashtable.Add("enabled", true);
            textBox2 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 200);
            hashtable.Add("point", new Point(145, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "textBox3");
            hashtable.Add("enabled", true);
            textBox3 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 50);
            hashtable.Add("point", new Point(345, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox4");
            hashtable.Add("enabled", false);
            textBox4 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 300);
            hashtable.Add("point", new Point(395, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox5");
            hashtable.Add("enabled", false);
            textBox5 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 300);
            hashtable.Add("point", new Point(695, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox6");
            hashtable.Add("enabled", false);
            textBox6 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(100, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn1");
            hashtable.Add("text", "저장");
            hashtable.Add("click", (EventHandler)btn_click);
            btn1 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(300, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn2");
            hashtable.Add("text", "수정");
            hashtable.Add("click", (EventHandler)btn_click);
            btn2 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(600, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn3");
            hashtable.Add("text", "삭제");
            hashtable.Add("click", (EventHandler)btn_click);
            btn3 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(800, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn4");
            hashtable.Add("text", "초기화");
            hashtable.Add("click", (EventHandler)btn_click);
            btn4 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "listView");
            hashtable.Add("click", (MouseEventHandler)listView_click);
            listView = comm.getListView(hashtable, head);

            SelectData();
        }
示例#2
0
        private void getView()
        {
            /*
             * string sql = "select * from ViewControl;";
             * MySqlDataReader sdr = db.Reader(sql);
             *
             * string[] arr = new string[sdr.FieldCount];
             * while (sdr.Read())
             * {
             *  string svName = sdr["svName"].ToString();
             *  int RGB = Convert.ToInt32(sdr["color"]);
             *  int btnevent = Convert.ToInt32(sdr["event"]);
             *
             *  for (int i = 0; i < sdr.FieldCount; i++)
             *  {
             *      arr[i] = sdr.GetValue(i).ToString();
             *      //MessageBox.Show(arr[i].ToString());
             *  }
             * }
             */
            hashtable = new Hashtable();
            hashtable.Add("type", "");
            hashtable.Add("size", new Size(1000, 500));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "head");
            head = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1000, 200));
            hashtable.Add("point", new Point(0, 500));
            hashtable.Add("color", Color.Yellow);
            hashtable.Add("name", "contents");
            contents = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("width", 45);
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox1");
            hashtable.Add("enabled", false);
            textBox1 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 100);
            hashtable.Add("point", new Point(45, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "textBox2");
            hashtable.Add("enabled", true);
            textBox2 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 100);
            hashtable.Add("point", new Point(145, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "textBox3");
            hashtable.Add("enabled", true);
            textBox3 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 100);
            hashtable.Add("point", new Point(245, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "textBox4");
            hashtable.Add("enabled", true);
            textBox4 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 50);
            hashtable.Add("point", new Point(345, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox5");
            hashtable.Add("enabled", false);
            textBox5 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 300);
            hashtable.Add("point", new Point(395, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox6");
            hashtable.Add("enabled", false);
            textBox6 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("width", 300);
            hashtable.Add("point", new Point(695, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox7");
            hashtable.Add("enabled", false);
            textBox7 = comm.getTextBox(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(100, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn1");
            hashtable.Add("text", "저장");
            hashtable.Add("click", (EventHandler)btn_click);
            btn1 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(300, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn2");
            hashtable.Add("text", "수정");
            hashtable.Add("click", (EventHandler)btn_click);
            btn2 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(600, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn3");
            hashtable.Add("text", "삭제");
            hashtable.Add("click", (EventHandler)btn_click);
            btn3 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 80));
            hashtable.Add("point", new Point(800, 50));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn4");
            hashtable.Add("text", "초기화");
            hashtable.Add("click", (EventHandler)btn_click);
            btn4 = comm.getButton(hashtable, contents);

            hashtable = new Hashtable();
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "listView");
            hashtable.Add("click", (MouseEventHandler)listView_click);
            listView = comm.getListView(hashtable, head);

            SelectData();
        }
示例#3
0
        private void getView()
        {
            hashtable = new Hashtable();
            hashtable.Add("type", "");
            hashtable.Add("size", new Size(500, 45));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Red);
            hashtable.Add("name", "member");
            member = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(500, 45));
            hashtable.Add("point", new Point(500, 0));
            hashtable.Add("color", Color.Yellow);
            hashtable.Add("name", "rule");
            rule = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1000, 655));
            hashtable.Add("point", new Point(0, 45));
            hashtable.Add("color", Color.Blue);
            hashtable.Add("name", "mapping");
            mapping = comm.getPanel(hashtable, parentForm);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(500, 20));
            hashtable.Add("point", new Point(0, 5));
            hashtable.Add("color", Color.Red);
            hashtable.Add("name", "label1");
            hashtable.Add("text", "Member");
            label1 = comm.getLabel(hashtable, member);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(500, 20));
            hashtable.Add("point", new Point(0, 5));
            hashtable.Add("color", Color.Yellow);
            hashtable.Add("name", "label2");
            hashtable.Add("text", "Rule");
            label2 = comm.getLabel(hashtable, rule);

            hashtable = new Hashtable();
            hashtable.Add("width", 500);
            hashtable.Add("point", new Point(0, 25));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "comboBox1");
            hashtable.Add("click", (EventHandler)Member_click);
            comboBox1 = comm.getComboBox(hashtable, member);

            hashtable = new Hashtable();
            hashtable.Add("width", 485);
            hashtable.Add("point", new Point(0, 25));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "comboBox2");
            hashtable.Add("click", (EventHandler)Rule_click);
            comboBox2 = comm.getComboBox(hashtable, rule);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1000, 555));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Red);
            hashtable.Add("name", "list");
            list = comm.getPanel(hashtable, mapping);

            hashtable = new Hashtable();
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "listView");
            hashtable.Add("click", (MouseEventHandler)listView_click);
            listView = comm.getListView(hashtable, list);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1000, 100));
            hashtable.Add("point", new Point(0, 555));
            hashtable.Add("color", Color.Yellow);
            hashtable.Add("name", "controll");
            controll = comm.getPanel(hashtable, mapping);

            hashtable = new Hashtable();
            hashtable.Add("width", 100);
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox1");
            hashtable.Add("enabled", false);
            textBox1 = comm.getTextBox(hashtable, controll);

            hashtable = new Hashtable();
            hashtable.Add("width", 100);
            hashtable.Add("point", new Point(100, 0));
            hashtable.Add("color", Color.Silver);
            hashtable.Add("name", "textBox2");
            hashtable.Add("enabled", false);
            textBox2 = comm.getTextBox(hashtable, controll);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(200, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn1");
            hashtable.Add("text", "추가");
            hashtable.Add("click", (EventHandler)btn1_click);
            btn1 = comm.getButton(hashtable, controll);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(300, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn2");
            hashtable.Add("text", "삭제");
            hashtable.Add("click", (EventHandler)btn2_click);
            btn2 = comm.getButton(hashtable, controll);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(400, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "btn3");
            hashtable.Add("text", "초기화");
            hashtable.Add("click", (EventHandler)btn3_click);
            btn3 = comm.getButton(hashtable, controll);

            GetSelect();
        }