コード例 #1
0
 public MainForm()
 {
     startPageForm = new StartPage(this)
     {
         Dock = DockStyle.Fill, TopLevel = false, FormBorderStyle = FormBorderStyle.None
     };
     watchCardsForm = new WatchCards(this)
     {
         Dock = DockStyle.Fill, TopLevel = false, FormBorderStyle = FormBorderStyle.None
     };
     showFirstPageForm = new ShowFirstPage(this)
     {
         Dock = DockStyle.Fill, TopMost = true, TopLevel = false, FormBorderStyle = FormBorderStyle.None
     };
     showACardForm = new ShowACard(this, showFirstPageForm)
     {
         Dock = DockStyle.Fill, TopLevel = false, FormBorderStyle = FormBorderStyle.None
     };
     addACardForm = new AddACard(this)
     {
         Dock = DockStyle.Fill, TopLevel = false, FormBorderStyle = FormBorderStyle.None
     };
     InitializeComponent();
 }
コード例 #2
0
 public ShowACard(Form owner, ShowFirstPage showFirstPage)
 {
     mainForm           = owner as MainForm;
     this.showFirstPage = showFirstPage;
     InitializeComponent();
 }