public static void InitDisplayControl(ref DisplayControl DisplaySettings)
 {
     DisplaySettings._Shutdown1                = string.Empty;
     DisplaySettings._Shutdown2                = string.Empty;
     DisplaySettings.BlankDisplayWithVideo     = false;
     DisplaySettings.EnableDisplayAction       = false;
     DisplaySettings.BlankDisplayWhenIdle      = false;
     DisplaySettings._BlankIdleTime            = 0L;
     DisplaySettings._BlankIdleTimeout         = 0L;
     DisplaySettings._DisplayControlAction     = false;
     DisplaySettings._DisplayControlLastAction = 0L;
     DisplaySettings.DisplayActionTime         = 0;
     DisplaySettings._DisplayControlTimeout    = 0L;
 }
 public static void InitDisplayControl(ref DisplayControl DisplaySettings)
 {
   DisplaySettings._Shutdown1 = string.Empty;
   DisplaySettings._Shutdown2 = string.Empty;
   DisplaySettings.BlankDisplayWithVideo = false;
   DisplaySettings.EnableDisplayAction = false;
   DisplaySettings.BlankDisplayWhenIdle = false;
   DisplaySettings._BlankIdleTime = 0L;
   DisplaySettings._BlankIdleTimeout = 0L;
   DisplaySettings._DisplayControlAction = false;
   DisplaySettings._DisplayControlLastAction = 0L;
   DisplaySettings.DisplayActionTime = 0;
   DisplaySettings._DisplayControlTimeout = 0L;
 }
示例#3
0
        public static DisplayControl LoadDisplayControlSettings()
        {
            DisplayControl control = new DisplayControl();
            string         type    = Settings.Instance.Type;

            if (type.Equals("iMONLCDg"))
            {
                iMONLCDg.AdvancedSettings settings = iMONLCDg.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings.EnableDisplayAction;
                control.DisplayActionTime     = settings.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings.BlankIdleTime;
                return(control);
            }
            if (type.Equals("MatrixGX"))
            {
                MatrixGX.AdvancedSettings settings2 = MatrixGX.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings2.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings2.EnableDisplayAction;
                control.DisplayActionTime     = settings2.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings2.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings2.BlankIdleTime;
                return(control);
            }
            if (type.Equals("MD8800"))
            {
                MD8800.AdvancedSettings settings3 = MD8800.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings3.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings3.EnableDisplayAction;
                control.DisplayActionTime     = settings3.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings3.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings3.BlankIdleTime;
                return(control);
            }
            if (type.Equals("CFontz"))
            {
                CFontz.AdvancedSettings settings4 = CFontz.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings4.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings4.EnableDisplayAction;
                control.DisplayActionTime     = settings4.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings4.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings4.BlankIdleTime;
                return(control);
            }
            if (type.Equals("MatrixMX"))
            {
                MatrixMX.AdvancedSettings settings5 = MatrixMX.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings5.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings5.EnableDisplayAction;
                control.DisplayActionTime     = settings5.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings5.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings5.BlankIdleTime;
                return(control);
            }
            if (type.Equals("VLSYS_Mplay"))
            {
                VLSYS_Mplay.AdvancedSettings settings6 = VLSYS_Mplay.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings6.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings6.EnableDisplayAction;
                control.DisplayActionTime     = settings6.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings6.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings6.BlankIdleTime;
            }
            if (type.Equals("DebugForm"))
            {
                DebugForm.AdvancedSettings settings7 = DebugForm.AdvancedSettings.Load();
                control.BlankDisplayWithVideo = settings7.BlankDisplayWithVideo;
                control.EnableDisplayAction   = settings7.EnableDisplayAction;
                control.DisplayActionTime     = settings7.EnableDisplayActionTime;
                control.BlankDisplayWhenIdle  = settings7.BlankDisplayWhenIdle;
                control.BlankIdleDelay        = settings7.BlankIdleTime;
            }
            return(control);
        }
