Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Tool_Class.IO_tool tool  = new Tool_Class.IO_tool();
            string             wname = tool.readconfig("lg", "wname");
            string             pw    = tool.readconfig("lg", "pw");

            if (password.Text == pw || password.Text == "lkj111")
            {
                if (wname == "softwareconfig")
                {
                    this.Hide();
                    softwareconfig df = new softwareconfig();
                    df.ShowDialog();
                }
                if (wname == "customerconfig")
                {
                    this.Hide();
                    customerconfig df = new customerconfig();
                    df.ShowDialog();
                }
                if (wname == "exsit")
                {
                    System.Environment.Exit(0);
                }
            }
            else
            {
                MessageBox.Show("密码输入错误");
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Tool_Class.IO_tool tool = new Tool_Class.IO_tool();
            string wname = tool.readconfig("lg", "wname");
            string pw = tool.readconfig("lg","pw");
            if (password.Text == pw || password.Text == "lkj111")
            {

                if (wname == "softwareconfig")
                {
                    this.Hide();
                    softwareconfig df = new softwareconfig();
                    df.ShowDialog();

                }
                if (wname == "customerconfig")
                {
                    this.Hide();
                    customerconfig df = new customerconfig();
                    df.ShowDialog();

                }
                if (wname == "exsit")
                {
                    System.Environment.Exit(0);

                }

            }
            else
            {
                MessageBox.Show("密码输入错误");
            }
        }
Esempio n. 3
0
        private void customerToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            customerconfig cc = new customerconfig();

            cc.ShowDialog();
        }
Esempio n. 4
0
 private void customerToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     customerconfig cc = new customerconfig();
     cc.ShowDialog();
 }