예제 #1
0
        void Graphs_CollectionChanged(object sender, ILGraphCollectionChangedEventArgs args)
        {
            switch (args.Reason)
            {
            case GraphCollectionChangeReason.Added:
                if (args.Graph.Type == GraphType.Plot2D)
                {
                    m_colorbar.Visible   = false;
                    m_panel.ClipViewData = true;
                }
                else if (args.Graph.Type == GraphType.Surf)
                {
                    m_colorbar.Visible   = true;
                    m_panel.ClipViewData = false;
                }
                else if (args.Graph.Type == GraphType.Imagesc)
                {
                    m_colorbar.Visible   = false;
                    m_panel.ClipViewData = false;
                }
                break;

            case GraphCollectionChangeReason.Deleted:
                break;

            case GraphCollectionChangeReason.Changed:
                break;

            default:
                break;
            }
        }
예제 #2
0
        void Graphs_CollectionChanged(object sender, ILGraphCollectionChangedEventArgs args) {
            switch (args.Reason) {
                case GraphCollectionChangeReason.Added:
                    if (args.Graph.Type == GraphType.Plot2D) {
                        m_colorbar.Visible = false; 
                        m_panel.ClipViewData = true; 
                    } else if (args.Graph.Type == GraphType.Surf) {
                        m_colorbar.Visible = true; 
                        m_panel.ClipViewData = false; 
                    } else if (args.Graph.Type == GraphType.Imagesc) {
                        m_colorbar.Visible = false; 
                        m_panel.ClipViewData = false; 
                    }
                    break;
                case GraphCollectionChangeReason.Deleted:
                    break;
                case GraphCollectionChangeReason.Changed:
                    break;
                default:
                    break;
            }

        }