Пример #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GlobalImageCollectionHolder));
     this.sharedImageCollection1 = new DevExpress.Utils.SharedImageCollection(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1.ImageSource)).BeginInit();
     //
     // sharedImageCollection1
     //
     //
     //
     //
     this.sharedImageCollection1.ImageSource.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("sharedImageCollection1.ImageSource.ImageStream")));
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(36, "0036.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(37, "0037.png");
     this.sharedImageCollection1.ParentControl = null;
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1.ImageSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1)).EndInit();
 }
Пример #2
0
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
      this.components = new System.ComponentModel.Container();
      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GlobalImageCollectionHolder));
      this.sharedImageCollection1 = new DevExpress.Utils.SharedImageCollection(this.components);
      ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1)).BeginInit();
      ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1.ImageSource)).BeginInit();
      // 
      // sharedImageCollection1
      // 
      // 
      // 
      // 
      this.sharedImageCollection1.ImageSource.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("sharedImageCollection1.ImageSource.ImageStream")));
      this.sharedImageCollection1.ImageSource.Images.SetKeyName(36, "0036.png");
      this.sharedImageCollection1.ImageSource.Images.SetKeyName(37, "0037.png");
      this.sharedImageCollection1.ParentControl = null;
      ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1.ImageSource)).EndInit();
      ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1)).EndInit();

    }
        private ImageBrick GetImageBrick(Rectangle rect, DrawElementInfo element)
        {
            ImageBrick ib = new ImageBrick(BorderSide.None, 0, AppearancePrint.HeaderPanel.BorderColor, AppearancePrint.HeaderPanel.BackColor);

            ib.Rect = rect;
            GlyphElementInfoArgs glyphInfo = element.ElementInfo as GlyphElementInfoArgs;

            if (glyphInfo.Glyph != null)
            {
                ib.Image = glyphInfo.Glyph;
            }
            else
            {
                if (glyphInfo.ImageIndex < 0)
                {
                    return(null);
                }

                if (glyphInfo.ImageList is ImageCollection)
                {
                    ImageCollection imageList = glyphInfo.ImageList as ImageCollection;
                    ib.Image = imageList.Images[glyphInfo.ImageIndex];
                }
                else if (glyphInfo.ImageList is ImageList)
                {
                    ImageList imageList = glyphInfo.ImageList as ImageList;
                    ib.Image = imageList.Images[glyphInfo.ImageIndex];
                }
                else
                {
                    SharedImageCollection collection = glyphInfo.ImageList as SharedImageCollection;
                    ib.Image = collection.ImageSource.Images[glyphInfo.ImageIndex];
                }
            }

            return(ib);
        }
Пример #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GlobalImageCollectionHolder));
     this.sharedImageCollection1 = new DevExpress.Utils.SharedImageCollection(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1.ImageSource)).BeginInit();
     //
     // sharedImageCollection1
     //
     //
     //
     //
     this.sharedImageCollection1.ImageSource.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("sharedImageCollection1.ImageSource.ImageStream")));
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(0, "0000.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(1, "0001.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(2, "0002.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(3, "0003.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(4, "0004.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(5, "0005.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(6, "0006.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(7, "0007.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(8, "0008.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(9, "0009.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(10, "0010.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(11, "0011.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(12, "0012.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(13, "0013.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(14, "0014.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(15, "0015.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(16, "0016.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(17, "0017.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(18, "0018.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(19, "0019.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(20, "0020.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(21, "0021.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(22, "0022.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(23, "0023.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(24, "0024.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(25, "0025.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(26, "0026.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(27, "0027.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(28, "0028.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(29, "0029.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(30, "0030.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(31, "0031.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(32, "0032.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(33, "0033.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(34, "0034.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(35, "0035.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(36, "0036.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(37, "0037.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(38, "0038.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(39, "0039.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(40, "0040.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(41, "0041.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(42, "0042.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(43, "0043.png");
     this.sharedImageCollection1.ImageSource.Images.SetKeyName(44, "0044.png");
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1.ImageSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sharedImageCollection1)).EndInit();
 }