コード例 #1
0
        private void pendingItemUpdate()
        {
            this.flowLayoutPanel2.Controls.Clear();
            var content = from pd in dbcontect2.PendingItem
                          where pd.CheckBox == false
                          select pd;

            foreach (var i in content)
            {
                PendingItemUserControl1 pend = new PendingItemUserControl1();
                pend.content = i.Contents;
                pend.pK      = i.PendingPK;
                this.flowLayoutPanel2.Controls.Add(pend);
                Application.DoEvents();
            }
        }
コード例 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            PendingItemUserControl1 pu = new PendingItemUserControl1();

            flowLayoutPanel2.Controls.Add(pu);
        }