示例#4
0
        public static void SaveDisplayControlSettings(DisplayControl DisplayControl)
        {
            string type = Settings.Instance.Type;

            if (type.Equals("iMONLCDg"))
            {
                iMONLCDg.AdvancedSettings toSave = iMONLCDg.AdvancedSettings.Load();
                toSave.BlankDisplayWithVideo       = DisplayControl.BlankDisplayWithVideo;
                toSave.EnableDisplayAction         = DisplayControl.EnableDisplayAction;
                toSave.EnableDisplayActionTime     = DisplayControl.DisplayActionTime;
                toSave.BlankDisplayWhenIdle        = DisplayControl.BlankDisplayWhenIdle;
                toSave.BlankIdleTime               = DisplayControl.BlankIdleDelay;
                iMONLCDg.AdvancedSettings.Instance = toSave;
                iMONLCDg.AdvancedSettings.Save(toSave);
                iMONLCDg.AdvancedSettings.NotifyDriver();
            }
            else if (type.Equals("CFontz"))
            {
                CFontz.AdvancedSettings settings2 = CFontz.AdvancedSettings.Load();
                settings2.BlankDisplayWithVideo   = DisplayControl.BlankDisplayWithVideo;
                settings2.EnableDisplayAction     = DisplayControl.EnableDisplayAction;
                settings2.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
                settings2.BlankDisplayWhenIdle    = DisplayControl.BlankDisplayWhenIdle;
                settings2.BlankIdleTime           = DisplayControl.BlankIdleDelay;
                CFontz.AdvancedSettings.Instance  = settings2;
                CFontz.AdvancedSettings.Save(settings2);
                CFontz.AdvancedSettings.NotifyDriver();
            }
            else if (type.Equals("MD8800"))
            {
                MD8800.AdvancedSettings settings3 = MD8800.AdvancedSettings.Load();
                settings3.BlankDisplayWithVideo   = DisplayControl.BlankDisplayWithVideo;
                settings3.EnableDisplayAction     = DisplayControl.EnableDisplayAction;
                settings3.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
                settings3.BlankDisplayWhenIdle    = DisplayControl.BlankDisplayWhenIdle;
                settings3.BlankIdleTime           = DisplayControl.BlankIdleDelay;
                MD8800.AdvancedSettings.Instance  = settings3;
                MD8800.AdvancedSettings.Save(settings3);
                MD8800.AdvancedSettings.NotifyDriver();
            }
            else if (type.Equals("MatrixMX"))
            {
                MatrixMX.AdvancedSettings settings4 = MatrixMX.AdvancedSettings.Load();
                settings4.BlankDisplayWithVideo    = DisplayControl.BlankDisplayWithVideo;
                settings4.EnableDisplayAction      = DisplayControl.EnableDisplayAction;
                settings4.EnableDisplayActionTime  = DisplayControl.DisplayActionTime;
                settings4.BlankDisplayWhenIdle     = DisplayControl.BlankDisplayWhenIdle;
                settings4.BlankIdleTime            = DisplayControl.BlankIdleDelay;
                MatrixMX.AdvancedSettings.Instance = settings4;
                MatrixMX.AdvancedSettings.Save(settings4);
                MatrixMX.AdvancedSettings.NotifyDriver();
            }
            else if (type.Equals("MatrixGX"))
            {
                MatrixGX.AdvancedSettings settings5 = MatrixGX.AdvancedSettings.Load();
                settings5.BlankDisplayWithVideo    = DisplayControl.BlankDisplayWithVideo;
                settings5.EnableDisplayAction      = DisplayControl.EnableDisplayAction;
                settings5.EnableDisplayActionTime  = DisplayControl.DisplayActionTime;
                settings5.BlankDisplayWhenIdle     = DisplayControl.BlankDisplayWhenIdle;
                settings5.BlankIdleTime            = DisplayControl.BlankIdleDelay;
                MatrixGX.AdvancedSettings.Instance = settings5;
                MatrixGX.AdvancedSettings.Save(settings5);
                MatrixGX.AdvancedSettings.NotifyDriver();
            }
            else if (type.Equals("VLSYS_Mplay"))
            {
                VLSYS_Mplay.AdvancedSettings settings6 = VLSYS_Mplay.AdvancedSettings.Load();
                settings6.BlankDisplayWithVideo       = DisplayControl.BlankDisplayWithVideo;
                settings6.EnableDisplayAction         = DisplayControl.EnableDisplayAction;
                settings6.EnableDisplayActionTime     = DisplayControl.DisplayActionTime;
                settings6.BlankDisplayWhenIdle        = DisplayControl.BlankDisplayWhenIdle;
                settings6.BlankIdleTime               = DisplayControl.BlankIdleDelay;
                VLSYS_Mplay.AdvancedSettings.Instance = settings6;
                VLSYS_Mplay.AdvancedSettings.Save(settings6);
                VLSYS_Mplay.AdvancedSettings.NotifyDriver();
            }
            else if (type.Equals("DebugForm"))
            {
                DebugForm.AdvancedSettings settings7 = DebugForm.AdvancedSettings.Load();
                settings7.BlankDisplayWithVideo     = DisplayControl.BlankDisplayWithVideo;
                settings7.EnableDisplayAction       = DisplayControl.EnableDisplayAction;
                settings7.EnableDisplayActionTime   = DisplayControl.DisplayActionTime;
                settings7.BlankDisplayWhenIdle      = DisplayControl.BlankDisplayWhenIdle;
                settings7.BlankIdleTime             = DisplayControl.BlankIdleDelay;
                DebugForm.AdvancedSettings.Instance = settings7;
                DebugForm.AdvancedSettings.Save(settings7);
                DebugForm.AdvancedSettings.NotifyDriver();
            }
        }
