コード例 #1
0
        public void Execute(System.Windows.Forms.Form x)
        {
            CardPanel temp = new CardPanel();

            temp.Init_Card(x);
            x.Controls.Add(temp);
            x.Width  = temp.Width + 23;
            x.Height = temp.Height + 48;
        }
コード例 #2
0
ファイル: Form.cs プロジェクト: chonghow97/memoryGame
        public Form()
        {
            InitializeComponent();
            CardPanel   cardPanel = PanelRemote.GetPanel();
            PanelButton panel     = new PanelButton(cardPanel);

            panel.Execute(this);
            Controls.Add(new ScorePanel(this));
        }