Example #1
0
        private void Prepare(LockKeys key, bool islock)
        {
            string msg = string.Empty;

            if (key != LockKeys.Insert)
            {
                msg = key.ToString() + (islock ? " is on" : " is off");
            }
            else
            {
                msg = islock ? "Overtype Mode" : "Insert Mode";
            }

            lockKeysControl.txt.Text = msg;
        }
        private void Prepare(LockKeys key, bool islock)
        {
            var msg = key.ToString() + (islock ? " is on." : " is off.");

            lockKeysControl.txt.Text = msg;
        }
        private void Prepare(LockKeys key, bool islock)
        {
            string msg;

            if (key != LockKeys.Insert)
            {
                msg = string.Format(islock ? Properties.Strings.LockKeysFlyoutHelper_KeyIsOn : Properties.Strings.LockKeysFlyoutHelper_KeyIsOff, key.ToString());
                lockKeysControl.LockGlyph.Glyph = islock ? CommonGlyphs.Lock : CommonGlyphs.Unlock;
            }
            else
            {
                msg = islock ? Properties.Strings.LockKeysFlyoutHelper_OvertypeMode : Properties.Strings.LockKeysFlyoutHelper_InsertMode;
                lockKeysControl.LockGlyph.Glyph = string.Empty;
            }

            lockKeysControl.txt.Text = msg;
        }