/// <summary> /// Connects to the server /// </summary> public void ConnectToServer() { Connect c = Connect.Instance; c.SubscribeToMessage(this); SetConfig(c); }
/// <summary> /// Creates the log model /// </summary> public LogModel() { ListCommands = new ObservableCollection <CommandInfo>(); BindingOperations.EnableCollectionSynchronization(ListCommands, lockObj); c.SubscribeToMessage(this); ConnectToServer(); }