Beispiel #1
0
        /**for categeria*//****i was here and i found some any probleme ******/
        public string choixcateg()
        {
            string chois; int choix;

start:
            Console.WriteLine("choisair from list categro de produit");
            Console.WriteLine("entrez N for Adding new produt");
            pr.afficheallproduit();
            chois = Console.ReadLine();
            var isNumeric = int.TryParse(chois, out choix);

            if (isNumeric)
            {
                try { pr.rtgategeurais(choix); }
                catch { Console.WriteLine("you out of the area please entre againe"); goto start; }
                return(choix.ToString());
            }
            else
            {
                Console.WriteLine("entree new catogerei"); string name = Console.ReadLine();
                pr.addnewcategories(name); goto start;
            }
        }