예제 #1
0
 public void LoadIzlazniObrazac(IMainForm frm, string name)
 {
     try
     {
         IzlazniObrazac obrazac = CrtajMeModel.Factories.IzlazniObrazacFactory.CreateNewIzlazniObrazac(name);
         IzlazniObrazacRepos.Instance().Add(obrazac);
     }
     catch (CrtajMeException e)
     {
         frm.ShowErrorMessage(e.getMsg());
     }
 }
예제 #2
0
 /// <summary>
 /// Glavna metoda koja testira
 /// </summary>
 /// <param name="ulazniName">Ime ulaznog obrasca</param>
 /// <param name="izlazniName">Ime izlazng obrasca</param>
 /// <param name="tipName">Tip prikaza</param>
 public void RunTest(IMainForm frm, IVisualView graph, string applicationName, string ulazniName, string izlazniName, string tipName, string prikazName)
 {
     try
     {
         UlazniObrazac  input     = UlazniObrazacRepos.Instance().GetObrazac(ulazniName);
         IzlazniObrazac output    = IzlazniObrazacRepos.Instance().GetObrazac(izlazniName);
         Prikaz         newPrikaz = CrtajMeModel.Factories.PrikazFactory.CreateNewPrikaz(prikazName, 0, tipName);
         Tester.Config(applicationName, newPrikaz, input, output);
         List <object> attList = new List <object>();
         attList.Add(frm);
         attList.Add(graph);
         attList.Add(newPrikaz);
         Thread thr = new Thread(new ParameterizedThreadStart(this.TestThread));
         thr.Start(attList);
         while (!thr.IsAlive)
         {
             ;
         }
     }
     catch (CrtajMeException e)
     {
         frm.ShowErrorMessage(e.getMsg());
     }
 }
예제 #3
0
 public MainWindowConroller(IMainForm frm)
 {
     UlazniObrazacRepos.Instance().addObserver(frm);
     IzlazniObrazacRepos.Instance().addObserver(frm);
     GenerateObjects();
 }
예제 #4
0
 public List <string> IzlazniObrazacList()
 {
     return(IzlazniObrazacRepos.Instance().List());
 }