Beispiel #1
0
 public TypeDataManager(TypeDataDb db, Constants.TYPES type)
 {
     _typeDataDb = db;
     _type = type;
 }
Beispiel #2
0
 public BandsManager(TypeDataDb db) : base(db, Constants.TYPES.BANDS)
 {
     // Do Nothing
 }
Beispiel #3
0
 public ModesManager(TypeDataDb db) : base(db, Constants.TYPES.MODES)
 {
     // Do nothing
 }
Beispiel #4
0
 public TypeDataManager(TypeDataDb db, Constants.TYPES type)
 {
     _typeDataDb = db;
     _type       = type;
 }
Beispiel #5
0
 public CountriesManager(TypeDataDb db) : base(db, Constants.TYPES.COUNTRIES)
 {
     // Do nothing
 }
Beispiel #6
0
        private void InitializeDataBinding()
        {
            // Log data
            _qsoLog = new QSOLog(Properties.Settings.Default.LogPath);

            qsoGrid.ItemsSource = _qsoLog.QSOs;

            // Type data
            _typeDataDb = new TypeDataDb();

            _bandsManager = new BandsManager(_typeDataDb);
            _modesManager = new ModesManager(_typeDataDb);
            _countriesManager = new CountriesManager(_typeDataDb);
            _statesManager = new StatesManager(_typeDataDb);

            _bandsManager.LoadAndUpdate();
            _modesManager.LoadAndUpdate();
            _countriesManager.LoadAndUpdate();
            _statesManager.LoadAndUpdate();

            bandTxt.ItemsSource = _bandsManager.Bands;
            modeTxt.ItemsSource = _modesManager.Modes;
            countryTxt.ItemsSource = _countriesManager.Countries;
            stateTxt.ItemsSource = _statesManager.States;
        }
Beispiel #7
0
 public StatesManager(TypeDataDb db) : base(db, Constants.TYPES.PRIMARY_SUB)
 {
     // Do nothing
 }
Beispiel #8
0
 public BandsManager(TypeDataDb db)
     : base(db, Constants.TYPES.BANDS)
 {
     // Do Nothing
 }