public void PositionsOfIP(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, LgIPDrawMode dm, out Rect rectPrimary, out Rect rectSecondary, out bool fPrimaryHere, out bool fSecHere) { LastPosIpCall = new PositionsOfIpArgs(); LastPosIpCall.IchBase = ichBase; LastPosIpCall.Graphics = _vg; LastPosIpCall.RcSrc = rcSrc; LastPosIpCall.RcDst = rcDst; LastPosIpCall.Ich = ich; LastPosIpCall.AssocPrev = fAssocPrev; LastPosIpCall.DrawMode = dm; if (NextPosIpResult != null) { rectPrimary = NextPosIpResult.RectPrimary; rectSecondary = new Rect(); // NextPosIpResult.RectSecondary; fPrimaryHere = NextPosIpResult.PrimaryHere; fSecHere = false; // NextPosIpResult.SecHere; } else { rectPrimary = new Rect(0, 0, 0, 0); rectSecondary = new Rect(0, 0, 0, 0); fPrimaryHere = true; // useful result when we don't care to prepare for this call. fSecHere = false; } }
public void PositionsOfIP(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, LgIPDrawMode dm, out Rect rectPrimary, out Rect rectSecondary, out bool fPrimaryHere, out bool fSecHere) { LastPosIpCall = new PositionsOfIpArgs(); LastPosIpCall.IchBase = ichBase; LastPosIpCall.Graphics = _vg; LastPosIpCall.RcSrc = rcSrc; LastPosIpCall.RcDst = rcDst; LastPosIpCall.Ich = ich; LastPosIpCall.AssocPrev = fAssocPrev; LastPosIpCall.DrawMode = dm; if (NextPosIpResult != null) { rectPrimary = NextPosIpResult.RectPrimary; rectSecondary = new Rect(); // NextPosIpResult.RectSecondary; fPrimaryHere = NextPosIpResult.PrimaryHere; fSecHere = false; // NextPosIpResult.SecHere; } else { rectPrimary = new Rect(0,0,0,0); rectSecondary = new Rect(0,0,0,0); fPrimaryHere = true; // useful result when we don't care to prepare for this call. fSecHere = false; } }