private void btnAddMean_Click(object sender, EventArgs e) { Meanings mean = new Meanings(null); if (mean.ShowDialog() == DialogResult.OK) { ui.InitMeaning(); ui.UserSelectedChange(); } }
private void btnEditMean_Click(object sender, EventArgs e) { object obj1 = this.clbMeaning.SelectedItem; if (obj1 != null) { Dictionary <int, string> dic = new Dictionary <int, string>(); ShineTech.TempCentre.DAL.Meanings m = obj1 as ShineTech.TempCentre.DAL.Meanings; dic.Add(m.Id, m.Desc); Meanings mean = new Meanings(dic); if (mean.ShowDialog() == DialogResult.OK) { ui.InitMeaning(); ui.UserSelectedChange(); } } }