Esempio n. 1
0
        private void списъкНаВсичкиПостиженияToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AllAchievments allAchievmentsF = new AllAchievments();

            if (allAchievmentsF.ShowDialog() == DialogResult.OK)
            {
                allAchievmentsF.Close();
                refreshGrid();
            }
        }
Esempio n. 2
0
        private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn &&
                e.RowIndex >= 0)
            {
                //TODO - Button Clicked - Execute Code Here
                var            cell            = dataGridView1.Rows[e.RowIndex].Cells[0].Value;
                int            studentId       = int.Parse(cell.ToString());
                AllAchievments allAchievmentsF = new AllAchievments(studentId);
                dataGridView1.RowTemplate.Height = 80;


                if (allAchievmentsF.ShowDialog() == DialogResult.OK)
                {
                    allAchievmentsF.Close();
                    refreshGrid();
                }
            }
        }