public override void Init()
        {
            dataGridViewJournal.MakeDoubleBuffered();
            dataGridViewJournal.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridViewJournal.RowTemplate.Height        = 26;
            dataGridViewJournal.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx
            cfs.ConfigureThirdOption("Travel", "Docked;FSD Jump;Undocked;");
            cfs.Changed += EventFilterChanged;
            TravelHistoryFilter.InitaliseComboBox(comboBoxJournalWindow, DbHistorySave);

            checkBoxMoveToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);

            string filter = SQLiteDBClass.GetSettingString(DbFieldFilter, "");

            if (filter.Length > 0)
            {
                fieldfilter.FromJSON(filter);        // load filter
            }
            searchtimer = new Timer()
            {
                Interval = 500
            };
            searchtimer.Tick += Searchtimer_Tick;

            discoveryform.OnHistoryChange += Display;
            discoveryform.OnNewEntry      += AddNewEntry;
        }
Пример #2
0
        public void Update(bool write = true, SQLiteConnectionUser conn = null)     // call at start to populate above
        {
            try
            {
                _useNotifyIcon        = SQLiteConnectionUser.GetSettingBool("UseNotifyIcon", false, conn);
                _EDSMLog              = SQLiteConnectionUser.GetSettingBool("EDSMLog", false, conn);
                _orderrowsinverted    = SQLiteConnectionUser.GetSettingBool("OrderRowsInverted", false, conn);
                _minimizeToNotifyIcon = SQLiteConnectionUser.GetSettingBool("MinimizeToNotifyIcon", false, conn);
                _keepOnTop            = SQLiteConnectionUser.GetSettingBool("KeepOnTop", false, conn);
                _displayUTC           = SQLiteConnectionUser.GetSettingBool("DisplayUTC", false, conn);
                _clearCommodities     = SQLiteConnectionUser.GetSettingBool("ClearCommodities", false, conn);
                _clearMaterials       = SQLiteConnectionUser.GetSettingBool("ClearMaterials", false, conn);
                _autoLoadPopouts      = SQLiteConnectionUser.GetSettingBool("AutoLoadPopouts", false, conn);
                _autoSavePopouts      = SQLiteConnectionUser.GetSettingBool("AutoSavePopouts", false, conn);
                _defaultvoicedevice   = SQLiteConnectionUser.GetSettingString("VoiceAudioDevice", "Default", conn);
                _defaultwavedevice    = SQLiteConnectionUser.GetSettingString("WaveAudioDevice", "Default", conn);

                EliteDangerousCore.EDCommander.Load(write, conn);
                UserPaths.Load(conn);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine("EDDConfig.Update()" + ":" + ex.Message);
                System.Diagnostics.Trace.WriteLine(ex.StackTrace);
            }
        }
Пример #3
0
        public override void Init()
        {
            cfs.ConfigureThirdOption("Travel", "Docked;FSD Jump;Undocked;");
            cfs.Changed += EventFilterChanged;
            TravelHistoryFilter.InitaliseComboBox(comboBoxHistoryWindow, DbHistorySave);

            checkBoxMoveToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);

            dataGridViewTravel.MakeDoubleBuffered();
            dataGridViewTravel.RowTemplate.Height = DefaultRowHeight;

            string filter = SQLiteDBClass.GetSettingString(DbFieldFilter, "");

            if (filter.Length > 0)
            {
                fieldfilter.FromJSON(filter);        // load filter
            }
#if !DEBUG
            writeEventInfoToLogDebugToolStripMenuItem.Visible = false;
#endif

            ExtraIcons(false, false);

            discoveryform.OnHistoryChange += HistoryChanged;
            discoveryform.OnNewEntry      += AddNewEntry;
            discoveryform.OnNoteChanged   += OnNoteChanged;
        }
