Ejemplo n.º 1
0
        private void 入住登记ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.panel1.Controls.Clear();//点击按钮,先清空panel里的内容
            Form2_checkin form2 = new Form2_checkin {
                TopLevel = false, FormBorderStyle = FormBorderStyle.None
            };                               //要添加的Form不显示窗体头和边框

            this.panel1.Controls.Add(form2); //把form里的内容添到panel中
            form2.Show();                    //显示内容
        }
Ejemplo n.º 2
0
 private void 入住登记ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Program.currentId == "")
     {
         MessageBox.Show("请先登录", "提示");
     }
     else
     {
         changestyle();
         BackgroundImage = Properties.Resources.big;
         panel1.Controls.Clear();//点击按钮,先清空panel里的内容
         Form2_checkin form2 = new Form2_checkin {
             TopLevel = false, FormBorderStyle = FormBorderStyle.None
         };                          //要添加的Form不显示窗体头和边框
         panel1.Controls.Add(form2); //把form里的内容添到panel中
         panel1.BackColor = Color.Transparent;
         form2.Show();               //显示内容
     }
 }
Ejemplo n.º 3
0
 public checkinConfirm(Form2_checkin form2)
 {
     InitializeComponent();
     f2 = form2;
 }