internal static void Moddochor(Areas.Areas areas, Area_date current_area, int dlugoscMaxElement, int posnewmenu, string message) { Console.Clear(); var virarea = new Area_date(0, "", "", 0, ""); //var modarea = Program_function.Search(areas, virarea, dlugoscMaxElement, posnewmenu, message); //if (modarea == virarea) { return; } Console.Clear(); var chosen_law = Program_function.SearchLawhor(areas, current_area, 0, 1, message); Console.Clear(); var Document = Program_function.SelectDoc(chosen_law, 0, 1); Console.Clear(); 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 (!Editmainfunction.nameverifcation()); 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 (!Editmainfunction.Linkverfication()); areas.Updatelinkhor(Document.id, newlink); break; case 3: string tags = Editmainfunction.Createtags(); areas.Updatetaghor(Document.id, tags); break; case 4: return; } Console.WriteLine("Czy chesz dokonac wiecej zmian?"); more = morechange.Show(); } while (more == 0); }