public static void InitDisplayOptions(ref DisplayOptions DisplayOptions)
 {
   DisplayOptions.DiskIcon = false;
   DisplayOptions.VolumeDisplay = false;
   DisplayOptions.ProgressDisplay = false;
   DisplayOptions.DiskMediaStatus = true;
   DisplayOptions.DiskMonitor = false;
   DisplayOptions.UseCustomFont = false;
   DisplayOptions.UseLargeIcons = false;
   DisplayOptions.UseCustomIcons = false;
   DisplayOptions.UseInvertedIcons = false;
 }
Exemplo n.º 2
0
 public static void SaveDisplayOptionsSettings(DisplayOptions DisplayOptions)
 {
   string type = Settings.Instance.Type;
   if (type.Equals("iMONLCDg"))
   {
     iMONLCDg.AdvancedSettings toSave = iMONLCDg.AdvancedSettings.Load();
     toSave.VolumeDisplay = DisplayOptions.VolumeDisplay;
     toSave.ProgressDisplay = DisplayOptions.ProgressDisplay;
     toSave.DiskIcon = DisplayOptions.DiskIcon;
     toSave.DiskMediaStatus = DisplayOptions.DiskMediaStatus;
     toSave.DeviceMonitor = DisplayOptions.DiskMonitor;
     toSave.UseCustomFont = DisplayOptions.UseCustomFont;
     toSave.UseLargeIcons = DisplayOptions.UseLargeIcons;
     toSave.UseCustomIcons = DisplayOptions.UseCustomIcons;
     toSave.UseInvertedIcons = DisplayOptions.UseInvertedIcons;
     iMONLCDg.AdvancedSettings.Instance = toSave;
     iMONLCDg.AdvancedSettings.Save(toSave);
     iMONLCDg.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("MatrixGX"))
   {
     MatrixGX.AdvancedSettings settings2 = MatrixGX.AdvancedSettings.Load();
     settings2.VolumeDisplay = DisplayOptions.VolumeDisplay;
     settings2.ProgressDisplay = DisplayOptions.ProgressDisplay;
     settings2.UseIcons = DisplayOptions.DiskIcon;
     settings2.UseDiskIconForAllMedia = DisplayOptions.DiskMediaStatus;
     MatrixGX.AdvancedSettings.Instance = settings2;
     MatrixGX.AdvancedSettings.Save(settings2);
     MatrixGX.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("DebugForm"))
   {
     iMONLCDg.AdvancedSettings toSave = iMONLCDg.AdvancedSettings.Load();
     toSave.VolumeDisplay = DisplayOptions.VolumeDisplay;
     toSave.ProgressDisplay = DisplayOptions.ProgressDisplay;
     toSave.DiskIcon = DisplayOptions.DiskIcon;
     toSave.DiskMediaStatus = DisplayOptions.DiskMediaStatus;
     toSave.DeviceMonitor = DisplayOptions.DiskMonitor;
     toSave.UseCustomFont = DisplayOptions.UseCustomFont;
     toSave.UseLargeIcons = DisplayOptions.UseLargeIcons;
     toSave.UseCustomIcons = DisplayOptions.UseCustomIcons;
     toSave.UseInvertedIcons = DisplayOptions.UseInvertedIcons;
     iMONLCDg.AdvancedSettings.Instance = toSave;
     iMONLCDg.AdvancedSettings.Save(toSave);
   }
   else if (!type.Equals("MatrixMX"))
   {
     type.Equals("VLSYS_Mplay");
   }
 }
Exemplo n.º 3
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;
    }
Exemplo n.º 4
0
    public static DisplayOptions LoadDisplayOptionsSettings()
    {
      DisplayOptions options = new DisplayOptions();
      string type = Settings.Instance.Type;
      if (type.Equals("iMONLCDg"))
      {
        iMONLCDg.AdvancedSettings settings = iMONLCDg.AdvancedSettings.Load();
        options.VolumeDisplay = settings.VolumeDisplay;
        options.ProgressDisplay = settings.ProgressDisplay;
        options.DiskIcon = settings.DiskIcon;
        options.DiskMediaStatus = settings.DiskMediaStatus;
        options.DiskMonitor = settings.DeviceMonitor;
        options.UseCustomFont = settings.UseCustomFont;
        options.UseLargeIcons = settings.UseLargeIcons;
        options.UseCustomIcons = settings.UseCustomIcons;
        options.UseInvertedIcons = settings.UseInvertedIcons;
        return options;
      }
      if (type.Equals("MatrixGX"))
      {
        MatrixGX.AdvancedSettings settings2 = MatrixGX.AdvancedSettings.Load();
        options.VolumeDisplay = settings2.VolumeDisplay;
        options.ProgressDisplay = settings2.ProgressDisplay;
        options.DiskIcon = settings2.UseIcons;
      }
      if (type.Equals("DebugForm"))
      {
        iMONLCDg.AdvancedSettings settings3 = iMONLCDg.AdvancedSettings.Load();
        options.VolumeDisplay = settings3.VolumeDisplay;
        options.ProgressDisplay = settings3.ProgressDisplay;
        options.DiskIcon = settings3.DiskIcon;
        options.DiskMediaStatus = settings3.DiskMediaStatus;
        options.DiskMonitor = settings3.DeviceMonitor;
        options.UseCustomFont = settings3.UseCustomFont;
        options.UseLargeIcons = settings3.UseLargeIcons;
        options.UseCustomIcons = settings3.UseCustomIcons;
        options.UseInvertedIcons = settings3.UseInvertedIcons;
        return options;
      }

      return options;
    }