private void BackButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            StockManagementAppFrontPageUi stockManagementAppFrontPageUi = new StockManagementAppFrontPageUi();

            stockManagementAppFrontPageUi.Show();
        }
Esempio n. 2
0
        private void LoginButton_Click(object sender, EventArgs e)
        {
            bool isSuccess = CheckLogin(usernameTextBox.Text, passwordTextBox.Text);

            if (isSuccess)
            {
                this.Hide();
                StockManagementAppFrontPageUi stockManagementAppFrontPageUi = new StockManagementAppFrontPageUi();
                stockManagementAppFrontPageUi.Show();
            }
            else
            {
                MessageBox.Show("Username and Password doesn't match!");
            }
        }