コード例 #1
0
ファイル: EnginePanel.cs プロジェクト: elemen/projectanarchy
 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;
 }
コード例 #2
0
 void VisionViewBase_MouseContextChanged(object sender, ContextChangedArgs e)
 {
     UpdateToolbar();
 }
コード例 #3
0
 void VisionViewBase_MouseContextChanged(object sender, ContextChangedArgs e)
 {
     UpdateToolbar();
 }