C2026-043-Tech-Debt_v1 - Stash 1
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using System.Xml.Schema;
|
||||
using System.Drawing;
|
||||
using Volian.Base.Library;
|
||||
|
||||
@@ -162,23 +158,14 @@ namespace Volian.Controls.Library
|
||||
HorizontalLines.DeleteColumns(column, count);
|
||||
VerticalLines.DeleteColumns(column, count);
|
||||
}
|
||||
#endregion
|
||||
#region Serialize
|
||||
public string ConvertToString()
|
||||
{
|
||||
return GenericSerializer<VlnBorders>.StringSerialize(this);
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return "Volian Custom Borders";
|
||||
}
|
||||
public static VlnBorders Get(string xml)
|
||||
{
|
||||
return GenericSerializer<VlnBorders>.StringDeserialize(xml);
|
||||
}
|
||||
#endregion
|
||||
#region Line Pattern Static Methods
|
||||
public static int LineWidth(GridLinePattern linePattern)
|
||||
#endregion
|
||||
#region Serialize
|
||||
public string ConvertToString() => GenericSerializer<VlnBorders>.StringSerialize(this);
|
||||
public override string ToString() => "Volian Custom Borders";
|
||||
public static VlnBorders Get(string xml) => GenericSerializer<VlnBorders>.StringDeserialize(xml);
|
||||
#endregion
|
||||
#region Line Pattern Static Methods
|
||||
public static int LineWidth(GridLinePattern linePattern)
|
||||
{
|
||||
switch (linePattern)
|
||||
{
|
||||
@@ -320,13 +307,10 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
set { Lines[r * Columns + c] = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Insert and Delete Rows and Columns
|
||||
public void InsertRow(int row)
|
||||
{
|
||||
InsertRows(row, 1);
|
||||
}
|
||||
public void InsertRows(int row, int count)
|
||||
#endregion
|
||||
#region Insert and Delete Rows and Columns
|
||||
public void InsertRow(int row) => InsertRows(row, 1);
|
||||
public void InsertRows(int row, int count)
|
||||
{
|
||||
// Create a new Array of the correct size
|
||||
GridLinePattern[] newLines = new GridLinePattern[(Rows + count) * Columns];
|
||||
@@ -343,11 +327,8 @@ namespace Volian.Controls.Library
|
||||
Lines = newLines;
|
||||
Rows = newRows;
|
||||
}
|
||||
public void DeleteRow(int row)
|
||||
{
|
||||
DeleteRows(row, 1);
|
||||
}
|
||||
public void DeleteRows(int row, int count)
|
||||
public void DeleteRow(int row) => DeleteRows(row, 1);
|
||||
public void DeleteRows(int row, int count)
|
||||
{
|
||||
GridLinePattern[] newLines = new GridLinePattern[(Rows - count) * Columns];
|
||||
int newRows = Rows - count;
|
||||
@@ -362,11 +343,8 @@ namespace Volian.Controls.Library
|
||||
Lines = newLines;
|
||||
Rows = newRows;
|
||||
}
|
||||
public void InsertColumn(int column)
|
||||
{
|
||||
InsertColumns(column, 1);
|
||||
}
|
||||
public void InsertColumns(int column, int count)
|
||||
public void InsertColumn(int column) => InsertColumns(column, 1);
|
||||
public void InsertColumns(int column, int count)
|
||||
{
|
||||
// Create a new Array of the correct size
|
||||
GridLinePattern[] newLines = new GridLinePattern[Rows * (Columns + count)];
|
||||
@@ -382,11 +360,8 @@ namespace Volian.Controls.Library
|
||||
Lines = newLines;
|
||||
Columns = newColumns;
|
||||
}
|
||||
public void DeleteColumn(int column)
|
||||
{
|
||||
DeleteColumns(column, 1);
|
||||
}
|
||||
public void DeleteColumns(int column, int count)
|
||||
public void DeleteColumn(int column) => DeleteColumns(column, 1);
|
||||
public void DeleteColumns(int column, int count)
|
||||
{
|
||||
GridLinePattern[] newLines = new GridLinePattern[Rows * (Columns - count)];
|
||||
int newColumns = Columns - count;
|
||||
|
||||
Reference in New Issue
Block a user