Esempio n. 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);
 }
Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 4
0
 private void OnAddImageListLarge(object sender, EventArgs e)
 {
     PlotToolBarStandardDesigner.LoadImages(this.AddImageList(), new Size(32, 32));
     base.RaiseComponentChanged(null, null, null);
 }