コード例 #1
0
        public DominionForm()
        {
            _shuffler = Shuffler.GetInstance();
            Text      = "DominionShuffler ver2.0";
            Size      = new Size(480, 400);

            _gbSets = new GroupBox {
                Text     = "使用するセット",
                Location = new Point(20, 20),
                Size     = new Size(150, 185),
            };

            _gbOptions = new GroupBox {
                Text     = "オプション",
                Location = new Point(20, 215),
                Size     = new Size(150, 50)
            };

            _gbCards = new GroupBox {
                Text     = "使用するカード",
                Location = new Point(200, 20),
                Size     = new Size(250, 185),
            };

            _gbExCards = new GroupBox {
                Text     = "追加するカード",
                Location = new Point(200, 215),
                Size     = new Size(250, 135),
            };

            _btShuffle = new Button {
                Text     = "GO!",
                Location = new Point(20, 280),
                Size     = new Size(150, 30),
            };

            _btShuffle.Click += ShuffleClick;

            _cbBas = new CheckBox {
                Text     = "基本",
                Location = new Point(20, 15),
            };

            _cbInt = new CheckBox {
                Text     = "陰謀",
                Location = new Point(20, 35),
            };

            _cbSea = new CheckBox {
                Text     = "海辺",
                Location = new Point(20, 55),
            };

            _cbPro = new CheckBox {
                Text     = "繁栄",
                Location = new Point(20, 75),
            };

            _cbHer = new CheckBox {
                Text     = "収穫祭",
                Location = new Point(20, 95),
            };

            _cbFor = new CheckBox {
                Text     = "異郷",
                Location = new Point(20, 115),
            };

            _cbArc = new CheckBox {
                Text     = "錬金術",
                Location = new Point(20, 135),
            };

            _cbBla = new CheckBox {
                Text     = "暗黒時代",
                Location = new Point(20, 155),
            };

            _cbGui = new CheckBox {
                Text     = "ギルド",
                Location = new Point(20, 175),
            };

            _cbPlatinum = new CheckBox {
                Text     = "使用しない",
                Location = new Point(20, 20),
            };

            _gbSets.Controls.Add(_cbBas);
            _gbSets.Controls.Add(_cbInt);
            _gbSets.Controls.Add(_cbSea);
            _gbSets.Controls.Add(_cbPro);
            _gbSets.Controls.Add(_cbHer);
            _gbSets.Controls.Add(_cbFor);
            _gbSets.Controls.Add(_cbArc);
            _gbSets.Controls.Add(_cbBla);
            _gbSets.Controls.Add(_cbGui);

            _gbOptions.Controls.Add(_cbPlatinum);

            Controls.Add(_gbSets);
            Controls.Add(_gbOptions);
            Controls.Add(_gbCards);
            Controls.Add(_gbExCards);
            Controls.Add(_btShuffle);
        }
コード例 #2
0
ファイル: Form.cs プロジェクト: gumfum/DominionShuffler
        public DominionForm()
        {
            _shuffler = Shuffler.GetInstance();
            Text = "DominionShuffler ver2.0";
            Size = new Size(480, 400);

            _gbSets = new GroupBox {
                Text = "使用するセット",
                Location = new Point(20, 20),
                Size = new Size(150, 185),
            };

            _gbOptions = new GroupBox {
                Text = "オプション",
                Location = new Point(20, 215),
                Size = new Size(150, 50)
            };

            _gbCards = new GroupBox {
                Text = "使用するカード",
                Location = new Point(200, 20),
                Size = new Size(250, 185),
            };

            _gbExCards = new GroupBox {
                    Text = "追加するカード",
                    Location = new Point(200, 215),
                    Size = new Size(250, 135),
            };

            _btShuffle = new Button {
                Text = "GO!",
                Location = new Point(20, 280),
                Size = new Size(150, 30),
            };

            _btShuffle.Click += ShuffleClick;

            _cbBas = new CheckBox {
                Text = "基本",
                Location = new Point(20, 15),
            };

            _cbInt = new CheckBox {
                Text = "陰謀",
                Location = new Point(20, 35),
            };

            _cbSea = new CheckBox {
                Text = "海辺",
                Location = new Point(20, 55),
            };

            _cbPro = new CheckBox {
                Text = "繁栄",
                Location = new Point(20, 75),
            };

            _cbHer = new CheckBox {
                Text = "収穫祭",
                Location = new Point(20, 95),
            };

            _cbFor = new CheckBox {
                Text = "異郷",
                Location = new Point(20, 115),
            };

            _cbArc = new CheckBox {
                Text = "錬金術",
                Location = new Point(20, 135),
            };

            _cbBla = new CheckBox {
                Text = "暗黒時代",
                Location = new Point(20, 155),
            };

            _cbGui = new CheckBox {
                Text = "ギルド",
                Location = new Point(20, 175),
            };

            _cbPlatinum = new CheckBox {
                Text = "使用しない",
                Location = new Point(20, 20),
            };

            _gbSets.Controls.Add(_cbBas);
            _gbSets.Controls.Add(_cbInt);
            _gbSets.Controls.Add(_cbSea);
            _gbSets.Controls.Add(_cbPro);
            _gbSets.Controls.Add(_cbHer);
            _gbSets.Controls.Add(_cbFor);
            _gbSets.Controls.Add(_cbArc);
            _gbSets.Controls.Add(_cbBla);
            _gbSets.Controls.Add(_cbGui);

            _gbOptions.Controls.Add(_cbPlatinum);

            Controls.Add(_gbSets);
            Controls.Add(_gbOptions);
            Controls.Add(_gbCards);
            Controls.Add(_gbExCards);
            Controls.Add(_btShuffle);
        }