示例#1
0
        private void pictureBoxEnterSignIn_Click(object sender, EventArgs e)
        {
            ClientArr clientArr = new ClientArr();

            clientArr.Fill();
            Client client;

            if (clientArr.FilterMailAndPassWord(textBoxSignInMail.Text, textBoxPassWord.Text) && clientArr.FilterMailAndPassWord(textBoxSignInMail.Text, textBoxPassWord.Text))
            {
                client = GetClientFromForm();
                //buttonSaveSignUp.Enabled = false;
                labelWelcome.Visible         = true;
                labelWelcome.Text            = "ברוך שובך " + client.FirstName;
                buttonSignUp.Visible         = false;
                buttonExitLogIn.Visible      = true;
                tabHouses.SelectedTab        = tabPageApartments;
                buttonUpdate.Visible         = true;
                buttonSignIn.Visible         = false;
                buttonUpdatePersenol.Visible = true;
                label2.Visible       = true;
                buttonCharts.Visible = true;
            }
            else
            {
                MessageBox.Show("מייל או סיסמא שגויים", "כניסת משתמש", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }