Witam,zaczynam powoli pisać małymi kroczkami taką małą biblioteczkę do rysowania wykresów funkcji liniowej,niestety już na samym początku coś sknociłem i przy przenoszeniu kontrolki na formę otrzymuję MissingMethodException
Oto dotychczasowy kod kontrolki:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
namespace EBinder.CustomControls.Charts
{
public class LinearChart : UserControl
{
public Pen MyPen;
public LinearChart(List<Point> Points)
{
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Graphics g = e.Graphics;
MyPen = new Pen(Brushes.Black);
g.DrawLine(MyPen, new Point(0, 0), new Point(0,Height));// Oś Y
g.DrawLine(MyPen,new Point(0,Height),new Point(Width,0));//OŚ X
}
}
}