Ejemplo n.º 1
0
        public MainWindowViewModel()
        {
            _client = new ServiceClient();
            _joystickState = new vJoy.JoystickState();

            /* Before it we should check if service is available */
            if ((JoyCapabilities = _client.ConnectJoystick()).JoyId != 0)
            {
                JoyVM = new JoyVM();
                JoyVM.PropertyChanged += JoyVM_PropertyChanged;
            }
        }
        public MainWindowViewModel()
        {
            _client        = new ServiceClient();
            _joystickState = new vJoy.JoystickState();

            /* Before it we should check if service is available */
            if ((JoyCapabilities = _client.ConnectJoystick()).JoyId != 0)
            {
                JoyVM = new JoyVM();
                JoyVM.PropertyChanged += JoyVM_PropertyChanged;
            }
        }