Example #1
0
        private void btnFieldNight_Click(object sender, EventArgs e)
        {
            if (mf.isDay)
            {
                mf.SwapDayNightMode();
            }

            using (var form = new FormColorPicker(mf, mf.fieldColorNight))
            {
                var result = form.ShowDialog();
                if (result == DialogResult.OK)
                {
                    mf.fieldColorNight = form.useThisColor;
                }
            }

            Settings.Default.setDisplay_colorFieldNight = mf.fieldColorNight;
            Settings.Default.Save();
        }
Example #2
0
        private void btnFrameNight_Click(object sender, EventArgs e)
        {
            if (mf.isDay)
            {
                mf.SwapDayNightMode();
            }

            using (FormColorPicker form = new FormColorPicker(mf, mf.frameNightColor))
            {
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    mf.frameNightColor = form.useThisColor;
                }
            }

            Properties.Settings.Default.setDisplay_colorNightFrame = mf.frameNightColor;
            Settings.Default.Save();

            mf.SwapDayNightMode();
            mf.SwapDayNightMode();
        }
Example #3
0
        private void btnDayText_Click(object sender, EventArgs e)
        {
            if (!mf.isDay)
            {
                mf.SwapDayNightMode();
            }

            using (FormColorPicker form = new FormColorPicker(mf, mf.textColorDay))
            {
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    mf.textColorDay = form.useThisColor;
                }
            }

            Settings.Default.setDisplay_colorTextDay = mf.textColorDay;
            Settings.Default.Save();

            mf.SwapDayNightMode();
            mf.SwapDayNightMode();
        }
Example #4
0
        private void btnFrameDay_Click(object sender, EventArgs e)
        {
            if (!mf.isDay)
            {
                mf.SwapDayNightMode();
            }

            using (var form = new FormColorPicker(mf, mf.dayColor))
            {
                var result = form.ShowDialog();
                if (result == DialogResult.OK)
                {
                    mf.dayColor = form.useThisColor;
                }
            }

            Properties.Settings.Default.setDisplay_colorDayMode = mf.dayColor;
            Settings.Default.Save();

            mf.SwapDayNightMode();
            mf.SwapDayNightMode();
        }