Ejemplo n.º 1
0
        private async void toolStripButton1_Click(object sender, EventArgs e)
        {
            ApplicationViewModel applicationViewModel = new ApplicationViewModel();
            await applicationViewModel.GetGrades(user.Login, user.Password);

            AddGradeForm gradeForm = new AddGradeForm(user, applicationViewModel.handbookGrades, this);

            gradeForm.Show();
        }
Ejemplo n.º 2
0
        private async void dataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            string Name   = dataGridView.Rows[e.RowIndex].Cells["gradeName"].FormattedValue.ToString();
            string Number = dataGridView.Rows[e.RowIndex].Cells["Number"].FormattedValue.ToString();
            string Id     = dataGridView.Rows[e.RowIndex].Cells["Id"].FormattedValue.ToString();
            ApplicationViewModel applicationViewModel = new ApplicationViewModel();
            await applicationViewModel.GetGrades(user.Login, user.Password);

            AddGradeForm gradeForm = new AddGradeForm(user, applicationViewModel.handbookGrades, this, Id, Number, Name);

            gradeForm.Show();
        }