public AboutForm() { InitializeComponent(); labelVersion.Text = EDDApplicationContext.UserAgent; SetTipAndTag(linkLabelDeveloperChat, Resources.URLProjectDiscord); SetTipAndTag(linkLabelEDDB, Resources.URLeddb); SetTipAndTag(linkLabelEDSM, Resources.URLedsm); SetTipAndTag(linkLabelEliteDangerous, Resources.URLEDHomepage); SetTipAndTag(linkLabelFDForum, Resources.URLProjectEDForumPost); SetTipAndTag(linkLabelGitHub, Resources.URLProjectGithub); SetTipAndTag(linkLabelGitHubIssue, Resources.URLProjectFeedback); SetTipAndTag(linkLabelHelp, Resources.URLProjectWiki); SetTipAndTag(linkLabelLicense, Resources.URLProjectLicense); var x = Properties.Resources.EDD_License; textBoxLicense.Rtf = x; textBoxLicense.ScrollBarLineTweak = -15; // RTF ends up formatting it with non regular spacing.. add on 15 lines so you can see the bottom. fudge System.Diagnostics.Debug.WriteLine("Theme AF"); EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); panel_close.Visible = !winborder; panelLogo.Tag = Resources.URLProjectGithub; }
public bool Init(string cellset) { string datapath = EDDOptions.Instance.MapsAppDirectory(); if (Directory.Exists(datapath)) { galaxy = Map2d.LoadImage(Path.Combine(datapath, "Galaxy_L_Grid.json")); if (galaxy != null) { imageViewer.Image = new Bitmap(galaxy.FilePath); imageViewer.ZoomToFit(); imageViewer.Init(galaxy); comboBoxSelections.Items.AddRange((from x in DefaultGalaxyOptions select x.Item1)); initialsel = Selection = cellset; initiallist = new List <int>(imageViewer.Selection); // copy of.. EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); statusStripCustom.Visible = panel_close.Visible = panel_minimize.Visible = !winborder; BaseUtils.Translator.Instance.Translate(this, new Control[] { labelX, labelXName, labelZ, labelZName, labelID }); SetComboBox(); imageViewer.BackColor = Color.FromArgb(5, 5, 5); return(true); } } return(false); }
public AssignTravelLogSystemForm(ISystem refsys, DateTime?visited = null) { InitializeComponent(); EliteDangerousCore.EDSM.SystemClassEDSM.CheckSystemAliases(); SystemClassDB.GetSystemAndAlternatives(refsys, out _linkSystem, out _alternatives, out _namestatus); this.tbLogSystemName.Text = refsys.Name; this.tbVisitedDate.Text = visited == null ? "-" : visited.ToString(); this.tbLogCoordX.Text = refsys.HasCoordinate ? refsys.X.ToString("0.00") : "?"; this.tbLogCoordY.Text = refsys.HasCoordinate ? refsys.Y.ToString("0.00") : "?"; this.tbLogCoordZ.Text = refsys.HasCoordinate ? refsys.Z.ToString("0.00") : "?"; this.tbLogCoordX.TextAlign = refsys.HasCoordinate ? HorizontalAlignment.Right : HorizontalAlignment.Center; this.tbLogCoordY.TextAlign = refsys.HasCoordinate ? HorizontalAlignment.Right : HorizontalAlignment.Center; this.tbLogCoordZ.TextAlign = refsys.HasCoordinate ? HorizontalAlignment.Right : HorizontalAlignment.Center; UpdateLinkedSystemList(_linkSystem); tbManualSystemName.AutoCompleteMode = AutoCompleteMode.SuggestAppend; tbManualSystemName.AutoCompleteSource = AutoCompleteSource.CustomSource; tbManualSystemName.SetAutoCompletor(SystemClassDB.ReturnSystemListForAutoComplete); EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; BaseUtils.Translator.Instance.Translate(this); theme.ApplyToFormStandardFontSize(this); }
public CommanderForm() { InitializeComponent(); EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); panelTop.Visible = panelTop.Enabled = !winborder; }
private void Form2dLoad(object sender, EventArgs e) { initdone = false; pickerStart = new DateTimePicker(); pickerStop = new DateTimePicker(); host1 = new ToolStripControlHost(pickerStart); toolStrip.Items.Add(host1); host2 = new ToolStripControlHost(pickerStop); toolStrip.Items.Add(host2); pickerStart.Value = DateTime.Today.AddMonths(-1); this.pickerStart.ValueChanged += new System.EventHandler(this.dateTimePickerStart_ValueChanged); this.pickerStop.ValueChanged += new System.EventHandler(this.dateTimePickerStop_ValueChanged); startDate = new DateTime(2010, 1, 1); if (!AddImages()) { ExtendedControls.MessageBoxTheme.Show(this, "No maps available".Tx(this), "Warning".Tx(), MessageBoxButtons.OK, MessageBoxIcon.Exclamation); Close(); return; } toolStripComboExpo.Items.Clear(); foreach (Map2d img in fgeimages) { toolStripComboExpo.Items.Add(img.FileName); } toolStripComboBoxTime.Items.AddRange(new string[] { "Distant Worlds Expedition", "FGE Expedition", "Last Week".Tx(this), "Last Month".Tx(this), "Last Year".Tx(this), "All".Tx(this), "Custom".Tx(this) }); toolStripComboExpo.SelectedIndex = 0; toolStripComboBoxTime.SelectedIndex = 0; initdone = true; ShowSelectedImage(); imageViewer.BackColor = Color.FromArgb(5, 5, 5); EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); statusStripCustom.Visible = panel_close.Visible = panel_minimize.Visible = !winborder; BaseUtils.Translator.Instance.Translate(this); }
public bool Init() { List <EDCommander> commanders = EDCommander.GetListCommanders(); comboBoxCommanders.DisplayMember = "Name"; comboBoxCommanders.ValueMember = "Nr"; comboBoxCommanders.DataSource = commanders; EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; theme.ApplyToFormStandardFontSize(this); return(true); }
public void Init(bool ad, Icon ic) // true = manage downloads, else just show actions and allow editing of them { this.Icon = ic; managedownloadmode = ad; EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); statusStripCustom.Visible = panelTop.Visible = panelTop.Enabled = !winborder; richTextBoxScrollDescription.ReadOnly = true; label_index.Text = this.Text = (managedownloadmode) ? "Add-On Manager" : "Edit Add-Ons"; buttonExtGlobals.Visible = !managedownloadmode; buttonMore.Visible = !managedownloadmode; }
public SetNoteForm(HistoryEntry he, EDDiscoveryForm parent) { InitializeComponent(); this.Owner = parent; this._discoveryForm = parent; this.HistoryEntry = he; this.NoteText = he.snc?.Note; this.textBoxNote.Text = this.NoteText ?? ""; this.labelTimestamp.Text = he.EventTimeLocal.ToString(); this.labelSystem.Text = he.System.Name; this.labelSummary.Text = he.EventSummary; this.labelDetails.Text = he.EventDescription; EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; theme.ApplyToFormStandardFontSize(this); }
public void Init(string[] exportlist, bool disablestartendtime = false, bool allowRawJournalExport = false) { comboBoxCustomExportType.Items.AddRange(exportlist); customDateTimePickerFrom.Value = new DateTime(2014, 11, 22, 4, 0, 0, DateTimeKind.Utc); //Gamma start customDateTimePickerTo.Value = DateTime.Now; if (System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.Equals(".")) { radioButtonComma.Checked = true; } else { radioButtonSemiColon.Checked = true; } checkBoxIncludeHeader.Checked = EliteDangerousCore.DB.SQLiteConnectionUser.GetSettingBool("ExportFormIncludeHeader", true); checkBoxCustomAutoOpen.Checked = EliteDangerousCore.DB.SQLiteConnectionUser.GetSettingBool("ExportFormOpenExcel", true); checkBoxRawJournal.Checked = EliteDangerousCore.DB.SQLiteConnectionUser.GetSettingBool("ExportAsJournals", true); comboBoxCustomExportType.SelectedIndex = 0; EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); label_index.Visible = panel_minimize.Visible = panel_close.Visible = !winborder; if (disablestartendtime) { customDateTimePickerFrom.Visible = customDateTimePickerTo.Visible = false; int d = panelBottom.Top - customDateTimePickerFrom.Top; panelBottom.Top -= d; panelOuter.Height -= d; Height -= d; } checkBoxRawJournal.Visible = checkBoxRawJournal.Enabled = allowRawJournalExport; if (!allowRawJournalExport) { checkBoxRawJournal.Checked = false; } BaseUtils.Translator.Instance.Translate(this); }
public void Init(EDDProfiles pr, Icon ic) { profiles = pr; Icon = ic; EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); statusStripCustom.Visible = panelTop.Visible = panelTop.Enabled = !winborder; BaseUtils.Translator.Instance.Translate(this); SuspendLayout(); foreach (EDDProfiles.Profile p in profiles.ProfileList) { AddProfile(p.Id, p.Name, p.TripCondition, p.BackCondition, p == pr.PowerOn); } PositionPanels(); ResumeLayout(); }
public AboutForm() { InitializeComponent(); labelVersion.Text = EDDApplicationContext.UserAgent; SetTipAndTag(linkLabelDeveloperChat, Resources.URLProjectDiscord); SetTipAndTag(linkLabelEDDB, Resources.URLeddb); SetTipAndTag(linkLabelEDSM, Resources.URLedsm); SetTipAndTag(linkLabelEliteDangerous, Resources.URLEDHomepage); SetTipAndTag(linkLabelFDForum, Resources.URLProjectEDForumPost); SetTipAndTag(linkLabelGitHub, Resources.URLProjectGithub); SetTipAndTag(linkLabelGitHubIssue, Resources.URLProjectFeedback); SetTipAndTag(linkLabelHelp, Resources.URLProjectWiki); SetTipAndTag(linkLabelLicense, Resources.URLProjectLicense); EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); panel_close.Visible = !winborder; panelLogo.Tag = Resources.URLProjectGithub; }
public SetNoteForm(HistoryEntry he, EDDiscoveryForm parent) { InitializeComponent(); this.Owner = parent; this._discoveryForm = parent; this.HistoryEntry = he; this.NoteText = he.snc?.Note; this.textBoxNote.Text = this.NoteText ?? ""; this.labelTimestamp.Text = he.EventTimeLocal.ToString(); this.labelSystem.Text = he.System.Name; he.journalEntry.FillInformation(out string EventDescription, out string EventDetailedInfo); this.labelSummary.Text = he.EventSummary; this.labelDetails.Text = EventDescription; EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); panelTop.Visible = panelTop.Enabled = !winborder; BaseUtils.Translator.Instance.Translate(this, new Control[] { labelTimestamp, labelSystem, labelSummary, labelDetails }); }
public void Init(Vector3 pos, Vector3 dir, float zoom) { initpos = pos; initdir = dir; initzoom = zoom; textBoxWait.Text = "100"; textBoxPanTime.Text = "0"; textBoxFlyTime.Text = "0"; textBoxZoomTime.Text = "0"; textBoxMsgTime.Text = "0"; checkBoxPan.Checked = true; checkBoxPos.Checked = true; checkBoxChangeZoom.Checked = true; ValidateData(); EDDiscovery.EDDTheme theme = EDDiscovery.EDDTheme.Instance; bool winborder = theme.ApplyToFormStandardFontSize(this); panelTop.Visible = panelTop.Enabled = !winborder; BaseUtils.Translator.Instance.Translate(this); }