Beispiel #1
0
 private void Update_button_Click(object sender, EventArgs e)
 {
     if (newpass_textBox.Visible == true)
     {
         newpass_textBox.Hide();
         Change_button.Hide();
     }
     else
     {
         newpass_textBox.Show();
         Change_button.Show();
     }
 }
Beispiel #2
0
        public PassList()
        {
            for (int i = 0; i < 100; i++)
            {
                listObj[i]          = new ListObj();
                listObj[i].Title    = null;
                listObj[i].Password = null;
                listObj[i].App      = null;
                listObj[i].Descr    = null;
            }
            InitializeComponent();

            this.ControlBox = false;
            newpass_textBox.Hide();
            Change_button.Hide();
        }
Beispiel #3
0
        private void Change_button_Click(object sender, EventArgs e)
        {
            try
            {
                int i = PassSearch(title_label.Text);
                if (i != 101)
                {
                    listObj[i].Password = Encryption.EncryptPass(newpass_textBox.Text);
                }
                dataGridView1.Rows.Clear();
                DataTableFill();
                ObjDetailsFill();

                newpass_textBox.Hide();
                Change_button.Hide();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #4
0
 private void Change_User_Name_Load(object sender, EventArgs e)
 {
     Write_Box.Hide();
     name_Label.Hide();
     Change_button.Hide();
 }