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