Example #1
0
 public void SavePrikaz(IVisualView frm, string prikazName, double ocjena)
 {
     try
     {
         Prikaz p = PrikazRepos.Instance().GetPrikazByName(prikazName);
         p.Grade = ocjena;
     }
     catch (CrtajMeException e)
     {
         frm.ShowErrorMessage(e.getMsg());
     }
 }
Example #2
0
        public void ShowPrikaz(IVisualView graph, string prikazName)
        {
            try
            {
                Prikaz newPrikaz = PrikazRepos.Instance().GetPrikazByName(prikazName);
                foreach (Point i in newPrikaz.getPoints())
                {
                    graph.DrawPoint(i);
                }
                foreach (Line l in newPrikaz.getLines())
                {
                    graph.DrawLine(l);
                }

                graph.ShowView(newPrikaz.Name);
            }
            catch (CrtajMeException e)
            {
                graph.ShowErrorMessage(e.getMsg());
            }
        }