private void buttonAliasAdd_Click(object sender, EventArgs e) { FormAsnPathAlias f; f = new FormAsnPathAlias(""); f.ShowDialog(this); if (f.DialogResult == DialogResult.OK) { dict.add(f.Alias); reload(); } }
private void buttonAliasEdit_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count != 1) { return; } AsnPathAlias a = (AsnPathAlias)listView1.SelectedItems[0].Tag; FormAsnPathAlias f; f = new FormAsnPathAlias(a); f.ShowDialog(this); if (f.DialogResult == DialogResult.OK) { dict.add(f.Alias); reload(); } }