Ejemplo n.º 1
0
        private void save_Click(object sender, EventArgs e)
        {
            newtag.Text  = newtag.Text.Replace("¦", string.Empty);
            newpass.Text = newpass.Text.Replace("¦", string.Empty);

            if (tags.Contains(newtag.Text))
            {
                MessageBox.Show("This tag already exists. Give it a different name.");
            }
            else if (string.IsNullOrEmpty(newtag.Text))
            {
                MessageBox.Show("Please do not leave tag blank.");
            }
            else
            {
                string entry = newtag.Text + "¦" + newpass.Text;
                fi.Entry(entry);
                Close();
            }
        }
Ejemplo n.º 2
0
        private void gsave_Click(object sender, EventArgs e)
        {
            tagbox.Text  = tagbox.Text.Replace("¦", string.Empty);
            hashbox.Text = hashbox.Text.Replace("¦", string.Empty);

            if (string.IsNullOrEmpty(hashbox.Text))
            {
                MessageBox.Show("First generate a password from seed.");
            }
            else if (string.IsNullOrEmpty(tagbox.Text))
            {
                MessageBox.Show("Give a tag for this password.");
            }
            else if (tags.Contains(tagbox.Text))
            {
                MessageBox.Show("This tag already exists. Name it something different.");
            }
            else
            {
                string entry = tagbox.Text + "¦" + hashbox.Text;
                fi.Entry(entry);
                Close();
            }
        }