Пример #4
0
        public override void Init()
        {
            searchtimer = new Timer()
            {
                Interval = 500
            };
            searchtimer.Tick += Searchtimer_Tick;
            GlobalCaptainsLogList.Instance.OnLogEntryChanged += LogChanged;

            BaseUtils.Translator.Instance.Translate(this, new Control[] { });
            BaseUtils.Translator.Instance.Translate(contextMenuStrip, this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);

            ColNote.DefaultCellStyle.WrapMode       = DataGridViewTriState.True;
            dataGridView.AutoSizeRowsMode           = DataGridViewAutoSizeRowsMode.AllCells;
            dataGridView.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft;

            dateTimePickerStartDate.Value         = SQLiteConnectionUser.GetSettingDate(DbStartDate, new DateTime(2014, 12, 14));
            dateTimePickerStartDate.Checked       = SQLiteConnectionUser.GetSettingBool(DbStartDateOn, false);
            dateTimePickerEndDate.Value           = SQLiteConnectionUser.GetSettingDate(DbEndDate, new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day));
            dateTimePickerEndDate.Checked         = SQLiteConnectionUser.GetSettingBool(DbEndDateOn, false);
            dateTimePickerStartDate.ValueChanged += (s, e) => { if (!updateprogramatically)
                                                                {
                                                                    Display();
                                                                }
            };
            dateTimePickerEndDate.ValueChanged += (s, e) => { if (!updateprogramatically)
                                                              {
                                                                  Display();
                                                              }
            };

            discoveryform.OnRefreshCommanders += Discoveryform_OnRefreshCommanders;
        }
Пример #5
0
        public override void Init()
        {
            rollUpPanelTop.PinState = SQLiteConnectionUser.GetSettingBool(DbSave + "PinState", true);

            BaseUtils.Translator.Instance.Translate(this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);
        }
Пример #6
0
        public override void Init()
        {
            progchange = true;
            panelStars.ShowMaterials               = checkBoxMaterials.Checked = SQLiteDBClass.GetSettingBool(DbSave + "Materials", true);
            panelStars.ShowMaterialsRare           = checkBoxMaterialsRare.Checked = SQLiteDBClass.GetSettingBool(DbSave + "MaterialsRare", false);
            panelStars.ShowMoons                   = checkBoxMoons.Checked = SQLiteDBClass.GetSettingBool(DbSave + "Moons", true);
            panelStars.CheckEDSM                   = checkBoxEDSM.Checked = SQLiteDBClass.GetSettingBool(DbSave + "EDSM", false);
            panelStars.HideFullMaterials           = checkBoxCustomHideFullMats.Checked = SQLiteDBClass.GetSettingBool(DbSave + "MaterialsFull", false);
            panelStars.ShowOverlays                = chkShowOverlays.Checked = SQLiteDBClass.GetSettingBool(DbSave + "BodyOverlays", false);
            extCheckBoxDisplaySystemAlways.Checked = SQLiteDBClass.GetSettingBool(DbSave + "DisplaySysAlways", false);
            extCheckBoxDisplaySystemAlways.Visible = HasControlTextArea();
            bodyfilters           = SQLiteDBClass.GetSettingString(DbSave + "BodyFilters", "All").Split(';');
            panelStars.ValueLimit = SQLiteDBClass.GetSettingInt(DbSave + "ValueLimit", 50000);
            progchange            = false;

            rollUpPanelTop.PinState = SQLiteConnectionUser.GetSettingBool(DbSave + "PinState", true);

            rollUpPanelTop.SetToolTip(toolTip);

            int size = SQLiteDBClass.GetSettingInt(DbSave + "Size", 64);

            SetSizeImage(size);

            discoveryform.OnNewEntry += NewEntry;

            BaseUtils.Translator.Instance.Translate(this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);
        }
Пример #7
0
        public override void Init()
        {
            string        filter    = SQLiteConnectionUser.GetSettingString(DbSave + "Campaign", "");
            List <string> filtarray = BaseUtils.StringParser.ParseWordList(filter);

            savedfilterentries = new List <FilterEntry>();

            for (int i = 0; i < filtarray.Count / 5; i++)
            {
                FilterEntry f = new FilterEntry(filtarray, i * 5);
                if (f.Type != FilterEntry.EntryType.Invalid)
                {
                    savedfilterentries.Add(f);
                }
            }

            buttonExtEditCampaign.Enabled  = false;
            discoveryform.OnHistoryChange += Discoveryform_OnHistoryChange;
            discoveryform.OnNewEntry      += Discoveryform_OnNewEntry;

            checkBoxCustomGridOn.Checked = SQLiteConnectionUser.GetSettingBool(DbSave + "Gridshow", false);
            checkBoxCustomGridOn.Visible = IsFloatingWindow;

            transparentfont = EDDTheme.Instance.GetFontAtSize(12);

            BaseUtils.Translator.Instance.Translate(this);
            BaseUtils.Translator.Instance.Translate(contextMenuStrip, this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);
        }
