public void CloneTest() { DeviceConfig config = new DeviceConfig() { RecordingResolution = 1, RecordingQuality = 2, TransmitResolution = 3, TransmitQuality = 4, ApSsid = "aaa", ApKey = "bbb", ClientApSsid = "ccc", ClientApKey = "ddd" }; DeviceConfig target = (DeviceConfig)config.Clone(); Assert.IsTrue(config.EqualsTo(target)); }
public void SaveDeviceConfig(DeviceConfig config) { new DeviceConfigManager().Save(config); config.AssignTo(m_deviceConfig); }
public void Start() { Logger.Info("Personal Domain start..."); if (EventAggregator == null) { throw new Exception("Event aggregator가 설정되지 않았습니다."); } m_preferences.Load(PrefersPath); m_vehicles.Load(); m_deviceConfig = new DeviceConfigManager().Load(""); m_repository.Open(m_preferences.StorageRoot, m_vehicles.Vehicles); EmptyWorkingFolder(); m_vehicles.Vehicles.CollectionChanged += new NotifyCollectionChangedEventHandler(Vehicles_CollectionChanged); AppDomain.CurrentDomain.ProcessExit += new EventHandler((sender, e) => { EmptyWorkingFolder(); }); Logger.Info("Personal Domain started."); if (m_vehicles.Vehicles.Count < 1) { DialogService.Run("차량 정보 관리", new VehicleListView(), new VehicleListViewModel()); } }
public void Save(DeviceConfig config) { }