Example #1
0
        public Widget()
            : base(new GearConfig())
        {
            Window             = new WidgetWindow();
            Window.DataContext = GearsetSettings.Instance;
            GearsetResources.GameWindow.Move           += new EventHandler(GameWindow_Move);
            GearsetResources.GameWindow.GotFocus       += new EventHandler(GameWindow_GotFocus);
            GearsetResources.GameWindow.VisibleChanged += new EventHandler(GameWindow_VisibleChanged);

            // Data bind to action buttons.
            buttonActions = new ObservableCollection <ActionItem>();
            Window.buttonList.ItemsSource = buttonActions;
        }
Example #2
0
        public Widget()
            : base(new GearConfig())
        {
            Window = new WidgetWindow();
            Window.DataContext = GearsetSettings.Instance;
            GearsetResources.GameWindow.Move += GameWindow_Move;
            GearsetResources.GameWindow.GotFocus += GameWindow_GotFocus;
            GearsetResources.GameWindow.VisibleChanged += GameWindow_VisibleChanged;

            // Data bind to action buttons.
            _buttonActions = new ObservableCollection<ActionItem>();
            Window.ButtonList.ItemsSource = _buttonActions;
        }