Exemple #1
0
        internal static void ModLawhor(Areas.Areas areas, Area_date current_area, int dlugoscMaxElement, int posnewmenu, string message)
        {
            Console.Clear();
            HorLawdata Law            = Program_function.SearchLawhor(areas, current_area, dlugoscMaxElement, posnewmenu, message);
            var        adddelemen     = new Menu(new string[] { "dodaj doc", " usun doc ", "dodaj obszar", "usun obszar" }, 0, 0);
            int        adddele        = adddelemen.Show();
            var        modechangemenu = Menuform.Menu_yn(posnewmenu, 0);

            switch (adddele)
            {
            case 1:
                MakeDocument.handcreateDocver(areas, Law.Id);
                break;

            case 2:
                ModDoc.DelDocHor(areas, Law);
                break;

            case 3:
                addarea_horlaw(areas, Law);

                break;

            case 4:
                delarea_horlaw(areas, Law);
                break;
            }
        }
Exemple #2
0
        internal static void ModLawver(Areas.Areas areas, Area_date current_area, int dlugoscMaxElement, int posnewmenu, string message)
        {
            Console.Clear();
            Area_date varae = new Area_date();

            Console.WriteLine("Prawo kturego obszaru chezs zmodyfikowac");
            Area_date arealaw        = Program_function.Search(areas, varae, dlugoscMaxElement, posnewmenu, message);
            var       law            = areas.Find_local_law(arealaw.Id);
            var       adddelemen     = new Menu(new string[] { "dodaj doc", "dodaj usun" }, 0, 0);
            int       adddele        = adddelemen.Show();
            var       modechangemenu = Menuform.Menu_yn(posnewmenu, 0);

            switch (adddele)
            {
            case 1:
                MakeDocument.handcreateDocver(areas, law.Id);
                break;

            case 2:
                ModDoc.DelDocVer(areas, law);
                break;
            }
        }