Пример #1
0
 public HomeViewModel(Settings settings, TelegrammList telegrammList, INotificationManager manager)
 {
     _settings = settings;
     _manager  = manager;
     _settings.PropertyChanged        += SettingsOnPropertyChanged;
     Knx.Falcon.Logging.Logger.Factory = new MyLoggerFactory();
     _bus               = new KnxBus(CreateParameter());
     Telegramms         = telegrammList;
     ConnectCommand     = new Command(OnConnect);
     WriteCommand       = new Command(OnWrite);
     TargetWriteAddress = "01/1/001";
     WriteValue         = "true";
 }
Пример #2
0
 public ExportViewModel(Settings settings, TelegrammList telegrammList)
 {
     _settings      = settings;
     _telegrammList = telegrammList;
     ExportCommand  = new Command(ExecuteExport);
 }