Example #1
0
        private void buttonAddRegion_Click(object sender, EventArgs e)
        {
            DatabaseWorks database = new DatabaseWorks(Credentials);

            listBoxMainLog.Items.Add(database.AddRegion(
                                         textBoxRegionName.Text,
                                         textBoxRegionShortName.Text,
                                         textBoxRegionEmail.Text,
                                         GetDirCode("Db_Locale", comboBoxRegionLocale.SelectedItem.ToString(), 1)));
            ComboUpdates();
            MainTabUpdate(1);
            database.Dispose();
        }