public void ReadJournals(HistoryEntry currenthe) { dataGridViewCommanders.AutoGenerateColumns = false; // BEFORE assigned to list.. dataGridViewCommanders.DataSource = EDCommander.GetListCommanders(); if (currenthe != null) { DLLManager.Refresh(EDCommander.Current.Name, EDDDLLCallerHE.CreateFromHistoryEntry(currenthe)); if (currenthe.Commander.SyncToInara) { EliteDangerousCore.Inara.InaraSync.Refresh(LogLine, currenthe, currenthe.Commander); } } }
private void buttonRefresh_Click(object sender, EventArgs e) { EDDDLLInterfaces.EDDDLLIF.JournalEntry nje = new EDDDLLInterfaces.EDDDLLIF.JournalEntry() { ver = 3, indexno = 19 }; nje.utctime = "01/02/03"; nje.name = "EventSummary"; nje.info = "Info"; nje.detailedinfo = "DI"; nje.materials = new string[2] { "one", "two" }; nje.commodities = new string[2] { "c-one", "c-two" }; nje.currentmissions = new string[2] { "m-one", "m-two" }; nje.systemname = "Sys Fred"; nje.x = 100.1; nje.y = 200.1; nje.z = 300.1; nje.travelleddistance = 1234.5; nje.travelledseconds = 6789; nje.islanded = true; nje.isdocked = true; nje.whereami = "Body"; nje.shiptype = "Anaconda"; nje.gamemode = "Open"; nje.group = "Fred"; nje.credits = 123456789; nje.totalrecords = 2001; nje.jid = 101; nje.json = "{\"timestamp\"=\"10-20\"}"; nje.travelstate = "Travelling"; nje.microresources = new string[] { "MR1", "MR2" }; mgr.Refresh("Jameson", nje); richTextBox1.Text += "Refresh" + Environment.NewLine; }