12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace IS_hairdresser
- {
- public partial class Form2 : Form
- {
- public Form2()
- {
- InitializeComponent();
- password.PasswordChar = '*';
- }
- private void button7_Click(object sender, EventArgs e)
- {
- if (login.Text == "1" && password.Text == "1")
- {
- Form1 fr = new Form1();
- this.Hide();
- fr.Show();
- }
- else
- {
- label2.Text = "Логин или пароль введён неверно";
- }
- }
- private void password_TextChanged(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if (password.PasswordChar == '\0')
- {
- button2.BringToFront();
- password.PasswordChar = '*';
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- if(password.PasswordChar == '*')
- {
- button1.BringToFront();
- password.PasswordChar = '\0';
- }
- }
- }
- }
|