public void CopyToView(OptionsView view) { view.PluginEnabled = PluginEnabled; view.AllowUpdateOfOtherDatabases = AllowUpdateOfOtherDatabases; view.DatabaseFileName = DatabaseFileName; view.ReceiverId = ReceiverId; view.SaveDownloadedAircraftDetails = SaveDownloadedAircraftDetails; view.RefreshOutOfDateAircraft = RefreshOutOfDateAircraft; view.OnlineLookupWriteActionNotice = OnlineLookupWriteActionNotice; }
public void RefreshFromView(OptionsView view) { PluginEnabled = view.PluginEnabled; AllowUpdateOfOtherDatabases = view.AllowUpdateOfOtherDatabases; DatabaseFileName = view.DatabaseFileName; ReceiverId = view.ReceiverId; SaveDownloadedAircraftDetails = view.SaveDownloadedAircraftDetails; RefreshOutOfDateAircraft = view.RefreshOutOfDateAircraft; OnlineLookupWriteActionNotice = view.OnlineLookupWriteActionNotice; CollectionHelper.OverwriteDestinationWithSource(view.CombinedFeeds, CombinedFeeds); }
public ViewModel(OptionsView view) : this() { RefreshFromView(view); }