コード例 #1
0
        public static void Status(bool quiet)
        {
            if (InstallationNeeded(quiet))
            {
                return;
            }

            var mode = Modes.ModeChanger.GetCurrentMode();

            OutputLine("Current control mode: " + mode.ToString(), quiet);

            if (mode == ControlMode.advanced)
            {
                var cpu = new Modes.AdvancedModeModel(FanType.cpu);
                var gpu = new Modes.AdvancedModeModel(FanType.gpu);

                OutputLine(cpu.ToString(), quiet);
                OutputLine(gpu.ToString(), quiet);
            }
            else if (mode == ControlMode.basic)
            {
                var model = new Modes.BasicModeModel();

                OutputLine(model.ToString(), quiet);
            }
        }
コード例 #2
0
        public static void applyProfile(int newValue)
        {
            var model = new BasicModeModel();

            model.Value = newValue;
            model.Commit();
        }