private void Button_Click(object sender, RoutedEventArgs e) { string patekaKonf = ""; string verFile = ""; byte[] verZip = null; AppMum mojApp; Kurir kr = new Kurir(); Recept mojRecept = new Recept(DateTime.Now.AddMonths(-4)); //patekaKonf=@"C:\VerIBprep\Konfig.xml"; patekaKonf ="Konfig.xml"; //mojRecept.addSqlObj(TipProceduri.Fn); //mojRecept.addSqlObj(TipProceduri.Fix); mojRecept.addFileObj(TipFajlovi.XML); mojRecept.addFileObj(TipFajlovi.CristalRpt); mojApp = new AppMum(Aplikacii.WTRG, mojRecept, kr, patekaKonf); if (kr.DaliEVoRed) { mojApp.NapraviVerzija(ref verZip, ref verFile); } txtInfo.TextWrapping = TextWrapping.Wrap; txtErr.TextWrapping = TextWrapping.Wrap; txtInfo.IsReadOnly = true; txtErr.IsReadOnly = true; txtInfo.Text = kr.VratiInfo(); txtErr.Text = kr.VratiGreski(); }
public ActionResult Index(FormCollection form) { ViewBag.Message = "Spremam verzija!."; ViewBag.Prikazi = "hidden"; string verFile = ""; byte[] verZip = null; AppMum mojApp; Kurir kr = new Kurir(); Recept recApp = srediForma(form); mojApp = new AppMum(recApp.Aplikacija, recApp, kr, Server.MapPath("~") + @"\Konfig.xml"); if (kr.DaliEVoRed) { mojApp.NapraviVerzija(ref verZip, ref verFile); if (kr.DaliEVoRed) { return File(verZip, MediaTypeNames.Application.Zip, verFile); } } ViewBag.Prikazi = ""; ViewBag.Poraka = kr.VratiGreski(); return View(); }