Exemplo n.º 1
0
        public override void ApplyFunction(C64Studio.Types.Function Function)
        {
            switch (Function)
            {
            case C64Studio.Types.Function.FIND:
                editSource.FindReplace.ShowFind();
                break;

            case C64Studio.Types.Function.FIND_REPLACE:
                editSource.FindReplace.ShowReplace();
                break;

            case C64Studio.Types.Function.PRINT:
                editSource.Printing.Print();
                break;
            }
        }
Exemplo n.º 2
0
        private void SetKeyBindingKey(C64Studio.Types.Function Function, Keys Key)
        {
            foreach (var accPair in Accelerators)
            {
                if (accPair.Value.Function == Function)
                {
                    Accelerators.Remove(accPair.Key, accPair.Value);
                    break;
                }
            }

            if (Key != Keys.None)
            {
                AcceleratorKey key = new AcceleratorKey(Key, Function);
                key.Key = Key;
                Accelerators.Add(key.Key, key);
            }
        }