private void RefreshLangList() { langBox.Items.Clear(); if (db.GetRows("select lang_id from languages order by lang_name asc")) { foreach (DataRow DR in db.Bucket.Rows) { App_Code.Language L = new App_Code.Language(DR[0].ToString()); langBox.Items.Add(L); } } }
private void saveButton_Click(object sender, EventArgs e) { if (langNameBox.Text != "" && !copyFont) { App_Code.Language L = new App_Code.Language(); L.Name = langNameBox.Text; L.Save(); this.Close(); } else if (langNameBox.Text != "" && copyFont) { NewName = langNameBox.Text; this.Close(); } else { MessageBox.Show("Please enter a name."); } }
private void saveButton_Click(object sender, EventArgs e) { if (langNameBox.Text != "" && !copyFont) { App_Code.Language L = new App_Code.Language(); L.Name = langNameBox.Text; L.Save(); this.Close(); } else if (langNameBox.Text != "" && copyFont) { NewName = langNameBox.Text; this.Close(); } else { MessageBox.Show("Please enter a name."); } }
private void RefreshLangList() { langBox.Items.Clear(); if (db.GetRows("select lang_id from languages order by lang_name asc")) { foreach (DataRow DR in db.Bucket.Rows) { App_Code.Language L = new App_Code.Language(DR[0].ToString()); langBox.Items.Add(L); } } }