/// <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; }
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 }
/// <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; }
/// <summary> /// Counstructor. /// </summary> public MainWindowModel() { GuiClient client = GuiClient.Instance; m_Connect = client.Connected; }
/// <summary> /// Initializes a new instance of the <see cref="MainWindowModel"/> class. /// </summary> public MainWindowModel() { client = GuiClient.Instance; }