コード例 #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;
            }
        }
コード例 #2
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;
            }
        }