private async void button6_Click(object sender, EventArgs e) { //edit table entry if (comboBox1.SelectedIndex > -1 && listBox1.SelectedIndex > -1) { AccessPropertiesEditor ented = new AccessPropertiesEditor(dbconnprop, (string)comboBox1.SelectedItem, ((ComboName)listBox1.SelectedItem).uid); ented.ShowDialog(this); ented.Dispose(); await RefreshEntryNames(); } }
private async void button1_Click(object sender, EventArgs e) { //add entry to table if (comboBox1.SelectedIndex > -1) { TextBoxDialog tbd = new TextBoxDialog("Enter UID of New Entry"); tbd.ShowDialog(); if (tbd.DialogResult == DialogResult.OK && tbd.TextResult.Length > 0) { await DatabaseManager.AddRow(dbconnprop, (string)comboBox1.SelectedItem, Convert.ToUInt64(tbd.TextResult)); AccessPropertiesEditor ented = new AccessPropertiesEditor(dbconnprop, (string)comboBox1.SelectedItem, Convert.ToUInt64(tbd.TextResult)); ented.ShowDialog(this); ented.Dispose(); await RefreshEntryNames(); } tbd.Dispose(); } }