Exemplo n.º 1
0
        public static void MainMenu()
        {
            string[] StringList = { "1 : Håndter Points i Sheet i Regneark",
                                    "2 : Beregninger på Points i Sheet i Regneark",
                                    "3 : Håndter Sheets i Regneark",
                                    "4 : Afslut program !!!" };

            int KeypressedValue = 0;

            HandleSpreadSheet.AddSheetToSpreadSheet(true);
            SheetNumber = HandleSpreadSheet.GetNumberOfSheetsInSpreadSheet() - 1;

            do
            {
                PrintTopOfScreen(SheetNumber);
                KeypressedValue = ToolsMenu.MakeMenu(StringList);

                switch (KeypressedValue)
                {
                case 1:
                    PointMenu();
                    break;

                case 2:
                    CalculateMenu();
                    break;

                case 3:
                    SheetMenu();
                    break;
                }
            } while (KeypressedValue < StringList.Length);
        }
Exemplo n.º 2
0
        public static void SheetMenu()
        {
            string[] StringList = { "1 : Adder Sheet til Regneark",
                                    "2 : Slet Sheet i Regneark",
                                    "3 : Omdøb Sheet Navn i Regneark",
                                    "4 : Vælg Sheet i Regneark",
                                    "5 : Tilbage !!!" };

            int KeypressedValue = 0;

            do
            {
                PrintTopOfScreen(SheetNumber);
                KeypressedValue = ToolsMenu.MakeMenu(StringList);

                switch (KeypressedValue)
                {
                case 1:
                    HandleSpreadSheet.AddSheetToSpreadSheet();
                    break;

                case 2:
                    HandleSpreadSheet.RemoveSheetFromSpreadSheet();
                    break;

                case 3:
                    HandleSpreadSheet.RenameSheetNameInSpreadSheet();
                    break;

                case 4:
                    SheetNumber = HandleSpreadSheet.SelectSheetInSpreadSheet();
                    break;
                }
            } while (KeypressedValue < StringList.Length);
        }
Exemplo n.º 3
0
        public static void CalculateMenu()
        {
            string[] StringList = { "1 : Adder punkter i Række",
                                    "2 : Adder punkter i Kolonne",
                                    "3 : Adder alle punkter i Sheet i Regneark",
                                    "4 : Tilbage !!!" };

            int KeypressedValue = 0;

            do
            {
                PrintTopOfScreen(SheetNumber);
                KeypressedValue = ToolsMenu.MakeMenu(StringList);

                switch (KeypressedValue)
                {
                case 1:
                    HandleSpreadSheet.AddPointsInRow();
                    break;

                case 2:
                    HandleSpreadSheet.AddPointsInColumn();
                    break;

                case 3:
                    HandleSpreadSheet.AddPointsInSheet();
                    break;
                }
            } while (KeypressedValue < StringList.Length);
        }
Exemplo n.º 4
0
        public static void PrintMenu()
        {
            string[] StringList = { "1 : Vis punkter i række i Sheet i Regneark",
                                    "2 : Vis punkter i søjle i Sheet i Regneark",
                                    "3 : Via alle punkter i Sheet i Regneark",
                                    "4 : Tilbage !!!" };

            int KeypressedValue = 0;

            do
            {
                PrintTopOfScreen(SheetNumber);
                KeypressedValue = ToolsMenu.MakeMenu(StringList);

                switch (KeypressedValue)
                {
                case 1:
                    HandleSpreadSheet.PrintPointsInSpreadSheetRow();
                    break;

                case 2:
                    HandleSpreadSheet.PrintPointsInSpreadSheetColumn();
                    break;

                case 3:
                    HandleSpreadSheet.PrintPointsInSpreadSheet();
                    break;
                }
            } while (KeypressedValue < StringList.Length);
        }