Exemple #1
0
        private void ButtonScoreAdd_Click(object sender, EventArgs e)
        {
            if (DataViewGrid.SelectedCells.Count == 0)
            {
                MessageBox.Show("Не");
                return;
            }
            var Index   = DataViewGrid.SelectedCells[0].RowIndex;
            var Student = ((List <Student>)DataViewGrid.DataSource)[Index]; // TODO: FIX ERROR HERE.

            var F  = new ScoreRowAdd(this, Student);
            var DR = F.ShowDialog();


            if (DR == DialogResult.OK)
            {
                var SR = F.GetData();
                ScoreRows.Add(SR);
            }
        }
Exemple #2
0
        private void ButtonScoreAdd_Click(object sender, EventArgs e)
        {
            if (DataViewGrid.SelectedCells.Count == 0)
            {
                MessageBox.Show("Не");
                return;
            }
            var Index = DataViewGrid.SelectedCells[0].RowIndex;
            var Student = ((List<Student>)DataViewGrid.DataSource)[Index]; // TODO: FIX ERROR HERE.

            var F = new ScoreRowAdd(this, Student);
            var DR = F.ShowDialog();

            if (DR == DialogResult.OK)
            {
                var SR = F.GetData();
                ScoreRows.Add(SR);
            }
        }