예제 #1
0
        public MainForm()
        {
            Random rand = new Random();

            number = rand.Next(1, 5);
            InitializeComponent();
            this.IsMdiContainer  = true;
            homeScreen           = new HomeForm(number);
            homeScreen.MdiParent = this;
            homeScreen.Show();
        }
예제 #2
0
 private void homeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!home)
     {
         CloseCurrentWindow();
         ResetViewBools();
         home                 = true;
         homeScreen           = new HomeForm(number);
         homeScreen.MdiParent = this;
         homeScreen.Dock      = DockStyle.Top;
         homeScreen.Show();
     }
 }