public void AddLine(GraphLine Ln)
 {
     if (Ln == null)
     {
         // change to error?
         Error.Throw("Error", "GS: Error: Attempted to add invalid line to graph!", ErrorSeverity.Error, 421);
         return;
     }
     else
     {
         Lines.Add(Ln);
         return;
     }
 }
        public GraphLine AddLine(string KeyName, int StrokeThickness, Color Colour)
        {
            if (StrokeThickness < 0 || StrokeThickness > 100)
            {
                Error.Throw("Warning!", "GS: Warning: invalid StrokeThickness - must be within the range [0,100]!", ErrorSeverity.Error, 411);
                return(null);
            }

            GraphLine Line = new GraphLine();

            Line.Settings.Colour          = Colour;
            Line.Settings.KeyName         = KeyName;
            Line.Settings.StrokeThickness = StrokeThickness;
            Lines.Add(Line);

            return(Line);
        }