Example #1
0
 public ClientViewModel(ClientTable table)
 {
     this.UniqueHash             = table.UniqueHash;
     this.IsFromDatabase         = true;
     this.clientTable            = table;
     this.ChatViewModelContainer = ChatViewModelContainer.Instance;
     this.Init();
 }
Example #2
0
 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();
 }