Example #1
0
        public static DisplayOptionsLayout GetDisplayOptionsLayout(DisplayOptions DisplayOptions)
        {
            DisplayOptionsLayout layout = new DisplayOptionsLayout();

            layout.Volume      = false;
            layout.Progress    = false;
            layout.DiskIcon    = false;
            layout.MediaStatus = false;
            layout.DiskStatus  = false;
            layout.CustomFont  = false;
            layout.LargeIcons  = false;
            layout.CustomIcons = false;
            layout.InvertIcons = false;
            layout.FontEditor  = false;
            layout.IconEditor  = false;

            string type = Settings.Instance.Type;

            if (type != null)
            {
                if (!(type == "MatrixGX"))
                {
                    if (type == "iMONLCDg" | type == "DebugForm")
                    {
                        layout.Volume   = true;
                        layout.Progress = true;
                        layout.DiskIcon = true;
                        if (DisplayOptions.DiskIcon)
                        {
                            layout.MediaStatus = true;
                            layout.DiskStatus  = true;
                        }
                        layout.CustomFont = true;
                        layout.LargeIcons = true;
                        if (DisplayOptions.UseLargeIcons)
                        {
                            layout.CustomIcons = true;
                            layout.InvertIcons = true;
                        }
                        if (DisplayOptions.UseCustomFont)
                        {
                            layout.FontEditor = true;
                        }
                        if (DisplayOptions.UseLargeIcons)
                        {
                            layout.IconEditor = true;
                        }
                    }
                    else if ((type == "VLSYS_Mplay") || (type == "MatrixMX"))
                    {
                    }
                }
                else
                {
                    layout.Volume   = true;
                    layout.Progress = true;
                    layout.DiskIcon = true;
                    if (DisplayOptions.DiskIcon)
                    {
                        layout.MediaStatus = true;
                    }
                }
            }
            return(layout);
        }
Example #2
0
    public static DisplayOptionsLayout GetDisplayOptionsLayout(DisplayOptions DisplayOptions)
    {
      DisplayOptionsLayout layout = new DisplayOptionsLayout();
      layout.Volume = false;
      layout.Progress = false;
      layout.DiskIcon = false;
      layout.MediaStatus = false;
      layout.DiskStatus = false;
      layout.CustomFont = false;
      layout.LargeIcons = false;
      layout.CustomIcons = false;
      layout.InvertIcons = false;
      layout.FontEditor = false;
      layout.IconEditor = false;

      string type = Settings.Instance.Type;

      if (type != null)
      {
        if (!(type == "MatrixGX"))
        {
          if (type == "iMONLCDg" | type == "DebugForm")
          {
            layout.Volume = true;
            layout.Progress = true;
            layout.DiskIcon = true;
            if (DisplayOptions.DiskIcon)
            {
              layout.MediaStatus = true;
              layout.DiskStatus = true;
            }
            layout.CustomFont = true;
            layout.LargeIcons = true;
            if (DisplayOptions.UseLargeIcons)
            {
              layout.CustomIcons = true;
              layout.InvertIcons = true;
            }
            if (DisplayOptions.UseCustomFont)
            {
              layout.FontEditor = true;
            }
            if (DisplayOptions.UseLargeIcons)
            {
              layout.IconEditor = true;
            }
          }
          else if ((type == "VLSYS_Mplay") || (type == "MatrixMX")) {}
        }
        else
        {
          layout.Volume = true;
          layout.Progress = true;
          layout.DiskIcon = true;
          if (DisplayOptions.DiskIcon)
          {
            layout.MediaStatus = true;
          }
        }
      }
      return layout;
    }