示例#1
0
        private void MenuItem_Click_AutoZoom_Stack_Units(object sender, RoutedEventArgs e)
        {
            MenuItem mi = (MenuItem)sender;
            ObservableCollection <RenderSlice> rslist = (ObservableCollection <RenderSlice>)mi.DataContext;

            RendererManager.AutoZoomGroupedByUnits(rslist);
        }
示例#2
0
 private void Executed_CmdAutoZoomAllGroupedByUnits(object sender, ExecutedRoutedEventArgs e)
 {
     foreach (IEnumerable <RenderSlice> rslist in stackercontrol.RenderSliceLists)
     {
         RendererManager.AutoZoomGroupedByUnits(rslist);
     }
 }
示例#3
0
        private void MenuItem_Click_AutoZoom_Selected_Units(object sender, RoutedEventArgs e)
        {
            MenuItem mi = (MenuItem)sender;
            ObservableCollection <RenderSlice> rslist     = (ObservableCollection <RenderSlice>)mi.DataContext;
            IEnumerable <RenderSlice>          selectedrs = this.GetSelectedRenderSlices(rslist);

            RendererManager.AutoZoomGroupedByUnits(selectedrs);
        }