Esempio n. 1
0
        private void MenuItem_Click_AutoZoom_Stack_Separate(object sender, RoutedEventArgs e)
        {
            MenuItem mi = (MenuItem)sender;
            ObservableCollection <RenderSlice> rslist = (ObservableCollection <RenderSlice>)mi.DataContext;

            RendererManager.AutoZoomIndividual(rslist);
        }
Esempio n. 2
0
 private void Executed_CmdAutoZoomAllIndividual(object sender, ExecutedRoutedEventArgs e)
 {
     foreach (IEnumerable <RenderSlice> rslist in stackercontrol.RenderSliceLists)
     {
         RendererManager.AutoZoomIndividual(rslist);
     }
 }
Esempio n. 3
0
        private void MenuItem_Click_AutoZoom_Selected_Separate(object sender, RoutedEventArgs e)
        {
            // den stapel ermitteln, ist im datacontext
            MenuItem mi = (MenuItem)sender;
            ObservableCollection <RenderSlice> rslist = (ObservableCollection <RenderSlice>)mi.DataContext;

            IEnumerable <RenderSlice> selectedrs = this.GetSelectedRenderSlices(rslist);

            RendererManager.AutoZoomIndividual(selectedrs);
        }
Esempio n. 4
0
        private void DropChannel(XElement channel, ObservableCollection <RenderSlice> rslist)
        {
            Renderer r = RendererManager.GetRenderer(channel.Parent);

            if (r != null)
            {
                List <RenderSlice> renderSliceList = new List <RenderSlice>();

                int channelNum = MeasurementEntry.GetChannelNum(channel);

                if (channelNum != -1)
                {
                    RenderSlice renderSlice = r.GetRenderSlice(channelNum);

                    this.AttachKillHandler(renderSlice);
                    this.MoveRenderSlice(renderSlice, rslist);

                    renderSliceList.Add(renderSlice);
                }

                RendererManager.AutoZoomIndividual(renderSliceList);
            }
        }