void CreateFramgmentMark_MenuItem_Click(object sender, RoutedEventArgs e) { //set Fragment mode to mark on both views m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark; m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark; m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Mark; }
void FragmentRegisterView_MenuItem_Click(object sender, RoutedEventArgs e) { //set Fragment mode to mark on both views m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews; m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews; m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews; }
void FragmentUniformity_MenuItem_Click(object sender, RoutedEventArgs e) { UnsubscribeMouseEvents(); //set Fragment mode to mark on both views m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Uniformity; m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Uniformity; m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Uniformity; //subscribe to left mouse click event on view0 m_View0FragmentAdorner.AdornedElement.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView0_MouseLeftButtonDown); }
void FragmentMark_MenuItem_Click(object sender, RoutedEventArgs e) { UnsubscribeMouseEvents(); //set Fragment mode to mark on both views m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark; m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark; if (m_FragmentObjectMarkComplete) { //subscribe to left mouse click event on view0 m_View0FragmentAdorner.AdornedElement.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView0_MouseLeftButtonDown); } else { m_View1FragmentAdorner.AdornedElement.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView1_MouseLeftButtonDown); } m_View0FragmentAdorner.FragmentLayerEnabled = true; m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Mark; }