1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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 СУБД_Альфапол
- {
- public partial class FormProfile : Form
- {
- public FormProfile()
- {
- InitializeComponent();
- }
- private void FormProfile_Load(object sender, EventArgs e)
- {
- // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.Manager' table. You can move, or remove it, as needed.
- this.managerTableAdapter.Fill(this.dbAlphapolAGDataSet.Manager);
- lblPass.Hide();
- }
- private void BtnSave_Click(object sender, EventArgs e)
- {
- if (tbxPass1.Text != "")
- {
- if (tbxPass1.Text != tbxPass2.Text)
- {
- MessageBox.Show("Пароли должны совпадать!", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
- return;
- }
- lblPass.Text = tbxPass1.Text;
- }
- bsMeneger.EndEdit();
- this.managerTableAdapter.Update(this.dbAlphapolAGDataSet.Manager);
- Close();
- }
- private void tbxPass1_TextChanged(object sender, EventArgs e)
- {
- }
- private void tbxPass2_TextChanged(object sender, EventArgs e)
- {
- }
- private void cbxShowPass_CheckedChanged(object sender, EventArgs e)
- {
- tbxPass1.UseSystemPasswordChar = !cbxShowPass.Checked;
- tbxPass2.UseSystemPasswordChar = !cbxShowPass.Checked;
- }
- }
- }
|