예제 #1
0
파일: BPLine.cs 프로젝트: zhaoyingju/ccflow
 public BPLine(string name, string color, double borderW,
               double x1, double y1, double x2, double y2)
 {
     this.Name   = name;
     this.MyLine = new Line();
     // this.MyLine.
     this.MyLine.Name            = "lo" + name;
     this.MyLine.X1              = x1;
     this.MyLine.Y1              = y1;
     this.MyLine.X2              = x2;
     this.MyLine.Y2              = y2;
     this.MyLine.StrokeThickness = borderW;
     this.MyLine.Cursor          = Cursors.Hand;
     this.Color         = color;
     this.MyLine.Stroke = new SolidColorBrush(Glo.ToColor(color));
     this.Content       = this.MyLine;
 }