public ClientViewModel(ClientTable table) { this.UniqueHash = table.UniqueHash; this.IsFromDatabase = true; this.clientTable = table; this.ChatViewModelContainer = ChatViewModelContainer.Instance; this.Init(); }
public ClientViewModel(ChatViewModelContainer chatViewModelContainer, ClientSocket clientSocket, ComputerInfo computerInfo) { this.ChatViewModelContainer = chatViewModelContainer; this.IsFromDatabase = false; this.ClientSocket = clientSocket; this.computerInfo = computerInfo; this.UniqueHash = GenerateUniqueHash(); this.LoadTableData(); this.Init(); }