Exemple #1
0
        internal void Show()
        {
            Suportfunction function = new Suportfunction();
            Searcher       searcher = new Searcher();

            Console.Clear();
            Console.WriteLine("podaj nazwe usuwanego obszaru");
            var       virarea     = new Area_date(0, "", "", 0, "");
            Area_date deletedarea = searcher.Search(0, 1, virarea);

            if (deletedarea == virarea)
            {
                return;
            }
            Console.WriteLine();
            function.Show_area_date(deletedarea, areas);
            var menys = Menuform.Menu_yn(0, 10);

            Console.WriteLine();
            int yn = menys.Show();

            switch (yn)
            {
            case 0:
                areas.DeleteArea(deletedarea);
                break;

            case 1:
                break;
            }
        }
Exemple #2
0
        internal void handcreateDocver(Areas.Areas areas, int lawid)
        {
            string name;

            Console.Clear();
            Suportfunction suportfunction = new Suportfunction();

            do
            {
                Console.WriteLine("podaj nazwe");
                name = Console.ReadLine();
            } while (!suportfunction.nameverifcation(name));
            Console.WriteLine("podaj krotki opis");
            string brief = Console.ReadLine();

            Console.WriteLine("podaj link");
            string link = Console.ReadLine();

            /*
             * if (!areas.IsLaw(link))
             * {
             *  Console.WriteLine("takie prawo istnieje");
             *  areas.Showdoc(link);
             *  Console.ReadKey();
             *  return;
             * }*/

            Console.WriteLine("podaj tagi odzielone przecinkami");
            string tags = Console.ReadLine();

            string[] tagstab = tags.Split(',');
            tags = "";
            for (int i = 0; i < tagstab.Length; i++)
            {
                tags = tags + tagstab[i].Trim() + ", ";
            }
            areas.MakeLawver(lawid, name, brief, link, tags);
        }