private void drawActionMouseMove(MouseEventArgs e) { double worldX = mouseToWorldX(e.X); double worldY = mouseToWorldY(e.Y); currentLineGraph.Add(worldX, worldY); Invalidate(); }
private void drawActionMouseDown(MouseEventArgs e) { currentAction = ActionType.FreeDraw; double worldX = mouseToWorldX(e.X); double worldY = mouseToWorldY(e.Y); currentLineGraph = new LineGraph(ModifierKeys == Keys.Shift); currentLineGraph.Add(worldX, worldY); }
private static LineGraph loadGraph(BinaryReader reader) { bool isConnected = reader.ReadBoolean(); int pointCount = reader.ReadInt32(); LineGraph line = new LineGraph(isConnected); for (int i = 0; i < pointCount; i++) { line.Add(loadPoint(reader, line)); } return(line); }
public void DrawPoint(float point1, float point2, string time) { _chart.Add(point1, point2, time); }