コード例 #1
0
 void caret_PositionChanged(object sender, EventArgs e)
 {
     // It is possible that the insight window is not initialized correctly
     // due to an exception, and then caret_PositionChanged is called in a finally block
     // during exception handling.
     // Check for a null adapter to avoid a NullReferenceException that hides the first exception.
     if (activeAdapter != null)
     {
         activeAdapter.OnCaretPositionChanged(e);
     }
 }
コード例 #2
0
 void caret_PositionChanged(object sender, EventArgs e)
 {
     activeAdapter.OnCaretPositionChanged(e);
 }