コード例 #1
0
 public static void PrintPointsInSpreadSheet(bool WaitForKeypress = false)
 {
     Program.SpreadSheet_ObjectList[Program.SheetNumber].PrintAllRows_Columns_WithinSpreadSheet();
     if (true == WaitForKeypress)
     {
         ToolsInput.WaitForUser();
     }
     ToolsScreen.MakeEmptyLines(1);
 }
コード例 #2
0
        public static void AddPointsInColumn()
        {
            int CurrentColumnNumber;

            CurrentColumnNumber = GetSpreadSheetColumnNumber("Indtast søjle nummer der skal udskrives (0 - " + (Program.SpreadSheet_ObjectList[Program.SheetNumber].GetMaxNumberOfColumnsInRows() - 1) + ") : ");
            if (CurrentColumnNumber >= 0)
            {
                Program.SpreadSheet_ObjectList[Program.SheetNumber].AddAllRowsWithinSpreadSheetColumn(CurrentColumnNumber);
                ToolsInput.WaitForUser();
            }
        }
コード例 #3
0
        public static void AddPointsInRow()
        {
            int CurrentRowNumber;

            CurrentRowNumber = GetSpreadSheetRowNumber("Indtast række nummer der skal have punkter adderet (0 - " + (Program.SpreadSheet_ObjectList[Program.SheetNumber].GetNumberOfRowsInSpreadSheet() - 1) + ") : ");
            if (CurrentRowNumber >= 0)
            {
                Program.SpreadSheet_ObjectList[Program.SheetNumber].AddAllColumnsWithinSpreadSheetRow(CurrentRowNumber);
                ToolsInput.WaitForUser();
            }
        }
コード例 #4
0
        public static void PrintPointsInSpreadSheetRow()
        {
            int CurrentRowNumber;

            CurrentRowNumber = GetSpreadSheetRowNumber("Indtast række nummer der skal udskrives (0 - " + (Program.SpreadSheet_ObjectList[Program.SheetNumber].GetNumberOfRowsInSpreadSheet() - 1) + ") : ");
            if (CurrentRowNumber >= 0)
            {
                Program.SpreadSheet_ObjectList[Program.SheetNumber].PrintAllColumnsWithinSpreadSheetRow(CurrentRowNumber);
                ToolsInput.WaitForUser();
            }
        }
コード例 #5
0
        public static void AddPointToRowInSpreadSheet()
        {
            int CurrentRowNumber;

            CurrentRowNumber = GetSpreadSheetRowNumber("Indtast række nummer der skal have punkt adderet  (0 - " + (Program.SpreadSheet_ObjectList[Program.SheetNumber].GetNumberOfRowsInSpreadSheet() - 1) + ") : ");
            if (CurrentRowNumber >= 0)
            {
                ToolsScreen.MakeEmptyLines(1);
                double XCoordinate = 0;
                double YCoordinate = 0;

                ToolsInput.GetUserInput(out XCoordinate, "Indtast punktets x-koordinat : ");
                ToolsInput.GetUserInput(out YCoordinate, "Indtast punktets y-koordinat : ");

                Point Point_Object = new Point(XCoordinate, YCoordinate);
                Program.SpreadSheet_ObjectList[Program.SheetNumber].AddPointValueToSpreadSheetRow(CurrentRowNumber, Point_Object);

                ToolsInput.WaitForUser();
            }
        }
コード例 #6
0
 static void Main(string[] args)
 {
     MainMenu();
     ToolsInput.WaitForUser();
 }
コード例 #7
0
 public static void AddPointsInSheet()
 {
     Program.SpreadSheet_ObjectList[Program.SheetNumber].AddAllPointsWithinSheet();
     ToolsInput.WaitForUser();
 }