Example #1
0
        private void Log_Button_Click(object sender, EventArgs e)
        {
            UserId = "";
            PassWd = "";
            UserId = this.UserId_TextBox.Text;
            PassWd = this.PassWd_TextBox.Text;
            sql    = "SELECT * FROM USER_TABLE WHERE USER="******" and PASSWORD="******"账号密码错误,请重试","登陆失败",MessageBoxButtons.OK,MessageBoxIcon.Warning);
            //}

            if (true)
            {
                this.Hide();
                Main_Win main_Win = new Main_Win();
                main_Win.Show();
            }
        }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Log_Win log_Win = new Log_Win();
            Main_Win mainWin = new Main_Win();

            Application.Run(mainWin);
        }
 public Win_Add_Order(Main_Win FurtherWin, MySqlConnection FurtherCoon)
 {
     conn        = FurtherCoon;
     MyFatherWin = FurtherWin;
     InitializeComponent();
 }
Example #4
0
        // public string Type, MaterialName, Manager, Factory;
        // public int Num, Price, DayCost;

        public Win_Add_Purchase(Main_Win Furtherwin, MySqlConnection FurtherConnection)
        {
            MyFatherWin = Furtherwin;
            conn        = FurtherConnection;
            InitializeComponent();
        }