internal void Show() { Console.Clear(); HorLawdata Law = searcher.SearchLawhor(); var adddelemen = new Menu(new string[] { "dodaj doc", " usun doc ", "dodaj obszar", "usun obszar" }, 0, 3); int adddele = adddelemen.Show(); var modechangemenu = Menuform.Menu_yn(0, 8); switch (adddele) { case 0: HandcreateDochor hand = new HandcreateDochor(areas); hand.Show(Law.Id); break; case 1: DelDoc deldoc = new DelDoc(areas); deldoc.DelDocHor(areas, Law, 0, 10); break; case 2: addarea_horlaw(areas, Law); break; case 3: delarea_horlaw(areas, Law); break; } }
internal void Show() { Console.Clear(); Console.WriteLine("Podaj nazwe usuwanego prawa"); HorLawdata Law = searcher.SearchLawhor(); areas.DeleteLawhor(Law.Id); }
internal void Show() { Console.Clear(); var virarea = new Area_date(0, "", "", 0, ""); //var modarea = Program_function.Search(areas, virarea, dlugoscMaxElement, posnewmenu, message); //if (modarea == virarea) { return; } var chosen_law = searcher.SearchLawhor(); var Document = suportfunction.SelectDoc(chosen_law, 0, 1); Document emptydoc = new Document(); if (Document.id == emptydoc.id) { return; } Menu Whatchange = new Menu(new string[] { "tytul", "opis", "link", "tagi", "powrot" }, 0, 6); var morechange = Menuform.Menu_yn(Whatchange.DlugoscMaxElement, 6); int more = 0; do { int what = Whatchange.Show(); switch (what) { case 0: string newname; do { Console.WriteLine("podaj nowy tytuł"); newname = Console.ReadLine(); } while (!suportfunction.nameverifcation(newname)); areas.UpdateTitlehor(Document.id, newname); break; case 1: Console.WriteLine("podaj nowy opis"); string newbrief = Console.ReadLine(); areas.Updatebriefhor(Document.id, newbrief); break; case 2: string newlink; do { Console.WriteLine("podaj nowy opis"); newlink = Console.ReadLine(); } while (!suportfunction.Linkverfication(newlink)); areas.Updatelinkhor(Document.id, newlink); break; case 3: string tags = suportfunction.Createtags(); areas.Updatetaghor(Document.id, tags); break; case 4: return; } Console.WriteLine("Czy chesz dokonac wiecej zmian?"); more = morechange.Show(); } while (more == 0); }