Advertisement
Guest User

Untitled

a guest
Feb 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. private void reset_Click(object sender, EventArgs e)
  2. {
  3.  
  4. Properties.Settings.Default.Username = "admin"; //ustanowienie dostepu i przypisanie mu nowej wartosci
  5.  
  6. Properties.Settings.Default.Password = "admin1"; // ustanowienie dostepu i przypisanie mu nowej wartosci
  7. Properties.Settings.Default.Save(); // utrwalenie zmian miedzy formularzami aplikacji metoda Save
  8. MessageBox.Show("Haslo zresetowane do ustawien domyslnych"); //komunikat o zresetowaniu ustawien
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement