public EDDiscoveryForm() { InitializeComponent(); EDDConfig = new EDDConfig(); //_fileTgcSystems = Path.Combine(Tools.GetAppDataDirectory(), "tgcsystems.json"); _fileEDSMDistances = Path.Combine(Tools.GetAppDataDirectory(), "EDSMDistances.json"); string logpath=""; try { logpath = Path.Combine(Tools.GetAppDataDirectory(), "Log"); if (!Directory.Exists(logpath)) { Directory.CreateDirectory(logpath); } } catch (Exception ex) { Trace.WriteLine($"Unable to create the folder '{logpath}'"); Trace.WriteLine($"Exception: {ex.Message}"); } _edsmSync = new EDSMSync(this); trilaterationControl.InitControl(this); travelHistoryControl1.InitControl(this); imageHandler1.InitControl(this); SystemNames = new AutoCompleteStringCollection(); Map = new EDDiscovery2._3DMap.MapManager(); }
public EDDiscoveryForm() { InitializeComponent(); EDDConfig = new EDDConfig(); //_fileTgcSystems = Path.Combine(Tools.GetAppDataDirectory(), "tgcsystems.json"); _fileEDSMDistances = Path.Combine(Tools.GetAppDataDirectory(), "EDSMDistances.json"); string logpath = ""; try { logpath = Path.Combine(Tools.GetAppDataDirectory(), "Log"); if (!Directory.Exists(logpath)) { Directory.CreateDirectory(logpath); } } catch (Exception ex) { Trace.WriteLine($"Unable to create the folder '{logpath}'"); Trace.WriteLine($"Exception: {ex.Message}"); } _edsmSync = new EDSMSync(this); trilaterationControl.InitControl(this); travelHistoryControl1.InitControl(this); imageHandler1.InitControl(this); SystemNames = new AutoCompleteStringCollection(); Map = new EDDiscovery2._3DMap.MapManager(); }
public EDDiscoveryForm() { InitializeComponent(); EDDConfig = new EDDConfig(); //_fileTgcSystems = Path.Combine(Tools.GetAppDataDirectory(), "tgcsystems.json"); _fileEDSMDistances = Path.Combine(Tools.GetAppDataDirectory(), "EDSMDistances.json"); string logpath=""; try { logpath = Path.Combine(Tools.GetAppDataDirectory(), "Log"); if (!Directory.Exists(logpath)) { Directory.CreateDirectory(logpath); } } catch (Exception ex) { Trace.WriteLine($"Unable to create the folder '{logpath}'"); Trace.WriteLine($"Exception: {ex.Message}"); } _edsmSync = new EDSMSync(this); trilaterationControl.InitControl(this); travelHistoryControl1.InitControl(this); imageHandler1.InitControl(this); menuStrip1.Renderer = new MenuRenderer(new MenuColorTable()); listBox1.DataSource = EDDConfig.Themes; listBox1.DisplayMember = "Name"; listBox1.ValueMember = "Name"; listBox1.SelectedValueChanged += delegate(object sender, EventArgs args) { var listBox = sender as ListBox; var theme = listBox.SelectedItem as ITheme; EDDConfig.SelectedTheme = theme; this.BackColor = EDDConfig.SelectedTheme.MainBackgroundColor; this.ForeColor = EDDConfig.SelectedTheme.MainFontColor; ApplyThemeToControls(this.Controls); }; SystemNames = new AutoCompleteStringCollection(); Map = new EDDiscovery2._3DMap.MapManager(); }
public EDDiscoveryForm() { InitializeComponent(); panel_close.Enabled = false; // no closing until we are ready for it.. tabControl1.Enabled = false; EDDConfig = new EDDConfig(); //_fileTgcSystems = Path.Combine(Tools.GetAppDataDirectory(), "tgcsystems.json"); _fileEDSMDistances = Path.Combine(Tools.GetAppDataDirectory(), "EDSMDistances.json"); string logpath = ""; try { logpath = Path.Combine(Tools.GetAppDataDirectory(), "Log"); if (!Directory.Exists(logpath)) { Directory.CreateDirectory(logpath); } } catch (Exception ex) { Trace.WriteLine($"Unable to create the folder '{logpath}'"); Trace.WriteLine($"Exception: {ex.Message}"); } _edsmSync = new EDSMSync(this); ToolStripManager.Renderer = theme.toolstripRenderer; theme.LoadThemes(); // default themes and ones on disk loaded theme.RestoreSettings(); // theme, remember your saved settings trilaterationControl.InitControl(this); travelHistoryControl1.InitControl(this); imageHandler1.InitControl(this); settings.InitControl(this); routeControl1.InitControl(this); SystemNames = new AutoCompleteStringCollection(); Map = new EDDiscovery2._3DMap.MapManager(); ApplyTheme(false); }