private void but_add_Click(object sender, EventArgs e) { int row = dataGridView1.Rows.Add(); string name = ""; if (InputBox.Show("Name", "Please enter a friendly name", ref name) == DialogResult.OK) { dataGridView1[FName.Index, row].Value = name; string pass = ""; if (InputBox.Show("Input Seed", "Please enter your pass phrase", ref pass) == DialogResult.OK) { var input = InputBox.value; MAVAuthKeys.AddKey(dataGridView1[FName.Index, row].Value.ToString(), input); } dataGridView1.EndEdit(); Save(); LoadKeys(); } }
private void Save() { MAVAuthKeys.Save(); }