Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Plotter"/> class.
        /// </summary>
        protected Plotter(PlotterLoadMode loadMode)
        {
            current = this;

            this.loadMode = loadMode;

            SetPlotter(this, this);

            if (loadMode == PlotterLoadMode.Normal)
            {
                UpdateUIParts();
            }

            children = new PlotterChildrenCollection(this);
            children.CollectionChanged += OnChildrenCollectionChanged;
            Loaded   += Plotter_Loaded;
            Unloaded += Plotter_Unloaded;

            genericResources = (ResourceDictionary)Application.LoadComponent(new Uri("/DynamicDataDisplay;component/Themes/Generic.xaml", UriKind.Relative));

            ContextMenu = null;

            foreach (var panel in GetAllPanels().Where(panel => panel != null))
            {
                Plotter.SetIsDefaultPanel(panel, true);
            }
        }
Example #2
0
		protected Plotter2D(PlotterLoadMode loadMode)
			: base(loadMode)
		{
			if (loadMode != PlotterLoadMode.Empty)
			{
				InitViewport();
			}
		}
Example #3
0
 protected Plotter2D(PlotterLoadMode loadMode)
     : base(loadMode)
 {
     if (loadMode != PlotterLoadMode.Empty)
     {
         InitViewport();
     }
 }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Plotter"/> class.
        /// </summary>
        protected Plotter(PlotterLoadMode loadMode)
        {
            this.loadMode = loadMode;
            if (loadMode == PlotterLoadMode.Normal)
            {
                UpdateUIParts();
            }

            children.CollectionChanged += OnChildrenCollectionChanged;
            Loaded   += Plotter_Loaded;
            Unloaded += Plotter_Unloaded;

            genericResources = (ResourceDictionary)Application.LoadComponent(new Uri("/DynamicDataDisplay;component/Themes/Generic.xaml", UriKind.Relative));

            ContextMenu = null;
        }
Example #5
0
 protected ChartPlotter(PlotterLoadMode loadMode) : base(loadMode)
 {
 }