コード例 #1
0
 public ConnectionManager()
 {
     _hubConnection = new HubConnectionBuilder().WithUrl(Uri + "/chatHub").Build();
     _hubConnection.ServerTimeout = TimeSpan.FromMilliseconds(100000);
     _operationFile     = OperationFile.GetInstance();
     _chatPageViewModel = new ChatPageViewModel();
     _newChatMessage    = new ChatMessage();
 }
コード例 #2
0
 public MainWindowViewModel()
 {
     RecordInJsonCommandButton  = new DelegateCommand <Object>(RecordButton);
     SelectFolderCommandButton  = new DelegateCommand <Object>(SelectFolderButton);
     _operationFile             = OperationFile.GetInstance();
     IsEnableSelectFolderButton = true;
     IsEnableRecordInJsonButton = true;
 }
コード例 #3
0
 public AuthorizationViewModel()
 {
     RegistrationCommandButton = new DelegateCommand <Window>(RegistrationButton);
     AutorizationCommandButton = new DelegateCommand <Object>(AutorizationButton);
     _connectionManager        = ConnectionManager.GetInstance();
     _operationFile            = OperationFile.GetInstance();
     _validator          = new Validator();
     IsEnableLoginButton = true;
 }