public void DisplaySingleLine(string lineName, double row1, double col1, double row2, double col2, bool bAddList = false, string color = "green", int lineWidth = 1) { try { ContentBase line = new SingleLineContent(lineName, Window, row1, col1, row2, col2); if (bAddList) { displayItemsDic.Add(line.ContentName, line); } line.Display(); } catch (Exception ex) { WriteErrorLog(ex.ToString()); } }
public override void DrawROIComplete() { string drawingObjectParams = drawingObj.GetDrawingObjectParams("type"); if (drawingObjectParams == "line") { try { this.Content1 = drawingObj.GetDrawingObjectParams("row1").D; this.Content2 = drawingObj.GetDrawingObjectParams("column1").D; this.Content3 = drawingObj.GetDrawingObjectParams("row2").D; this.Content4 = drawingObj.GetDrawingObjectParams("column2").D; base.RaiseProcessROIParameter(this.Content1, this.Content2, this.Content3, this.Content4, null); base.DrawROIComplete(); Window.DetachDrawingObjectFromWindow(this.drawingObj); SingleLineContent line = new SingleLineContent("", Window, Row1, Col1, Row2, Col2); line.Display(); } catch (Exception ex) { WriteErrorLog(ex.ToString()); } } }