protected void InitOrbsCollection() { OrbsCollection = new List <OrbsCollectionData>(); UserPreferncesDataFactory up = new UserPreferncesDataFactory(); CurrentSystem = Constants.DefaultOrbsSystem; if (up != null && up.Data.OrbsSystemName != null) { CurrentSystem = up.Data.OrbsSystemName; } OrbsSystemListFactory fact = new OrbsSystemListFactory(); List <string> OrbsList = fact.Data; if (OrbsList != null) { foreach (string system in OrbsList) { AddOrbsCollectionData(system); } } else { AddOrbsCollectionData(Constants.DefaultOrbsSystem); } }
public AspectsCollection(List <SpaceObjectData> lstSO) { UserPreferncesDataFactory _upfact = new UserPreferncesDataFactory(); _ocdp = new OrbsCollectionDataProcessor(_upfact.Data.OrbsSystemName); CreateAspectsCollection(lstSO); }
public AspectsCollectionComplex(List <SpaceObjectData> lstStatic, List <SpaceObjectData> lstDynamic, tAstroMapType type) : base(lstStatic) { AstroMapType = type; UserPreferncesDataFactory _upfact = new UserPreferncesDataFactory(); _ocdp = new OrbsCollectionDataProcessor(_upfact.Data.OrbsSystemName); CreateAspectsCollection(lstStatic, lstDynamic); }
protected virtual void CreateHouses() { UserPreferncesDataFactory up = new UserPreferncesDataFactory(); HousesData hd = up.Data.HousesData; char system = 'K'; if (hd != null && !string.IsNullOrEmpty(hd.SystemID)) { char[] cc = hd.SystemID.ToCharArray(); system = cc[0]; } _houses = new AMHouses(JD, EventPlace.Longitude, EventPlace.Latitude, system, null); }
private void setHouses_Click(object sender, EventArgs e) { HousesData selectedsys = null; using (dlgHousesSystems dlg = new dlgHousesSystems(_userpref.HousesData)) { if (dlg.ShowDialog() == DialogResult.OK) { selectedsys = dlg.SelectedSystem; if (selectedsys != null && !string.IsNullOrEmpty(selectedsys.SystemID) && !string.IsNullOrEmpty(selectedsys.SystemName)) { _userpref.HousesData = selectedsys; UserPreferncesDataFactory fact = new UserPreferncesDataFactory(_userpref); } } } }
protected void SaveUserPref() { UserPreferncesDataFactory fact = new UserPreferncesDataFactory(_userpref); }
protected void LoadUserPref() { UserPreferncesDataFactory fact = new UserPreferncesDataFactory(); _userpref = fact.Data; }