Example #1
0
        void saveSettings()
        {
            getData();
            XMLService.initialSetup();
            Setting.set();
            MyKey.add();

            Dispose();
        }
Example #2
0
        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);
            }
        }