public CQSaveFile_LinePoint(CQSaveFile_LinePoint data) { this.GateID = data.GateID; this.Index = data.Index; this.Type = data.Type; this.EndType = data.EndType; }
void ConnectEnd(FrameworkElement sender, CQPin pin, Point pt) { CQGateBaseUI gateui = sender.DataContext as CQGateBaseUI; this.m_Line.X2 = pin.ConnectPoint.X; this.m_Line.Y2 = pin.ConnectPoint.Y; this.m_LineDatas[this.m_Line].End.GateID = gateui.ID; this.m_LineDatas[this.m_Line].End.Index = pin.Index; this.m_LineDatas[this.m_Line].End.Type = pin.Type; this.m_LineDatas[this.m_Line].End.EndType = CQSaveFile_LinePoint.EndTypes.End; if (this.m_LineDatas[this.m_Line].Begin.Type == CQPin.Types.IN) { CQSaveFile_LinePoint pp1 = new CQSaveFile_LinePoint(this.m_LineDatas[this.m_Line].End); CQSaveFile_LinePoint pp2 = new CQSaveFile_LinePoint(this.m_LineDatas[this.m_Line].Begin); this.m_LineDatas[this.m_Line].Begin = pp1; this.m_LineDatas[this.m_Line].End = pp2; } this.m_IsConnect = false; }
public CQSaveFile_Line() { this.Begin = new CQSaveFile_LinePoint(); this.End = new CQSaveFile_LinePoint(); }