public ConnectionSettingViewModel(Action closeAction) { this._closeAction = closeAction; EnterCommand = new CustomCommand(MakeChanges, CanMakeChanges); }
private void LoadCommands() { //命令类型为CustomCommand,定义在FZChat.ViewModel.Utilities StartListenCommand = new CustomCommand(StartListen, CanStartListen); StopListenCommand = new CustomCommand(StopListen, CanStopListen); }
private void LoadCommands() { SearchUserCommand = new CustomCommand(SearchUser, CanSearchUser); AddFriendCommand = new CustomCommand(AddFriend, CanAddFriend); }
private void LoadCommands() { CloseWindowCommand = new CustomCommand(CloseWindow, CanCloseWindow); LogInCommand = new CustomCommand(LogIn, CanLogIn); RegisterCommand = new CustomCommand(OpenRegisterWindow, CanOpenRegisterWindow); }
private void LoadCommands() { SearchFriendCommand = new CustomCommand(OpenSearchWindow, CanOpenSearchWindow); CloseWindowCommand = new CustomCommand(CloseWindow, CanCloseWindow); ChatWithUserCommand = new CustomCommand(ChatWithUser, CanChatWithUser); SendMessageCommand = new CustomCommand(SendMessage, CanSendMessage); CreateGroupCommand = new CustomCommand(OpenCreateGroup, CanOpenCreateGroup); ChatSelectionChangedCommand = new CustomCommand(ChangeChatSelection, CanChangeChatSelection); }