예제 #1
0
        private void ShowItem(string title, DataTable dt)
        {
            UCReminderItem ucItem = new UCReminderItem(title);

            ucItem.SetItems(dt);
            ucItem.ClickedComplated += new UCReminderItem.ClickedComplate(this.OpenUC);
            this.panelContent.Controls.Add(ucItem);
            ucItem.Width    = this.panelContent.Width;
            ucItem.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            ucItem.Location = new Point(0, this.curY);
            this.curY      += ucItem.Height;
        }
예제 #2
0
 private void ShowItem(string title, DataTable dt)
 {
     UCReminderItem ucItem = new UCReminderItem(title);
     ucItem.SetItems(dt);
     ucItem.ClickedComplated += new UCReminderItem.ClickedComplate(this.OpenUC);
     this.panelContent.Controls.Add(ucItem);
     ucItem.Width = this.panelContent.Width;
     ucItem.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
     ucItem.Location = new Point(0, this.curY);
     this.curY += ucItem.Height;
 }