public ConnectionSettingViewModel(Action closeAction)
 {
     this._closeAction = closeAction;
     EnterCommand = new CustomCommand(MakeChanges, CanMakeChanges);
 }
示例#2
0
 private void LoadCommands()
 {
     //命令类型为CustomCommand,定义在FZChat.ViewModel.Utilities
     StartListenCommand = new CustomCommand(StartListen, CanStartListen);
     StopListenCommand = new CustomCommand(StopListen, CanStopListen);
 }
示例#3
0
 private void LoadCommands()
 {
     SearchUserCommand = new CustomCommand(SearchUser, CanSearchUser);
     AddFriendCommand = new CustomCommand(AddFriend, CanAddFriend);
 }
示例#4
0
 private void LoadCommands()
 {
     CloseWindowCommand = new CustomCommand(CloseWindow, CanCloseWindow);
     LogInCommand = new CustomCommand(LogIn, CanLogIn);
     RegisterCommand = new CustomCommand(OpenRegisterWindow, CanOpenRegisterWindow);
 }
示例#5
0
 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);
 }