Exemple #1
0
        public void CheckNumber(string Number)
        {
            Console.Clear();

            switch (Number)
            {
            case "1":
                Lists lists = new Lists();
                lists.List();
                break;

            case "2":
                Add add = new Add();
                add.ADD();
                break;

            case "3":
                Edit SEdit = new Edit();
                SEdit.EdiRe();
                break;

            case "4":
                DeleteC delete = new DeleteC();
                delete.Delete();
                break;

            case "5":
                Preview preview = new Preview();
                preview.PreviewV();
                break;

            case "6":
                Environment.Exit(0);
                break;

            default:
                Console.ForegroundColor = ConsoleColor.Red;
                Console.Write("\nWybrano nie poprawny numer..");
                Console.ReadKey();
                Console.Clear();
                Select_Menu();
                break;
            }
        }
Exemple #2
0
        protected void ValEdi(char potwierdzenie, string OpisM)
        {
            if (validate.Confirmation(potwierdzenie))
            {
                if (!validate.SearchOpisData(OpisM, DateParse))
                {
                    validate.OpisDatVal(OpisM, DateParse);

                    menuClass.Select_Menu();
                }
                else
                {
                    DeleteC delete = new DeleteC();
                    delete.ToRemove(ID_Parse);
                    Add add = new Add();
                    add.AddToClass(ID_Parse, DateParse, OpisM);
                    Console.Clear();
                    menuClass.Select_Menu();
                }
            }
        }