public override void Load(IServiceProvider provider) { view = new RollingGraphView(); view.Dock = DockStyle.Fill; GraphHelper.FormatDateAxis(view.Graph.GraphPane.XAxis); GraphHelper.SetAxisLabel(view.Graph.GraphPane.XAxis, "Time"); var visualizerService = (IDialogTypeVisualizerService)provider.GetService(typeof(IDialogTypeVisualizerService)); if (visualizerService != null) { visualizerService.AddControl(view); } }
public override void Unload() { view.Dispose(); view = null; }