示例#1
0
        public Form1()
        {
            InitializeComponent();

            for (int i = 0; i < 9; ++i)
            {
                var pip = new Damany.Windows.Form.PipPictureBox();
                pip.Text = (i + 1).ToString();
                pip.Tag = i;
                pip.Image = TestDataProvider.Data.GetFrame().ToBitmap();
                pip.SmallImage = TestDataProvider.Data.GetPortrait().ToBitmap();

                pip.Dock = DockStyle.Fill;

                this.tableLayoutPanel1.Controls.Add(pip);
                this.Pips.Add(pip);
            }
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();


            for (int i = 0; i < 9; ++i)
            {
                var pip = new Damany.Windows.Form.PipPictureBox();
                pip.Text       = (i + 1).ToString();
                pip.Tag        = i;
                pip.Image      = TestDataProvider.Data.GetFrame().ToBitmap();
                pip.SmallImage = TestDataProvider.Data.GetPortrait().ToBitmap();

                pip.Dock = DockStyle.Fill;

                this.tableLayoutPanel1.Controls.Add(pip);
                this.Pips.Add(pip);
            }
        }