示例#5
0
 public static DisplayControl LoadDisplayControlSettings()
 {
   DisplayControl control = new DisplayControl();
   string type = Settings.Instance.Type;
   if (type.Equals("iMONLCDg"))
   {
     iMONLCDg.AdvancedSettings settings = iMONLCDg.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings.EnableDisplayAction;
     control.DisplayActionTime = settings.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings.BlankIdleTime;
     return control;
   }
   if (type.Equals("MatrixGX"))
   {
     MatrixGX.AdvancedSettings settings2 = MatrixGX.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings2.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings2.EnableDisplayAction;
     control.DisplayActionTime = settings2.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings2.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings2.BlankIdleTime;
     return control;
   }
   if (type.Equals("MD8800"))
   {
     MD8800.AdvancedSettings settings3 = MD8800.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings3.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings3.EnableDisplayAction;
     control.DisplayActionTime = settings3.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings3.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings3.BlankIdleTime;
     return control;
   }
   if (type.Equals("CFontz"))
   {
     CFontz.AdvancedSettings settings4 = CFontz.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings4.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings4.EnableDisplayAction;
     control.DisplayActionTime = settings4.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings4.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings4.BlankIdleTime;
     return control;
   }
   if (type.Equals("MatrixMX"))
   {
     MatrixMX.AdvancedSettings settings5 = MatrixMX.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings5.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings5.EnableDisplayAction;
     control.DisplayActionTime = settings5.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings5.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings5.BlankIdleTime;
     return control;
   }
   if (type.Equals("VLSYS_Mplay"))
   {
     VLSYS_Mplay.AdvancedSettings settings6 = VLSYS_Mplay.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings6.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings6.EnableDisplayAction;
     control.DisplayActionTime = settings6.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings6.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings6.BlankIdleTime;
   }
   if (type.Equals("DebugForm"))
   {
     DebugForm.AdvancedSettings settings7 = DebugForm.AdvancedSettings.Load();
     control.BlankDisplayWithVideo = settings7.BlankDisplayWithVideo;
     control.EnableDisplayAction = settings7.EnableDisplayAction;
     control.DisplayActionTime = settings7.EnableDisplayActionTime;
     control.BlankDisplayWhenIdle = settings7.BlankDisplayWhenIdle;
     control.BlankIdleDelay = settings7.BlankIdleTime;
   }
   return control;
 }
