public SettingsModel() { client = GUIClient.Instance; config = new ConfigData(new List <string>(), "", "", "", 0); client.CommandReceived += HandleCommand; client.Register(); client.SendCommand(new CommandRecievedEventArgs((int)CommandEnum.ConfigCommand, null, "")); }
public LogsModel() { client = GUIClient.Instance; logsLock = new object(); logs = new ObservableCollection <MessageRecievedEventArgs>(); client.CommandReceived += HandleCommand; client.Register(); client.SendCommand(new CommandRecievedEventArgs((int)CommandEnum.LogHistoryCommand, null, null)); }