private void bAddPrivTalc_Click(object sender, EventArgs e) { dgvTopicTalc.ClearSelection(); privateTalk = new PrivateTalk(); privateTalk.datePrTalk = DateTime.Now.Date; privateTalk.idJournal = JournalForm.Journal.idJournal; buttonDelete.Visible = false; panelFill(); FillTalkStudent(); }
private void dgvTopicTalc_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { privateTalk = (PrivateTalk)dgvTopicTalc.Rows[e.RowIndex].DataBoundItem; panelFill(); buttonDelete.Visible = true; FillTalkStudent(); } }