void saveSettings() { getData(); XMLService.initialSetup(); Setting.set(); MyKey.add(); Dispose(); }
void save() { MyKey.name = textBox1.Text; MyKey.privPubKey = textBox3.Text; MyKey.note = textBox2.Text; if (checkName()) { MyKey.add(); refreshDgv(); Dispose(); } else { MessageBox.Show("Nazwa " + MyKey.name + " już istnieje! Wybierz inną!", "Ostrzeżenie", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }