예제 #1
0
        //static class Editfunction {



        internal static void MakeLawHor(Areas.Areas areas, Area_date current_area, int dlugoscMaxElement, int posnewmenu, string message)
        {
            Console.Clear();
            Console.WriteLine("Podaj nazwe");
            string name = Console.ReadLine();
            int    id   = areas.createhorlav(name);

            Console.WriteLine("ktorego obszaru bedzie dotyczyło");
            int  yn = 0;
            Menu menuyn;

            //int lawid = 0;
            do
            {
                var virarea = new Area_date(0, "", "", 0, "");
                var selarea = Program_function.Search(areas, virarea, 0, 3, message);
                if (selarea == virarea)
                {
                    return;
                }
                //Console.WriteLine("podaj nazwe obszaru jakiego dotyczy");
                //Area_date area = Program_function.Search(areas,current_area,0,8,message);
                areas.addareatolawhor(id, selarea.Id);
                Console.WriteLine("dodac wiecej obszrow?");
                menuyn = Menuform.Menu_yn(0, 10);
                yn     = menuyn.Show();
            } while (yn == 0);
            Console.WriteLine("dodaj documenty do prawa");
            do
            {
                MakeDocument.handcreateDochor(areas, id);

                Console.WriteLine("dodac wiecej?");
                yn = menuyn.Show();
            } while (yn == 0);
        }
예제 #2
0
 internal static void addarea_horlaw(Areas.Areas areas, HorLawdata law)
 {
     MakeDocument.handcreateDochor(areas, law.Id);
     //areas.delareahorlaw(law.Id,selecteddoc-1);
 }