예제 #1
0
 public static wx.Bitmap ListaBitmaps(int index)
 {
     if ((index == 0) ||
         (index == BMP_CLIENTE))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_0.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 1) ||
         (index == BMP_LIVRO))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_1.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 2) ||
         (index == BMP_LIVROS))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_2.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 3) ||
         (index == BMP_SOBRE))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_3.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 4) ||
         (index == BMP_SAIR))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_4.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 5) ||
         (index == BMP_LOGIN))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_5.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 6) ||
         (index == BMP_SPLASH))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_6.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     if ((index == 7) ||
         (index == BMP_LIVRUSVIRTUS))
     {
         wx.Image  image  = new wx.Image("Livrus_wdr/ListaBitmaps_7.png");
         wx.Bitmap bitmap = new wx.Bitmap(image);
         return(bitmap);
     }
     return(new wx.Bitmap());
 }
예제 #2
0
    // Toolbar functions

    // Bitmap functions


    public static wx.Bitmap MyBitmapsFunc(int index)
    {
        if (index == 0)
        {
            wx.Image  image  = new wx.Image("menu_wdr/MyBitmapsFunc_0.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        return(new wx.Bitmap());
    }
예제 #3
0
 // Toolbar functions
 // Bitmap functions
 public static wx.Bitmap MyBitmapsFunc( int index )
 {
     if (index == 0)
     {
          wx.Image image = new wx.Image( "menu_wdr/MyBitmapsFunc_0.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     return new wx.Bitmap();
 }
예제 #4
0
 // Bitmap functions
 public static wx.Bitmap MyBitmapsFunc( int index )
 {
     if (index == 0)
     {
          wx.Image image = new wx.Image( "toolbar_wdr/MyBitmapsFunc_0.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     if (index == 1)
     {
          wx.Image image = new wx.Image( "toolbar_wdr/MyBitmapsFunc_1.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     if (index == 2)
     {
          wx.Image image = new wx.Image( "toolbar_wdr/MyBitmapsFunc_2.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     if (index == 3)
     {
          wx.Image image = new wx.Image( "toolbar_wdr/MyBitmapsFunc_3.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     if (index == 4)
     {
          wx.Image image = new wx.Image( "toolbar_wdr/MyBitmapsFunc_4.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     if (index == 5)
     {
          wx.Image image = new wx.Image( "toolbar_wdr/MyBitmapsFunc_5.png" );
          wx.Bitmap bitmap = new wx.Bitmap( image );
          return bitmap;
     }
     return new wx.Bitmap();
 }
예제 #5
0
    // Bitmap functions


    public static wx.Bitmap MyBitmapsFunc(int index)
    {
        if (index == 0)
        {
            wx.Image  image  = new wx.Image("toolbar_wdr/MyBitmapsFunc_0.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        if (index == 1)
        {
            wx.Image  image  = new wx.Image("toolbar_wdr/MyBitmapsFunc_1.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        if (index == 2)
        {
            wx.Image  image  = new wx.Image("toolbar_wdr/MyBitmapsFunc_2.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        if (index == 3)
        {
            wx.Image  image  = new wx.Image("toolbar_wdr/MyBitmapsFunc_3.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        if (index == 4)
        {
            wx.Image  image  = new wx.Image("toolbar_wdr/MyBitmapsFunc_4.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        if (index == 5)
        {
            wx.Image  image  = new wx.Image("toolbar_wdr/MyBitmapsFunc_5.png");
            wx.Bitmap bitmap = new wx.Bitmap(image);
            return(bitmap);
        }
        return(new wx.Bitmap());
    }