Exemple #1
0
 private void OnMouseContextChanged(object sender, ContextChangedArgs e)
 {
     Type t = e.newContext.GetType();
       // we have to do exact match (the 'is' statement is not enough)
       toolStripButton_MoveContext.CheckState = t.Equals(typeof(CameraMoveContext)) ? CheckState.Checked : CheckState.Unchecked;
       toolStripButton_MeasureTool.CheckState = (e.newContext is MeasureToolCamera) ? CheckState.Checked : CheckState.Unchecked;
 }
 void VisionViewBase_MouseContextChanged(object sender, ContextChangedArgs e)
 {
     UpdateToolbar();
 }
 void VisionViewBase_MouseContextChanged(object sender, ContextChangedArgs e)
 {
     UpdateToolbar();
 }