예제 #1
0
        /// <summary>
        /// Connects to the server
        /// </summary>
        public void ConnectToServer()
        {
            Connect c = Connect.Instance;

            c.SubscribeToMessage(this);
            SetConfig(c);
        }
예제 #2
0
 /// <summary>
 /// Creates the log model
 /// </summary>
 public LogModel()
 {
     ListCommands = new ObservableCollection <CommandInfo>();
     BindingOperations.EnableCollectionSynchronization(ListCommands, lockObj);
     c.SubscribeToMessage(this);
     ConnectToServer();
 }