Beispiel #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("密码输入错误");
            }
        }
Beispiel #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("密码输入错误");
            }
        }
Beispiel #3
0
        private void customerToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            customerconfig cc = new customerconfig();

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