Ejemplo n.º 1
0
 public void PrintAllColumnsWithinSpreadSheetRow(int SpreadSheetRow)
 {
     ToolsScreen.MakeEmptyLines(1);
     for (int ColumnCounter = 0; ColumnCounter < SpreadSheetMatrix[SpreadSheetRow].Count; ColumnCounter++)
     {
         ToolsOutput.PrintPoint(SpreadSheetMatrix[SpreadSheetRow][ColumnCounter]);
         ToolsOutput.PrintStringOnSameLine(" ");
     }
     ToolsScreen.MakeEmptyLines(1);
 }
Ejemplo n.º 2
0
        public void AddAllRowsWithinSpreadSheetColumn(int SpreadSheetColumn)
        {
            Point AddPoint_Object = new Point(Const.DefaultPointValue_Object.XCoordinate, Const.DefaultPointValue_Object.YCoordinate);

            ToolsScreen.MakeEmptyLines(1);
            for (int RowCounter = 0; RowCounter < SpreadSheetMatrix.Count; RowCounter++)
            {
                AddPoint_Object += SpreadSheetMatrix[RowCounter][SpreadSheetColumn];
            }
            ToolsScreen.MakeEmptyLines(1);
            ToolsOutput.PrintStringOnSameLine("Summen af alle punkter i søjle " + SpreadSheetColumn + " er : " + AddPoint_Object);
        }
Ejemplo n.º 3
0
        public void AddAllColumnsWithinSpreadSheetRow(int SpreadSheetRow)
        {
            Point AddPoint_Object = new Point(Const.DefaultPointValue_Object.XCoordinate, Const.DefaultPointValue_Object.YCoordinate);

            ToolsScreen.MakeEmptyLines(1);
            for (int ColumnCounter = 0; ColumnCounter < SpreadSheetMatrix[SpreadSheetRow].Count; ColumnCounter++)
            {
                AddPoint_Object += SpreadSheetMatrix[SpreadSheetRow][ColumnCounter];
            }
            ToolsScreen.MakeEmptyLines(1);
            ToolsOutput.PrintStringOnSameLine("Summen af alle punkter i række " + SpreadSheetRow + " er : " + AddPoint_Object);
        }
Ejemplo n.º 4
0
 public void PrintAllRows_Columns_WithinSpreadSheet()
 {
     ToolsScreen.MakeEmptyLines(1);
     for (int RowCounter = 0; RowCounter < SpreadSheetMatrix.Count; RowCounter++)
     {
         ToolsOutput.PrintStringOnSameLine("Række " + RowCounter + " : ");
         for (int ColumnCounter = 0; ColumnCounter < SpreadSheetMatrix[RowCounter].Count; ColumnCounter++)
         {
             ToolsOutput.PrintPoint(SpreadSheetMatrix[RowCounter][ColumnCounter]);
             ToolsOutput.PrintStringOnSameLine(" ");
         }
         ToolsScreen.MakeEmptyLines(1);
     }
 }
Ejemplo n.º 5
0
        public void AddAllPointsWithinSheet()
        {
            Point AddPoint_Object = new Point(Const.DefaultPointValue_Object.XCoordinate, Const.DefaultPointValue_Object.YCoordinate);

            ToolsScreen.MakeEmptyLines(1);
            for (int RowCounter = 0; RowCounter < SpreadSheetMatrix.Count; RowCounter++)
            {
                for (int ColumnCounter = 0; ColumnCounter < GetMaxNumberOfColumnsInRows(); ColumnCounter++)
                {
                    AddPoint_Object += SpreadSheetMatrix[RowCounter][ColumnCounter];
                }
            }
            ToolsScreen.MakeEmptyLines(1);
            ToolsOutput.PrintStringOnSameLine("Summen af alle punkter i sheet " + Program.SheetNumber + " er : " + AddPoint_Object);
        }
Ejemplo n.º 6
0
 public void PrintAllRowsWithinSpreadSheetColumn(int SpreadSheetColumn)
 {
     if (GetMaxNumberOfColumnsInRows() >= SpreadSheetColumn)
     {
         ToolsScreen.MakeEmptyLines(1);
         for (int RowCounter = 0; RowCounter < SpreadSheetMatrix.Count; RowCounter++)
         {
             ToolsOutput.PrintStringOnSameLine("Række " + RowCounter + " : ");
             if (SpreadSheetMatrix[RowCounter].Count > SpreadSheetColumn)
             {
                 ToolsOutput.PrintPoint(SpreadSheetMatrix[RowCounter][SpreadSheetColumn]);
             }
             ToolsOutput.PrintStringOnSeperateLine("");
         }
         ToolsScreen.MakeEmptyLines(1);
     }
 }
Ejemplo n.º 7
0
        public static void PrintTopOfScreen(int SheetNumber)
        {
            ToolsScreen.ClearScreen();

            if (Const.NoSheetInSpreadSheet != SheetNumber)
            {
                ToolsOutput.PrintStringOnSeperateLine("Antal Sheet i Regneark       : " + HandleSpreadSheet.GetNumberOfSheetsInSpreadSheet());
                ToolsOutput.PrintStringOnSameLine("Sheets : ");
                for (int SheetCounter = 0; SheetCounter < HandleSpreadSheet.GetNumberOfSheetsInSpreadSheet(); SheetCounter++)
                {
                    ToolsOutput.PrintStringOnSameLine(SheetCounter + " (" + SpreadSheet_ObjectList[SheetCounter].SheetNameInSpreadSheet + ")");
                    if (SheetCounter < HandleSpreadSheet.GetNumberOfSheetsInSpreadSheet() - 1)
                    {
                        ToolsOutput.PrintStringOnSameLine(" - ");
                    }
                }
                ToolsOutput.PrintStringOnSeperateLine("");
                ToolsOutput.PrintStringOnSeperateLine("Aktiv Sheet i Regneark       : " + SheetNumber + " (" + SpreadSheet_ObjectList[SheetNumber].SheetNameInSpreadSheet + ")");
                ToolsOutput.PrintStringOnSeperateLine("Antal rækker i Sheet " + SheetNumber + " : " + SpreadSheet_ObjectList[SheetNumber].GetNumberOfRowsInSpreadSheet());
                ToolsOutput.PrintStringOnSeperateLine("Max søjler i række i sheet " + SheetNumber + " : " + SpreadSheet_ObjectList[SheetNumber].GetMaxNumberOfColumnsInRows());
                ToolsOutput.PrintStringOnSeperateLine("---------------------------------");
                ToolsScreen.MakeEmptyLines(1);
            }
        }