Exemplo n.º 1
0
        //Controls
        private void btn_save_Click(object sender, EventArgs e)
        {
            ClsNotice newNotice = new ClsNotice(txt_noticeText.Text);

            ClsDataManager.SetNotice(newNotice);
            updateDisplay();
        }
Exemplo n.º 2
0
        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];
            }
        }