Ejemplo n.º 1
0
        // PropertyChanged+=
        // myModel.MyBL.AddReportFall(myModel.CurRepFall);
        public void AddNewRep()
        {
            //myModel.AddNewRep();
            //intensity1
            myModel.MyBL.AddReportFall(myModel.CurRepFall);
            if (CurRep.BoomsN >= 2)
            {
                //myModel.CurRepFall.IdNum = myModel.CurRepFall.IdNum;
                //intensity 2
                myModel.CurRepFall.Intensity = myModel.Intensity2;
                myModel.MyBL.AddReportFall(myModel.CurRepFall);
                if (CurRep.BoomsN == 3)
                {
                    //intensity 3
                    // myModel.CurRepFall.idRep = myModel.CurRepFall.IdNum;
                    myModel.CurRepFall.Intensity = myModel.Intensity3;
                    myModel.MyBL.AddReportFall(myModel.CurRepFall);
                }
            }

            ViewService.AddRepMessage();


            // CurrentModel.Bl.AddReportFall(CurrentModel.CurRepFall);
            myModel = new ReportFallModel();
            OnPropertyChanged("CurRep");
            OnPropertyChanged("IntensityRepFall");
            OnPropertyChanged("Intensity2RepFall");
            OnPropertyChanged("Intensity3RepFall");
            OnPropertyChanged("boomsRepFall");
            //  ViewService.CleanFieldes();
        }
Ejemplo n.º 2
0
 public ReportVM()
 {
     myModel = new ReportFallModel();
     MyCom   = new AddRepCommand(this);
 }