internal void SaveCurrentPopouts() { foreach (PanelInformation.PanelIDs p in Enum.GetValues(typeof(PanelInformation.PanelIDs))) // in terms of PanelInformation.PopOuts Enum { PanelInformation.PanelInfo pi = PanelInformation.GetPanelInfoByPanelID(p); if (pi != null) // paranoia { int numopened = usercontrolsforms.CountOf(pi.PopoutType); //System.Diagnostics.Debug.WriteLine("Saved panel type " + paneltype.Name + " " + p.ToString() + " " + numopened); SQLiteConnectionUser.PutSettingInt(EDDProfiles.Instance.UserControlsPrefix + "SavedPanelInformation.PopOuts:" + p.ToString(), numopened); } } }
public void SaveCurrentPopouts() { foreach (PanelInformation.PanelIDs p in Enum.GetValues(typeof(PanelInformation.PanelIDs))) // in terms of PanelInformation.PopOuts Enum { PanelInformation.PanelInfo pi = PanelInformation.GetPanelInfoByPanelID(p); if (pi != null) // paranoia { int numopened = usercontrolsforms.CountOf(pi.PopoutType); if (numopened > 0) { System.Diagnostics.Debug.WriteLine($"Save Popout {p} {numopened}"); } EliteDangerousCore.DB.UserDatabase.Instance.PutSettingInt(PopOutSaveID(p), numopened); } } }