private void DrawRemove(State_Wrapper _state, bool fix) { Utils.Drawing.CircleParam dummy = new Utils.Drawing.CircleParam(); dummy.CenterLocation = _state.CenterLocation; dummy.FillColor = Brushes.White; dummy.OutlineColor = Pens.White; dummy.Radius = Utils.Registry.Radius; Utils.Drawing.DrawCircle(_drawingBoard, dummy, fix); }
private void DrawAccept(State_Wrapper _state, Brush _fillcolor, bool fix) { Utils.Drawing.CircleParam dummy = new Utils.Drawing.CircleParam(); dummy.CenterLocation = _state.CenterLocation; dummy.FillColor = _fillcolor; dummy.OutlineColor = Pens.Black; dummy.Radius = Utils.Registry.Radius - 5; Utils.Drawing.DrawCircle(_drawingBoard, dummy, fix, _state.Name); }
public void ShowConnectingPoint(PictureBox _myBoard, Point mouse) { Utils.Drawing.CircleParam[] dummy = new Utils.Drawing.CircleParam[1]; int x = 0; Point nearestPT = GetPointIndex(mouse); dummy[0] = new Utils.Drawing.CircleParam(); dummy[0].FillColor = Brushes.Red; dummy[0].Radius = 3; dummy[0].OutlineColor = Pens.Black; dummy[0].CenterLocation = nearestPT; Utils.Drawing.DrawCircles(_myBoard, dummy, false); }