Пример #8
0
        public void Update(bool write = true, SQLiteConnectionUser conn = null)     // call at start to populate above
        {
            try
            {
                useNotifyIcon           = SQLiteConnectionUser.GetSettingBool("UseNotifyIcon", false, conn);
                orderrowsinverted       = SQLiteConnectionUser.GetSettingBool("OrderRowsInverted", false, conn);
                minimizeToNotifyIcon    = SQLiteConnectionUser.GetSettingBool("MinimizeToNotifyIcon", false, conn);
                keepOnTop               = SQLiteConnectionUser.GetSettingBool("KeepOnTop", false, conn);
                displayUTC              = SQLiteConnectionUser.GetSettingBool("DisplayUTC", false, conn);
                defaultvoicedevice      = SQLiteConnectionUser.GetSettingString("VoiceAudioDevice", "Default", conn);
                defaultwavedevice       = SQLiteConnectionUser.GetSettingString("WaveAudioDevice", "Default", conn);
                showuievents            = SQLiteConnectionUser.GetSettingBool("ShowUIEvents", false, conn);
                clickthrukey            = (System.Windows.Forms.Keys)SQLiteConnectionUser.GetSettingInt("ClickThruKey", (int)System.Windows.Forms.Keys.ShiftKey, conn);
                edsmeddbdownload        = SQLiteConnectionUser.GetSettingBool("EDSMEDDBDownloadData", true, conn); // this goes with the USER on purpose, so its kept over a system db delete
                edsmgridids             = SQLiteConnectionSystem.GetSettingString("EDSMGridIDs", "Not Set");       // from system database, not user, to keep setting with system data
                fullhistoryloaddaylimit = SQLiteConnectionUser.GetSettingInt("FullHistoryLoadDayLimit", 0);
                language           = SQLiteConnectionUser.GetSettingString("DefaultLanguage", "Auto");
                drawduringresize   = SQLiteConnectionUser.GetSettingBool("DrawDuringResizeWindow", true);
                sortpanelsalpha    = SQLiteConnectionUser.GetSettingBool("PanelsSortedByName", false);
                essentialeventtype = SQLiteConnectionUser.GetSettingString("EssentialEventType", "Default");
                coriolisURL        = SQLiteConnectionUser.GetSettingString("CorolisURL", Properties.Resources.URLCoriolis);
                eddshipyardURL     = SQLiteConnectionUser.GetSettingString("EDDShipyardURL", Properties.Resources.URLEDShipyard);
                edsmfullsystemsurl = SQLiteConnectionUser.GetSettingString("EDSMFullSystemsURL", "Default");
                eddbsystemsurl     = SQLiteConnectionUser.GetSettingString("EDDBSystemsURL", "Default");

                EliteDangerousCore.EDCommander.Load(write, conn);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine("EDDConfig.Update()" + ":" + ex.Message);
                System.Diagnostics.Trace.WriteLine(ex.StackTrace);
            }
        }
        public override void Init(EDDiscoveryForm ed, UserControlCursorType thc, int vn) //0=primary, 1 = first windowed version, etc
        {
            discoveryform = ed;
            displaynumber = vn;

            dataGridViewJournal.MakeDoubleBuffered();
            dataGridViewJournal.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridViewJournal.RowTemplate.Height        = 26;
            dataGridViewJournal.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx
            cfs.ConfigureThirdOption("Travel", "Docked;FSD Jump;Undocked;");
            cfs.Changed += EventFilterChanged;
            TravelHistoryFilter.InitaliseComboBox(comboBoxJournalWindow, DbHistorySave);

            checkBoxMoveToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);

            discoveryform.OnHistoryChange += Display;
            discoveryform.OnNewEntry      += AddNewEntry;

            string filter = SQLiteDBClass.GetSettingString(DbFieldFilter, "");

            if (filter.Length > 0)
            {
                fieldfilter.FromJSON(filter);        // load filter
            }
            ExtraIcons(false, false);
        }
        public override void Init()
        {
            TravelHistoryFilter.InitaliseComboBox(comboBoxHistoryWindow, DbHistorySave);

            checkBoxMoveToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);


            dataGridViewStarList.MakeDoubleBuffered();
            dataGridViewStarList.RowTemplate.Height        = DefaultRowHeight;
            dataGridViewStarList.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridViewStarList.RowTemplate.Height        = 26;
            dataGridViewStarList.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx

            dataGridViewStarList.Columns[2].ValueType = typeof(Int32);

            checkBoxEDSM.Checked              = SQLiteDBClass.GetSettingBool(DbEDSM, false);
            this.checkBoxEDSM.CheckedChanged += new System.EventHandler(this.checkBoxEDSM_CheckedChanged);

            checkBoxBodyClasses.Checked              = SQLiteConnectionUser.GetSettingBool(DbShowClasses, true);
            this.checkBoxBodyClasses.CheckedChanged += new System.EventHandler(this.buttonBodyClasses_CheckedChanged);

            checkBoxJumponium.Checked              = SQLiteConnectionUser.GetSettingBool(DbShowJumponium, true);
            this.checkBoxJumponium.CheckedChanged += new System.EventHandler(this.buttonJumponium_CheckedChanged);

            discoveryform.OnHistoryChange += HistoryChanged;
            discoveryform.OnNewEntry      += AddNewEntry;
        }
