Ejemplo n.º 1
0
        public ControlaPandemic()
        {
            ind     = new Indicadores();
            indView = new IndicadoresView(this);

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

            indView.ShowAll();
        }
Ejemplo n.º 2
0
 public bool AddIndicador(IIndicadoresModel i)
 {
     if (hist != null)
     {
         if (!hist.Contains(i))
         {
             hist.Add(i);
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 public void SetModel(IIndicadoresModel m)
 {
     this.ind = m;
 }
Ejemplo n.º 5
0
 //construtor
 #region Construtors
 public ControlaPandemic(IIndicadoresModel m, IIndicadoresView v)
 {
     ind     = m;
     indView = v;
 }