Esempio n. 1
0
        private void OnDeleteRegistered(DataGrid Dtg)
        {
            var thisUser = DialogLogginViewModel.Users[0];

            foreach (GetInfoRegistered_Result DisciplineChecked in Dtg.Items)
            {
                if (DisciplineChecked.check == true)
                {
                    ST.DeleteRegisterStudyUnit(thisUser.ID, DisciplineChecked.DisciplineID);
                }
            }

            ListRegistered = new ObservableCollection <GetInfoRegistered_Result>(ST.GetInfoRegistered(thisUser.ID).ToList());
        }