Пример #11
0
        public void Update(bool write = true, SQLiteConnectionUser conn = null)     // call at start to populate above
        {
            try
            {
                _useNotifyIcon        = SQLiteConnectionUser.GetSettingBool("UseNotifyIcon", false, conn);
                _EDSMLog              = SQLiteConnectionUser.GetSettingBool("EDSMLog", false, conn);
                _orderrowsinverted    = SQLiteConnectionUser.GetSettingBool("OrderRowsInverted", false, conn);
                _minimizeToNotifyIcon = SQLiteConnectionUser.GetSettingBool("MinimizeToNotifyIcon", false, conn);
                _keepOnTop            = SQLiteConnectionUser.GetSettingBool("KeepOnTop", false, conn);
                _displayUTC           = SQLiteConnectionUser.GetSettingBool("DisplayUTC", false, conn);
                _clearCommodities     = SQLiteConnectionUser.GetSettingBool("ClearCommodities", false, conn);
                _clearMaterials       = SQLiteConnectionUser.GetSettingBool("ClearMaterials", false, conn);
                _autoLoadPopouts      = SQLiteConnectionUser.GetSettingBool("AutoLoadPopouts", false, conn);
                _autoSavePopouts      = SQLiteConnectionUser.GetSettingBool("AutoSavePopouts", false, conn);
                _defaultvoicedevice   = SQLiteConnectionUser.GetSettingString("VoiceAudioDevice", "Default", conn);
                _defaultwavedevice    = SQLiteConnectionUser.GetSettingString("WaveAudioDevice", "Default", conn);
                _showuievents         = SQLiteConnectionUser.GetSettingBool("ShowUIEvents", false, conn);
                _clickthrukey         = (System.Windows.Forms.Keys)SQLiteConnectionUser.GetSettingInt("ClickThruKey", (int)System.Windows.Forms.Keys.ShiftKey, conn);
                _EDSMEDDBDownload     = SQLiteConnectionUser.GetSettingBool("EDSMEDDBDownloadData", true, conn); // this goes with the USER on purpose, so its kept over a system db delete
                _EDSMGridIDs          = SQLiteConnectionSystem.GetSettingString("EDSMGridIDs", "All");           // from system database, not user, to keep setting with system data

                EliteDangerousCore.EDCommander.Load(write, conn);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine("EDDConfig.Update()" + ":" + ex.Message);
                System.Diagnostics.Trace.WriteLine(ex.StackTrace);
            }
        }
Пример #12
0
        public override void Init()
        {
            computer = new StarDistanceComputer();

            textMinRadius.ValueNoChange = SQLiteConnectionUser.GetSettingDouble(DbSave + "Min", defaultMinRadius);
            textMaxRadius.ValueNoChange = SQLiteConnectionUser.GetSettingDouble(DbSave + "Max", defaultMaxRadius);
            textMinRadius.SetComparitor(textMaxRadius, -2);     // need to do this after values are set
            textMaxRadius.SetComparitor(textMinRadius, 2);

            checkBoxCube.Checked = SQLiteConnectionUser.GetSettingBool(DbSave + "Behaviour", false);
        }
