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;
 }