5.0
  • 5 star 6 ( 60% )
  • 4 star 4 ( 40% )
  • 3 star 0 ( 0% )
  • 2 star 0 ( 0% )
  • 1 star 0 ( 0% )
Customer’s impression:
There are no customer's impression yet.
Create Review

Share your thoughts and
Get DX Points!

  • Excellent for price

    posted by PieterSW on 09/20/2011
    2

    Involvement:Expert (understands the inner workings) - Ownership:1 day to 1 week

    Pros:

    Pretty.
    Easy to use dll in custom app:
    C#:
    using System;
    using System.Runtime.InteropServices;
    using System.ComponentModel;
    using MailNotifierLib;
    namespace emailnotifier
    {

    class Program
    {
    public static void Main(string[] args)
    {
    eColors lampColour = eColors.NoColor;

    if (args.Length > 0) {

    int colour;
    int.TryParse(args[0], out colour);

    switch (colour)
    {
    case 1:
    lampColour = eColors.Lime;
    break;
    case 2:
    lampColour = eColors.Red;
    break;
    case 3:
    lampColour = eColors.Blue;
    break;
    case 4:
    lampColour = eColors.Aqua;
    break;
    case 5:
    lampColour = eColors.Yellow;
    break;
    case 6:
    lampColour = eColors.Fuchsia;
    break;
    case 7:
    lampColour = eColors.White;
    break;
    default:
    lampColour = eColors.NoColor;
    break;
    }
    }

    MailNotifier[] notifiers = MailNotifier.GetNotifiers();
    notifiers[0].SetColor(lampColour);
    }
    }
    }

    Cons:

    Very small

    Bottomline:

    Would recommend, excellent as cheap build status lamp for software CI servers.

Post comment

WHY CHOOSE DX.COM?

Get great weekly deals and offers like: Collections