Facebook
From Putrid Lechwe, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 198
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApp17
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void button1_Click(object sender, EventArgs e)
  21.         {
  22.             string login = t1.Text;
  23.             string hasło = t2.Text;
  24.  
  25.  
  26.  
  27.             bool czyPrawdaLogin = login == "Admin222";
  28.             bool czyPrawdaHasło = hasło == "f12f";
  29.             if (czyPrawdaLogin == true && czyPrawdaHasło== true)
  30.             {
  31.                 MessageBox.Show("Zalogowano");
  32.             }
  33.             else
  34.             {
  35.                 MessageBox.Show("Nie zalogowano");
  36.             }
  37.         }
  38.     }
  39. }