Esempio n. 1
0
 private void Init()
 {
     _travelPoints = PrefListModel.FlightPoints.ToList();
     TravelPoints  = _travelPoints;
     FileList      = model.GetFiles();
     FileList.Sort();
 }
Esempio n. 2
0
        private void Init()
        {
            Websites = null;

            try
            {
                _common = _configuration.GetConfiguration();
                Database database = new Database(_common.DatabaseHost, _common.DatabaseUser, _common.DatabasePassword, _common.DatabaseName, (uint)_common.DatabasePort);
                database.GetTemplates();
                _website = database.TemplateTables.ToList();
            }
            catch (Exception exception)
            {
                Debug.Assert(true, exception.Message);
            }

            Websites = _website;
            FileList = model.GetFiles();
            FileList.Sort();
            _travelPoints      = PrefListModel.FlightPoints.ToList();
            TravelPoints       = _travelPoints;
            _isRoundtripPushed = false;
        }