Пример #13
0
        public override void Init()
        {
            checkBoxCursorToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);


            dataGridViewStarList.MakeDoubleBuffered();
            dataGridViewStarList.RowTemplate.Height        = DefaultRowHeight;
            dataGridViewStarList.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridViewStarList.RowTemplate.Height        = 26;
            dataGridViewStarList.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx

            dataGridViewStarList.Columns[2].ValueType = typeof(Int32);

            checkBoxEDSM.Checked              = SQLiteDBClass.GetSettingBool(DbEDSM, false);
            this.checkBoxEDSM.CheckedChanged += new System.EventHandler(this.checkBoxEDSM_CheckedChanged);

            checkBoxBodyClasses.Checked              = SQLiteConnectionUser.GetSettingBool(DbShowClasses, true);
            this.checkBoxBodyClasses.CheckedChanged += new System.EventHandler(this.buttonBodyClasses_CheckedChanged);

            checkBoxJumponium.Checked              = SQLiteConnectionUser.GetSettingBool(DbShowJumponium, true);
            this.checkBoxJumponium.CheckedChanged += new System.EventHandler(this.buttonJumponium_CheckedChanged);

            discoveryform.OnHistoryChange += HistoryChanged;
            discoveryform.OnNewEntry      += AddNewEntry;

            searchtimer = new Timer()
            {
                Interval = 500
            };
            searchtimer.Tick += Searchtimer_Tick;
            autoupdateedsm    = new Timer()
            {
                Interval = 2000
            };
            autoupdateedsm.Tick += Autoupdateedsm_Tick;
            todotimer            = new Timer()
            {
                Interval = 20
            };
            todotimer.Tick += Todotimer_Tick;

            BaseUtils.Translator.Instance.Translate(this);
            BaseUtils.Translator.Instance.Translate(contextMenuStrip, this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);

            TravelHistoryFilter.InitaliseComboBox(comboBoxHistoryWindow, DbHistorySave);
        }
Пример #14
0
        public override void Init()
        {
            TravelHistoryFilter.InitaliseComboBox(comboBoxHistoryWindow, DbHistorySave);

            checkBoxMoveToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);

            dataGridViewStarList.MakeDoubleBuffered();
            dataGridViewStarList.RowTemplate.Height        = DefaultRowHeight;
            dataGridViewStarList.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridViewStarList.RowTemplate.Height        = 26;
            dataGridViewStarList.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx

            checkBoxEDSM.Checked = SQLiteDBClass.GetSettingBool(DbEDSM, false);

            ExtraIcons(false);

            discoveryform.OnHistoryChange += HistoryChanged;
            discoveryform.OnNewEntry      += AddNewEntry;
        }
Пример #15
0
        public override void Init()
        {
            dataGridViewJournal.MakeDoubleBuffered();
            dataGridViewJournal.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridViewJournal.RowTemplate.Height        = 26;
            dataGridViewJournal.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.DisplayedCells; // NEW! appears to work https://msdn.microsoft.com/en-us/library/74b2wakt(v=vs.110).aspx

            cfs = new FilterSelector(DbFilterSave);
            cfs.AddAllNone();
            cfs.AddJournalExtraOptions();
            cfs.AddJournalEntries();
            cfs.Closing += EventFilterChanged;

            checkBoxCursorToTop.Checked = SQLiteConnectionUser.GetSettingBool(DbAutoTop, true);

            string filter = SQLiteDBClass.GetSettingString(DbFieldFilter, "");

            if (filter.Length > 0)
            {
                fieldfilter.FromJSON(filter);        // load filter
            }
            searchtimer = new Timer()
            {
                Interval = 500
            };
            searchtimer.Tick += Searchtimer_Tick;

            todotimer = new Timer()
            {
                Interval = 10
            };
            todotimer.Tick += Todotimer_Tick;

            discoveryform.OnHistoryChange += Display;
            discoveryform.OnNewEntry      += AddNewEntry;

            BaseUtils.Translator.Instance.Translate(this);
            BaseUtils.Translator.Instance.Translate(historyContextMenu, this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);

            TravelHistoryFilter.InitaliseComboBox(comboBoxJournalWindow, DbHistorySave);
        }
Пример #16
0
        public override void Init()
        {
            computer = new StarDistanceComputer();

            textMinRadius.ValueNoChange = SQLiteConnectionUser.GetSettingDouble(DbSave + "PlotMin", 0);
            textMaxRadius.ValueNoChange = SQLiteConnectionUser.GetSettingDouble(DbSave + "PlotMax", defaultmaximumradarradius);
            textMinRadius.SetComparitor(textMaxRadius, -2);     // need to do this after values are set
            textMaxRadius.SetComparitor(textMinRadius, 2);

            comboBoxView.Enabled = false;
            comboBoxView.Items.Add("Top");
            comboBoxView.Items.Add("Front");
            comboBoxView.Items.Add("Side");
            comboBoxView.Items.DefaultIfEmpty("Top");
            comboBoxView.SelectedItem = SQLiteConnectionUser.GetSettingString(DbSave + "PlotOrientation", "Top");
            comboBoxView.Enabled      = true;

            checkBoxDotSize.Checked = SQLiteConnectionUser.GetSettingBool(DbSave + "PlotDepth", true);

            uctg.OnTravelSelectionChanged += Uctg_OnTravelSelectionChanged;
        }
