Пример #1
0
 private void CreateSheet(Sheet data)
 {
     TabPage newTab = new TabPage();
     newTab.Tag = data;
     NotePage noteData = new NotePage(newTab, this);
     noteData.Location = new Point(0, 0);
     noteData.Size = newTab.Size;
     noteData.Anchor = AnchorStyles.Bottom | AnchorStyles.Top |
                       AnchorStyles.Right | AnchorStyles.Left;
     newTab.Controls.Add(noteData);
     UpdateTitle(newTab);
     SheetSelection.TabPages.Add(newTab);
 }