public ControlaPandemic()
        {
            ind     = new Indicadores();
            indView = new IndicadoresView(this);

            indView.QuantasMortes();
            indView.QuantosInfetados();
            indView.QuantosRecuperados();

            indView.ShowAll();
        }
Exemple #2
0
 public bool AddIndicador(IIndicadoresModel i)
 {
     if (hist != null)
     {
         if (!hist.Contains(i))
         {
             hist.Add(i);
             return(true);
         }
     }
     return(false);
 }
        public ControlaPandemic()
        {
            ind     = new Indicadores();
            indView = new IndicadoresView(this); //liga C <=> V

            indView.QuantasMortes();

            indView.QuantosInfetados();
            indView.QuantosRecuperados();

            //int tot = indView.QuantasMortesII();
            //ind.Mortes += tot;
            indView.ShowAll();
        }
 public void SetModel(IIndicadoresModel m)
 {
     this.ind = m;
 }
 //construtor
 #region Construtors
 public ControlaPandemic(IIndicadoresModel m, IIndicadoresView v)
 {
     ind     = m;
     indView = v;
 }