コード例 #1
0
 private void pictureBox2_Click_1(object sender, EventArgs e)
 {
     if (pnMain.Controls["CRRestaurant"] == null)
     {
         pnMain.Controls.Clear();
         CRRestaurant frmres = new CRRestaurant(2);
         frmres.TopLevel = false;
         pnMain.Controls.Add(frmres);
         frmres.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmres.Dock            = DockStyle.Fill;
         frmres.Show();
     }
 }
コード例 #2
0
ファイル: CRMain.cs プロジェクト: chutinhha/cafe-restaurant
 private void pictureBox2_Click_1(object sender, EventArgs e)
 {
     if (pnMain.Controls["CRRestaurant"] == null)
     {
         pnMain.Controls.Clear();
         CRRestaurant frmres = new CRRestaurant(2);
         frmres.TopLevel = false;
         pnMain.Controls.Add(frmres);
         frmres.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmres.Dock = DockStyle.Fill;
         frmres.Show();
     }
 }