Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public ViewModel(OptionsView view) : this()
 {
     RefreshFromView(view);
 }