예제 #1
0
        public void DropSignalEventValueEntry(XElement seventry, ObservableCollection <RenderSlice> rslist)
        {
            if (rslist == null)
            {
                // neuen stapel am ende erzeugen
                rslist = new ObservableCollection <RenderSlice>();
                this.renderSliceLists.Add(rslist);
            }

            // alle kanäle hinzufügen
            Renderer r = RendererManager.GetRenderer(seventry);

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

                for (int a = 0; a < r.Channels; ++a)
                {
                    RenderSlice rs = r.GetRenderSlice(a);

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

                    l.Add(rs);
                }

                RendererManager.AutoZoomGroupedByFiles(l);
            }

            if (rslist.Count == 0)
            {
                // ** beim erzeugen des renderers trat ein fehler auf, die eventuell oben erzeugte rsliste löschen
                this.renderSliceLists.Remove(rslist);
            }
        }
예제 #2
0
        private void MenuItem_Click_AutoZoom_Stack_Files(object sender, RoutedEventArgs e)
        {
            MenuItem mi = (MenuItem)sender;
            ObservableCollection <RenderSlice> rslist = (ObservableCollection <RenderSlice>)mi.DataContext;

            RendererManager.AutoZoomGroupedByFiles(rslist);
        }
예제 #3
0
 private void Executed_CmdAutoZoomAllGroupedByFiles(object sender, ExecutedRoutedEventArgs e)
 {
     foreach (IEnumerable <RenderSlice> rslist in stackercontrol.RenderSliceLists)
     {
         RendererManager.AutoZoomGroupedByFiles(rslist);
     }
 }
예제 #4
0
        private void MenuItem_Click_AutoZoom_Selected_Files(object sender, RoutedEventArgs e)
        {
            MenuItem mi = (MenuItem)sender;
            ObservableCollection <RenderSlice> rslist     = (ObservableCollection <RenderSlice>)mi.DataContext;
            IEnumerable <RenderSlice>          selectedrs = this.GetSelectedRenderSlices(rslist);

            RendererManager.AutoZoomGroupedByFiles(selectedrs);
        }