Beispiel #1
0
        private void Button_Click_4(object sender, RoutedEventArgs e)
        {
            string[] p = Rutes.cont();

            for (int i = 0; i < p.Length; i += 2)
            {
                if (LoginUsername.Text == p[i])
                {
                    pray = true;
                }
                else
                {
                    pray = false;
                }
            }

            for (int x = 1; x < p.Length; x += 2)
            {
                if (LoginPassword.Text == p[x])
                {
                    play = true;
                }
                else
                {
                    play = false;
                }
            }

            if (pray == true && play == true)
            {
                MessageBox.Show("Bienvenido de nuevo" + "" + LoginUsername.Text + "\n" + "Disfruta de todos nuestros servicios");
            }
            else
            {
                MessageBox.Show("Incredenciales invalidas");
            }
        }
Beispiel #2
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     Rutes.Addname(RegisterUsername.Text);
     Rutes.Addname(Registerpassword.Text);
 }
Beispiel #3
0
 private void Button_Click_3(object sender, RoutedEventArgs e)
 {
     Rutes.Delete();
     TxtData.Text = "";
 }
Beispiel #4
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            string text = Rutes.ReadAllFile();

            TxtData.Text = text;
        }