Пример #1
0
        internal void Show()
        {
            Console.Clear();
            Area_date varae = new Area_date();

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

            switch (adddele)
            {
            case 1:
                HandcreateDochor createhor = new HandcreateDochor(areas);
                createhor.Show(law.Id);
                break;

            case 2:
                DelDoc deldoc = new DelDoc(areas);
                deldoc.DelDocVer(areas, law, 0, 12);
                break;
            }
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
        internal void addarea_horlaw(Areas.Areas areas, HorLawdata law)
        {
            HandcreateDochor createdoc = new HandcreateDochor(areas);

            //areas.delareahorlaw(law.Id,selecteddoc-1);
            createdoc.Show(law.Id);
        }
Пример #4
0
 internal MakeLawHor(Areas.Areas areas)
 {
     this.areas = areas;
     createdoc  = new HandcreateDochor(areas);
 }