public override void OnSetComponentDefaults() { base.OnSetComponentDefaults(); (this.Control as ISetDesignerDefaults).DoDefaults((IDesignerHost)this.GetService(typeof(IDesignerHost))); PlotToolBarStandardDesigner.LoadImages(this.AddImageList(), new Size(16, 16)); base.RaiseComponentChanged(null, null, null); }
private void OnAddToolBarStandard(object sender, EventArgs e) { IDesignerHost designerHost = (IDesignerHost)this.GetService(typeof(IDesignerHost)); PlotToolBarStandard plotToolBarStandard = (PlotToolBarStandard)designerHost.CreateComponent(typeof(PlotToolBarStandard)); ImageList imageList = (ImageList)designerHost.CreateComponent(typeof(ImageList)); plotToolBarStandard.Plot = (this.Control as Plot); plotToolBarStandard.ImageList = imageList; PlotToolBarStandardDesigner.LoadImages(imageList, new Size(16, 16)); this.Control.Parent.Controls.Add(plotToolBarStandard); ((ISetDesignerDefaults)plotToolBarStandard).DoDefaults(designerHost); }
private void OnResetImageListLarge(object sender, EventArgs e) { PlotToolBarStandardDesigner.LoadImages((this.Control as PlotToolBarStandard).ImageList, new Size(32, 32)); base.RaiseComponentChanged(null, null, null); }
private void OnAddImageListLarge(object sender, EventArgs e) { PlotToolBarStandardDesigner.LoadImages(this.AddImageList(), new Size(32, 32)); base.RaiseComponentChanged(null, null, null); }