コード例 #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);
 }
コード例 #2
0
ファイル: PlotDesigner.cs プロジェクト: fxxxysh/toolkit
        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);
        }
コード例 #3
0
 public static void LoadImages(ImageList imageList, Size sizeRequired)
 {
     if (imageList != null)
     {
         imageList.Images.Clear();
         imageList.ImageSize = sizeRequired;
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarTrackingResume.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarTrackingPause.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarAxesScroll.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarAxesZoom.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarZoomOut.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarZoomIn.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarSelect.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarZoomBox.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarDataCursor.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarEdit.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarCopy.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarSave.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarPrint.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarPreview.ico");
         PlotToolBarStandardDesigner.LoadImagesByName(imageList, sizeRequired, "PlotToolBarPageSetup.ico");
     }
 }
コード例 #4
0
 private void OnResetImageListLarge(object sender, EventArgs e)
 {
     PlotToolBarStandardDesigner.LoadImages((this.Control as PlotToolBarStandard).ImageList, new Size(32, 32));
     base.RaiseComponentChanged(null, null, null);
 }
コード例 #5
0
 private void OnAddImageListLarge(object sender, EventArgs e)
 {
     PlotToolBarStandardDesigner.LoadImages(this.AddImageList(), new Size(32, 32));
     base.RaiseComponentChanged(null, null, null);
 }