コード例 #1
0
        public static MainMenuLayout GetMainMenuLayout()
        {
            MainMenuLayout layout = new MainMenuLayout();

            switch (Settings.Instance.Type)
            {
            case "iMONLCDg":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = false;
                layout.DisplayControl = true;
                layout.DisplayOptions = true;
                layout.Equalizer      = true;
                layout.KeyPad         = false;
                layout.Remote         = false;
                layout.Contrast       = true;
                layout.MonitorPower   = true;
                layout.Brightness     = false;
                break;
            }

            case "VLSYS_Mplay":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = false;
                layout.DisplayControl = true;
                layout.DisplayOptions = false;
                layout.Equalizer      = true;
                layout.KeyPad         = false;
                layout.Remote         = true;
                layout.Contrast       = true;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }

            case "MD8800":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = false;
                layout.DisplayControl = true;
                layout.DisplayOptions = false;
                layout.Equalizer      = false;
                layout.KeyPad         = false;
                layout.Remote         = false;
                layout.Contrast       = true;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }

            case "CFontz":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = false;
                layout.DisplayControl = true;
                layout.DisplayOptions = false;
                layout.Equalizer      = true;
                layout.KeyPad         = true;
                layout.Remote         = false;
                layout.Contrast       = true;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }

            case "MatrixMX":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = false;
                layout.DisplayControl = true;
                layout.DisplayOptions = false;
                layout.Equalizer      = true;
                layout.KeyPad         = true;
                layout.Remote         = false;
                layout.Contrast       = true;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }

            case "MatrixGX":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = true;
                layout.DisplayControl = true;
                layout.DisplayOptions = true;
                layout.Equalizer      = true;
                layout.KeyPad         = false;
                layout.Remote         = false;
                layout.Contrast       = true;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }

            case "DebugForm":
            {
                layout.LabelInfo1     = false;
                layout.LabelInfo2     = false;
                layout.Backlight      = true;
                layout.DisplayControl = true;
                layout.DisplayOptions = true;
                layout.Equalizer      = true;
                layout.KeyPad         = false;
                layout.Remote         = false;
                layout.Contrast       = false;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }

            default:
                layout.LabelInfo1     = true;
                layout.LabelInfo2     = true;
                layout.Backlight      = false;
                layout.DisplayControl = false;
                layout.DisplayOptions = false;
                layout.Equalizer      = false;
                layout.KeyPad         = false;
                layout.Remote         = false;
                layout.Contrast       = false;
                layout.MonitorPower   = false;
                layout.Brightness     = false;
                break;
            }
            return(layout);
        }
コード例 #2
0
ファイル: XMLUTILS.cs プロジェクト: arangas/MediaPortal-1
 public static MainMenuLayout GetMainMenuLayout()
 {
   MainMenuLayout layout = new MainMenuLayout();
   switch (Settings.Instance.Type)
   {
     case "iMONLCDg":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = false;
         layout.DisplayControl = true;
         layout.DisplayOptions = true;
         layout.Equalizer = true;
         layout.KeyPad = false;
         layout.Remote = false;
         layout.Contrast = true;
         layout.MonitorPower = true;
         layout.Brightness = false;
         break;
       }
     case "VLSYS_Mplay":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = false;
         layout.DisplayControl = true;
         layout.DisplayOptions = false;
         layout.Equalizer = true;
         layout.KeyPad = false;
         layout.Remote = true;
         layout.Contrast = true;
         layout.MonitorPower = false;
         layout.Brightness = false;
         break;
       }
     case "MD8800":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = false;
         layout.DisplayControl = true;
         layout.DisplayOptions = false;
         layout.Equalizer = false;
         layout.KeyPad = false;
         layout.Remote = false;
         layout.Contrast = true;
         layout.MonitorPower = false;
         layout.Brightness = false;
         break;
       }
     case "CFontz":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = false;
         layout.DisplayControl = true;
         layout.DisplayOptions = false;
         layout.Equalizer = true;
         layout.KeyPad = true;
         layout.Remote = false;
         layout.Contrast = true;
         layout.MonitorPower = false;
         layout.Brightness = false;
         break;
       }
     case "MatrixMX":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = false;
         layout.DisplayControl = true;
         layout.DisplayOptions = false;
         layout.Equalizer = true;
         layout.KeyPad = true;
         layout.Remote = false;
         layout.Contrast = true;
         layout.MonitorPower = false;
         layout.Brightness = false;
         break;
       }
     case "MatrixGX":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = true;
         layout.DisplayControl = true;
         layout.DisplayOptions = true;
         layout.Equalizer = true;
         layout.KeyPad = false;
         layout.Remote = false;
         layout.Contrast = true;
         layout.MonitorPower = false;
         layout.Brightness = false;
         break;
       }
     case "DebugForm":
       {
         layout.LabelInfo1 = false;
         layout.LabelInfo2 = false;
         layout.Backlight = true;
         layout.DisplayControl = true;
         layout.DisplayOptions = true;
         layout.Equalizer = true;
         layout.KeyPad = false;
         layout.Remote = false;
         layout.Contrast = false;
         layout.MonitorPower = false;
         layout.Brightness = false;
         break;
       }
     default:
       layout.LabelInfo1 = true;
       layout.LabelInfo2 = true;
       layout.Backlight = false;
       layout.DisplayControl = false;
       layout.DisplayOptions = false;
       layout.Equalizer = false;
       layout.KeyPad = false;
       layout.Remote = false;
       layout.Contrast = false;
       layout.MonitorPower = false;
       layout.Brightness = false;
       break;
   }
   return layout;
 }