예제 #1
0
        public Main()
        {
            InitializeComponent();

            cmbKey.DataSource = Enum.GetNames(typeof(Keys));



            var Mappings = new List <KeyMapping>();

            var m = new KeyMapping();

            m.Generator      = new Generators.Project();
            m.Alt            = true;
            m.Hotkey.KeyCode = Keys.D1;
            Mappings.Add(m);

            m                = new KeyMapping();
            m.Generator      = new Generators.Elf();
            m.Alt            = true;
            m.Hotkey.KeyCode = Keys.D2;
            Mappings.Add(m);

            m           = new KeyMapping();
            m.Generator = new Generators.Fantasy();
            Mappings.Add(m);


            bsMappings.DataSource = Mappings;
        }
예제 #2
0
        public Main()
        {
            InitializeComponent();

            cmbKey.DataSource = Enum.GetNames(typeof(Keys));

            var Mappings = new List<KeyMapping>();

            var m = new KeyMapping();
            m.Generator = new Generators.Project();
            m.Alt = true;
            m.Hotkey.KeyCode = Keys.D1;
            Mappings.Add(m);

            m = new KeyMapping();
            m.Generator = new Generators.Elf();
            m.Alt = true;
            m.Hotkey.KeyCode = Keys.D2;
            Mappings.Add(m);

            m = new KeyMapping();
            m.Generator = new Generators.Fantasy();
            Mappings.Add(m);

            bsMappings.DataSource = Mappings;
        }