Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 private void OnResetImageListLarge(object sender, EventArgs e)
 {
     PlotToolBarStandardDesigner.LoadImages((this.Control as PlotToolBarStandard).ImageList, new Size(32, 32));
     base.RaiseComponentChanged(null, null, null);
 }
Beispiel #4
0
 private void OnAddImageListLarge(object sender, EventArgs e)
 {
     PlotToolBarStandardDesigner.LoadImages(this.AddImageList(), new Size(32, 32));
     base.RaiseComponentChanged(null, null, null);
 }