예제 #1
0
 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, ""));
 }
예제 #2
0
 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));
 }