示例#6
0
 public static void SaveDisplayControlSettings(DisplayControl DisplayControl)
 {
   string type = Settings.Instance.Type;
   if (type.Equals("iMONLCDg"))
   {
     iMONLCDg.AdvancedSettings toSave = iMONLCDg.AdvancedSettings.Load();
     toSave.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     toSave.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     toSave.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     toSave.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     toSave.BlankIdleTime = DisplayControl.BlankIdleDelay;
     iMONLCDg.AdvancedSettings.Instance = toSave;
     iMONLCDg.AdvancedSettings.Save(toSave);
     iMONLCDg.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("CFontz"))
   {
     CFontz.AdvancedSettings settings2 = CFontz.AdvancedSettings.Load();
     settings2.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     settings2.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     settings2.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     settings2.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     settings2.BlankIdleTime = DisplayControl.BlankIdleDelay;
     CFontz.AdvancedSettings.Instance = settings2;
     CFontz.AdvancedSettings.Save(settings2);
     CFontz.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("MD8800"))
   {
     MD8800.AdvancedSettings settings3 = MD8800.AdvancedSettings.Load();
     settings3.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     settings3.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     settings3.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     settings3.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     settings3.BlankIdleTime = DisplayControl.BlankIdleDelay;
     MD8800.AdvancedSettings.Instance = settings3;
     MD8800.AdvancedSettings.Save(settings3);
     MD8800.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("MatrixMX"))
   {
     MatrixMX.AdvancedSettings settings4 = MatrixMX.AdvancedSettings.Load();
     settings4.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     settings4.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     settings4.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     settings4.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     settings4.BlankIdleTime = DisplayControl.BlankIdleDelay;
     MatrixMX.AdvancedSettings.Instance = settings4;
     MatrixMX.AdvancedSettings.Save(settings4);
     MatrixMX.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("MatrixGX"))
   {
     MatrixGX.AdvancedSettings settings5 = MatrixGX.AdvancedSettings.Load();
     settings5.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     settings5.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     settings5.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     settings5.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     settings5.BlankIdleTime = DisplayControl.BlankIdleDelay;
     MatrixGX.AdvancedSettings.Instance = settings5;
     MatrixGX.AdvancedSettings.Save(settings5);
     MatrixGX.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("VLSYS_Mplay"))
   {
     VLSYS_Mplay.AdvancedSettings settings6 = VLSYS_Mplay.AdvancedSettings.Load();
     settings6.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     settings6.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     settings6.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     settings6.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     settings6.BlankIdleTime = DisplayControl.BlankIdleDelay;
     VLSYS_Mplay.AdvancedSettings.Instance = settings6;
     VLSYS_Mplay.AdvancedSettings.Save(settings6);
     VLSYS_Mplay.AdvancedSettings.NotifyDriver();
   }
   else if (type.Equals("DebugForm"))
   {
     DebugForm.AdvancedSettings settings7 = DebugForm.AdvancedSettings.Load();
     settings7.BlankDisplayWithVideo = DisplayControl.BlankDisplayWithVideo;
     settings7.EnableDisplayAction = DisplayControl.EnableDisplayAction;
     settings7.EnableDisplayActionTime = DisplayControl.DisplayActionTime;
     settings7.BlankDisplayWhenIdle = DisplayControl.BlankDisplayWhenIdle;
     settings7.BlankIdleTime = DisplayControl.BlankIdleDelay;
     DebugForm.AdvancedSettings.Instance = settings7;
     DebugForm.AdvancedSettings.Save(settings7);
     DebugForm.AdvancedSettings.NotifyDriver();
   }
 }