示例#1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            DeviceMain DM = new DeviceMain();

            this.Parent.Controls.Add(DM);
            DM.Dock = DockStyle.Fill;
            DM.BringToFront();
            this.Hide();
        }
        private void btnBack_Click(object sender, EventArgs e)
        {
            QuestionsHome.cho = null;
            DeviceMain DV = new DeviceMain();

            this.Parent.Controls.Add(DV);
            DV.Dock = DockStyle.Fill;
            DV.BringToFront();
            this.Hide();
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (Home.op == 1)
            {
                id = getvaluefromDB("printer_Id", "Printers", "printer_Company", "printer_model");
                co = getvaluefromCompanys(con, "Company_Id");
                string Mod = textBox1.Text;
                Model = Mod.ToUpper();
            }

            if (id != null)
            {
                DeviceMain DM = new DeviceMain();

                this.Parent.Controls.Add(DM);
                DM.Dock = DockStyle.Fill;
                DM.BringToFront();
            }
        }