Ejemplo n.º 1
0
        private void EditSave_Click(object sender, RoutedEventArgs e)
        {
            List <string> vs = new List <string>();

            vs.Add(FN.Text);
            vs.Add(LN.Text);
            vs.Add(BRTD.Text);
            vs.Add(BRTM.Text);
            vs.Add(BRTY.Text);
            vs.Add(E_MAIL.Text);
            vs.Add(MOBIL.Text);
            vs.Add(TELEPHON.Text);
            vs.Add(GENDER.Text);
            vs.Add(PICTURE.Text);
            vs.Add(USERNAME.Text);
            vs.Add(PASSWORD.Password);
            vs.Add(S_E_D.Text);
            Person2 person2 = new Person2();

            person2.Edit_Person(vs, OLD_Username, OLD_Password);

            OLD_Username = USERNAME.Text;
            OLD_Password = PASSWORD.Password;

            Customer_Dashboard customer_Dashboard = new Customer_Dashboard(USERNAME.Text, PASSWORD.Password);
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DBController dBController = new DBController();

            if (dBController.Checklogin_Customer(username.Text, password.Password))
            {
                Customer_Dashboard customer_Dashboard = new Customer_Dashboard(username.Text, password.Password);
            }
            else
            {
            }

            if (dBController.Checklogin_Admin(username.Text, password.Password))
            {
            }
            else
            {
            }
        }