예제 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public SettingModel()
 {
     this.Handlers  = new ObservableCollection <string>();
     this.guiClient = GuiClient.Instance;
     //when the client recieves informtaion from the server call the handle function
     guiClient.Comm.InfoFromServer += HandleServerCommands;
 }
예제 #2
0
        public event EventHandler <LogRecord> NewLogNotify; // event to trigger when new logs arrive

        /// <summary>
        /// C'tor for logModal
        /// </summary>
        public LogModal()
        {
            GuiClient c = GuiClient.Instance;

            c.Connect();
            c.ServerMassages += ReadFromServer; // add methods to trigger when new message arive to GUI client
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogModel"/> class.
 /// </summary>
 public LogModel()
 {
     this.guiClient = GuiClient.Instance;
     //when the client recieves informtaion from the server call the handle function
     guiClient.Comm.InfoFromServer += HandleServerCommands;
 }
예제 #4
0
        /// <summary>
        /// Counstructor.
        /// </summary>
        public MainWindowModel()
        {
            GuiClient client = GuiClient.Instance;

            m_Connect = client.Connected;
        }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MainWindowModel"/> class.
 /// </summary>
 public MainWindowModel()
 {
     client = GuiClient.Instance;
 }