//Controls private void btn_save_Click(object sender, EventArgs e) { ClsNotice newNotice = new ClsNotice(txt_noticeText.Text); ClsDataManager.SetNotice(newNotice); updateDisplay(); }
private void dgv_notices_SelectionChanged(object sender, EventArgs e) { ClsNotice copyOfSelectedNotice = (ClsNotice)dgv_notices.CurrentRow.DataBoundItem; if (ClsDataManager.Notices.ContainsKey(copyOfSelectedNotice.UID)) { _selectedNotice = ClsDataManager.Notices[copyOfSelectedNotice.UID]; } }