Пример #17
0
        public void Init(int dn, string ucn, bool showexcel, EDDiscoveryForm disc)
        {
            ucdbname                   = ucn;
            displaynumber              = dn;
            discoveryform              = disc;
            numberBoxMinRadius.Value   = SQLiteConnectionUser.GetSettingDouble(DbRadiusMin, 0);
            numberBoxMaxRadius.Value   = SQLiteConnectionUser.GetSettingDouble(DbRadiusMax, 20);
            textBoxSystemName.Text     = SQLiteConnectionUser.GetSettingString(DbStar, "");
            numberBoxDoubleX.Value     = SQLiteConnectionUser.GetSettingDouble(DbX, 0);
            numberBoxDoubleY.Value     = SQLiteConnectionUser.GetSettingDouble(DbY, 0);
            numberBoxDoubleZ.Value     = SQLiteConnectionUser.GetSettingDouble(DbZ, 0);
            checkBoxCustomCube.Checked = SQLiteConnectionUser.GetSettingBool(DbCube, false);
            extCheckBoxExcludeVisitedSystems.Checked = SQLiteConnectionUser.GetSettingBool(DbEVS, false);

            if (textBoxSystemName.Text.Length > 0)
            {
                SetXYZ();
            }

            ValidateEnable();

            textBoxSystemName.SetAutoCompletor(SystemCache.ReturnSystemAutoCompleteList, true);

            this.numberBoxMinRadius.TextChanged += new System.EventHandler(this.textBoxSystemName_RadiusChanged);
            this.numberBoxMaxRadius.TextChanged += new System.EventHandler(this.textBoxSystemName_RadiusChanged);
            this.textBoxSystemName.TextChanged  += new System.EventHandler(this.textBoxSystemName_TextChanged);

            this.numberBoxDoubleX.ValidityChanged += ValidityNumberBox;
            this.numberBoxDoubleY.ValidityChanged += ValidityNumberBox;
            this.numberBoxDoubleZ.ValidityChanged += ValidityNumberBox;

            numberBoxMinRadius.SetComparitor(numberBoxMaxRadius, -2);     // need to do this after values are set
            numberBoxMaxRadius.SetComparitor(numberBoxMinRadius, 2);

            buttonExtExcel.Visible = showexcel;

            ValidateEnable();

            BaseUtils.Translator.Instance.Translate(this, new Control[] { labelX, labelY, labelZ });
        }
Пример #18
0
        public override void Init()
        {
            progchange = true;
            panelStars.ShowMaterials     = checkBoxMaterials.Checked = SQLiteDBClass.GetSettingBool(DbSave + "Materials", true);
            panelStars.ShowMaterialsRare = checkBoxMaterialsRare.Checked = SQLiteDBClass.GetSettingBool(DbSave + "MaterialsRare", false);
            panelStars.ShowMoons         = checkBoxMoons.Checked = SQLiteDBClass.GetSettingBool(DbSave + "Moons", true);
            panelStars.CheckEDSM         = checkBoxEDSM.Checked = SQLiteDBClass.GetSettingBool(DbSave + "EDSM", false);
            panelStars.HideFullMaterials = checkBoxCustomHideFullMats.Checked = SQLiteDBClass.GetSettingBool(DbSave + "MaterialsFull", false);
            panelStars.ShowOverlays      = chkShowOverlays.Checked = SQLiteDBClass.GetSettingBool(DbSave + "BodyOverlays", false);
            panelStars.ValueLimit        = SQLiteDBClass.GetSettingInt(DbSave + "ValueLimit", 50000);
            progchange = false;

            rollUpPanelTop.PinState = SQLiteConnectionUser.GetSettingBool(DbSave + "PinState", true);

            int size = SQLiteDBClass.GetSettingInt(DbSave + "Size", 64);

            SetSizeImage(size);

            discoveryform.OnNewEntry += NewEntry;

            BaseUtils.Translator.Instance.Translate(this);
            BaseUtils.Translator.Instance.Translate(toolTip, this);
        }