Example #1
0
    protected void show_banner(object source, EventArgs e)
    {
        switch (banner_type)
        {
        case 1:
            /* Show normal information banner and this automatically goes away */
            Banner.ShowInformation(this, null, "Hi there!");
            break;

        case 2:
            /* Informaton banner with animation icon. This banner does not automatically disapear. */
            banner = (Hildon.Banner)Banner.ShowAnimation(this, null, "This is animation icon");
            break;

        case 3:
            /* Remove current information banner */
            banner.Destroy();
            break;

        case 4:
            /* Information banner with progressbar */
            banner = (Hildon.Banner)Banner.ShowProgress(this, null, "Info with progress bar");
            /* Set bar to be 20% full */
            banner.Fraction = (double)0.2;
            break;

        case 5:
            /* Set bar to be 80% full */
            banner.Fraction = (double)0.8;
            break;

        case 6:
            /* With sixth click, end the application */
            Application.Quit();
            break;
        }

        /* Increase the counter */
        banner_type++;
    }
Example #2
0
    protected void show_banner(object source, EventArgs e)
    {
        switch (banner_type) {

          case 1:
          /* Show normal information banner and this automatically goes away */
          Banner.ShowInformation(this, null, "Hi there!");
          break;

          case 2:
          /* Informaton banner with animation icon. This banner does not automatically disapear. */
          banner = (Hildon.Banner) Banner.ShowAnimation(this, null, "This is animation icon");
          break;

          case 3:
          /* Remove current information banner */
          banner.Destroy();
          break;

          case 4:
          /* Information banner with progressbar */
          banner = (Hildon.Banner) Banner.ShowProgress (this, null, "Info with progress bar");
          /* Set bar to be 20% full */
          banner.Fraction = (double)0.2;
          break;

          case 5:
          /* Set bar to be 80% full */
          banner.Fraction = (double)0.8;
          break;

          case 6:
          /* With sixth click, end the application */
          Application.Quit();
          break;
          }

          /* Increase the counter */
          banner_type++;
    }