Пример #1
0
        public RepeatedShowing()
        {
            _main = Main.GetInstance();

            this._timer.Tick += timer_Tick;

            this._reShowOnTop            = new ConfBool("display/reShowOnTop", true);
            this._reShowOnTop.OnChanged += reShowOnTop_OnChanged;

            _main.Display.WindowPosition.OnChanged += WindowPosition_OnChanged;

            this.updateTimerState();
        }
Пример #2
0
        public void testBool()
        {
            ConfBool aBool = new ConfBool("test/aBool", true);

            AssertEquals(configGui.checkBox1.Checked, true);

            aBool.Value = false;
            AssertEquals(configGui.checkBox1.Checked, false);

            configGui.checkBox1.Checked = true;
            AssertEquals(aBool.Value, true);

            aBool.Unregister();
        }
Пример #3
0
        /// <summary>
        /// <see cref="CreateIntValue"/>
        /// </summary>
        public static ConfBool CreateBoolValue(string name, bool _def)
        {
            ConfBool existing = (ConfBool)GetInstance().GetValueByName(name);

            return(existing ?? new ConfBool(name, _def));
        }