Exemple #1
0
 private void OnSaveClickCommand()
 {
     try
     {
         if (!_modelTrain.IsBusy)
         {
             if (CheckInputData())
             {
                 IsLoading         = true;
                 ItemEdit.NamHoc   = SelectedNamHoc.ID;
                 ItemEdit.HocKy    = SelectedHocKy.ID;
                 ItemEdit.KhoaID   = SelectedKhoa.KhoaID;
                 ItemEdit.LopID    = ItemLopHoc.LopID;
                 ItemEdit.MonHocID = ItemMonHoc.MonHocID;
                 _modelTrain.SaveTrainingAsync(ItemEdit);
             }
         }
     }
     catch (Exception ex)
     {
         MessageCustomize.Show(ex.Message);
     }
 }