示例#1
0
        private void ChampionINFO_Load(object sender, EventArgs e)
        {
            cm             = new Commons();
            this.BackColor = Color.White;
            hashtable      = new Hashtable();
            hashtable.Add("size", new Size(990, 100));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.FromArgb(169, 197, 14));
            hashtable.Add("name", "BackgroundPN");
            rotationBack = cm.getPanel2(hashtable, this);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(985, 512));
            hashtable.Add("point", new Point(0, 100));
            hashtable.Add("color", Color.FromArgb(33, 33, 33));
            hashtable.Add("name", "championlist");
            championList            = cm.getPanel2(hashtable, this);
            championList.AutoScroll = true;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(140, 30));
            hashtable.Add("point", new Point(10, 5));
            hashtable.Add("color", Color.FromArgb(169, 197, 14));
            hashtable.Add("name", "rotationTitle");
            hashtable.Add("text", "금주 로테이션");
            rotationTitle      = cm.getLabel(hashtable, rotationBack);
            rotationTitle.Font = new Font("맑은 고딕", 15, FontStyle.Bold);
            RotationChamp();

            championlistpt();
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //LAP start
            this.Size            = new Size(1000, 800);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.Text            = "LAP";

            Commons cm = new Commons();

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 100));
            hashtable.Add("point", new Point(40, 20));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            logo       = cm.getPictureBox(hashtable, this);
            logo.Image = Properties.Resources.LAP_logo;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(990, 770));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "BackgroundPN");
            pn = cm.getPanel2(hashtable, this);

            hashtable = new Hashtable();
            hashtable.Add("width", "500");
            hashtable.Add("point", new Point(245, 70));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "search");
            hashtable.Add("enabled", true);
            tb             = cm.getTextBox(hashtable, pn);
            tb.Font        = new Font("맑은 고딕", 20, FontStyle.Bold);
            tb.BorderStyle = BorderStyle.None;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 38));
            hashtable.Add("point", new Point(750, 70));
            hashtable.Add("color", Color.Gray);
            hashtable.Add("name", "searchbt");
            hashtable.Add("text", "검색");
            hashtable.Add("click", (EventHandler)btn_click);
            searchBT           = cm.getButton(hashtable, pn);
            searchBT.FlatStyle = FlatStyle.Flat;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(990, 700));
            hashtable.Add("point", new Point(0, 150));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "ListPN");
            championList = cm.getPanel(hashtable, pn);

            ci                 = new ChampionINFO(this);
            ci.WindowState     = FormWindowState.Maximized;
            ci.FormBorderStyle = FormBorderStyle.None;
            ci.MdiParent       = this;
            ci.Dock            = DockStyle.Fill;
            championList.Controls.Add(ci);
            ci.Show();
        }