Example #1
0
        private void SetImage(PictureBox box, SupportVersion version)
        {
            switch (version)
            {
            case SupportVersion.Support:
                box.BackgroundImage = pictureBoxOk.Image;
                break;

            case SupportVersion.NotSupport:
                box.BackgroundImage = pictureBoxProblem.Image;
                break;

            default:
                box.BackgroundImage = null;
                break;
            }
        }
Example #2
0
 internal SupportInfo(SupportVersion support, string name, int version)
 {
     _support = support;
     _name    = name;
     _version = version;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SupportVersionObject"/> class.
 /// </summary>
 /// <param name="versionA">The version a.</param>
 /// <param name="versionB">The version b.</param>
 public SupportVersionObject(SupportVersion versionA, SupportVersion versionB)
 {
     VersionA = versionA;
     VersionB = versionB;
 }
 private void SetImage(PictureBox box, SupportVersion version)
 {
     switch (version)
     {
         case SupportVersion.Support:
             box.BackgroundImage = pictureBoxOk.Image;
             break;
         case SupportVersion.NotSupport:
             box.BackgroundImage = pictureBoxProblem.Image;
             break;
         default:
             box.BackgroundImage = null;
             break;
     }
 }
Example #5
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="support">generaly version support</param>
 /// <param name="name">name of the office product</param>
 /// <param name="version">office product version number</param>
 internal SupportInfo(SupportVersion support, string name, int version)
 {
     _support = support;
     _name = name;
     _version = version;
 }