public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.LoadGame(ShipId, Ship, ShipFD, ShipName, ShipIdent, FuelLevel, FuelCapacity); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.Loadout(ShipId, Ship, ShipFD, ShipName, ShipIdent, ShipModules, HullValue ?? 0, ModulesValue ?? 0, Rebuy ?? 0); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.Loadout(ShipId, Ship, ShipFD, ShipName, ShipIdent, ShipModules, HullValue ?? 0, ModulesValue ?? 0, Rebuy ?? 0, UnladenMass ?? 0, ReserveFuelCapacity ?? 0, HullHealth ?? 0, Hot); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.MassModuleStore(this); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.UpdateStoredModules(this); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { //System.Diagnostics.Debug.WriteLine(EventTimeUTC + " NEW"); shp.ShipyardNew(ShipType, ShipFD, ShipId); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.ModuleRetrieve(this); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.FighterDestroyed(); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { //Debug.WriteLine(EventTimeUTC + " SELL"); shp.Sell(ShipTypeFD, SellShipId); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.SetUserShipName(this); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.Resurrect(); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.Loadout(ShipId, Ship, ShipFD, ShipName, ShipIdent, ShipModules); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.LaunchSRV(); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.RefuelAll(this); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { // if (HullValue != null) System.Diagnostics.Debug.WriteLine("!)"); shp.Loadout(ShipId, Ship, ShipFD, ShipName, ShipIdent, ShipModules, HullValue ?? 0, ModulesValue ?? 0, Rebuy ?? 0); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.Sell(ShipType, SellShipId); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.FSDJump(this); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.LaunchSRV(); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.VehicleSwitch(To); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.LaunchFighter(PlayerControlled); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.UpdateStoredModules(this); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.DockFighter(); }
private void Display() // allow redisplay of last data { DataGridViewColumn sortcolprev = dataGridViewModules.SortedColumn != null ? dataGridViewModules.SortedColumn : dataGridViewModules.Columns[0]; SortOrder sortorderprev = dataGridViewModules.SortedColumn != null ? dataGridViewModules.SortOrder : SortOrder.Ascending; int firstline = dataGridViewModules.FirstDisplayedScrollingRowIndex; dataGridViewModules.Rows.Clear(); dataViewScrollerPanel.SuspendLayout(); last_si = null; // no ship info dataGridViewModules.Columns[2].HeaderText = "Slot".T(EDTx.UserControlModules_SlotCol); dataGridViewModules.Columns[3].HeaderText = "Info".T(EDTx.UserControlModules_ItemInfo); dataGridViewModules.Columns[6].HeaderText = "Value".T(EDTx.UserControlModules_Value); if (comboBoxShips.Text == storedmoduletext) { labelVehicle.Visible = buttonExtCoriolis.Visible = buttonExtEDShipyard.Visible = buttonExtConfigure.Visible = false; if (last_he != null && last_he.StoredModules != null) { ModulesInStore mi = last_he.StoredModules; labelVehicle.Text = ""; foreach (ModulesInStore.StoredModule sm in mi.StoredModules) { object[] rowobj = { sm.Name_Localised.Alt(sm.Name), sm.Name, sm.StarSystem.Alt("In Transit".T(EDTx.UserControlModules_InTransit)), sm.TransferTimeString, sm.Mass > 0 ? (sm.Mass.ToString() + "t") : "", sm.EngineerModifications.Alt(""), sm.TransferCost > 0 ? sm.TransferCost.ToString("N0") : "", "" }; dataGridViewModules.Rows.Add(rowobj); } dataGridViewModules.Columns[2].HeaderText = "System".T(EDTx.UserControlModules_System); dataGridViewModules.Columns[3].HeaderText = "Tx Time".T(EDTx.UserControlModules_TxTime); dataGridViewModules.Columns[6].HeaderText = "Cost".T(EDTx.UserControlModules_Cost); } } else if (comboBoxShips.Text == allmodulestext) { labelVehicle.Visible = buttonExtCoriolis.Visible = buttonExtEDShipyard.Visible = buttonExtConfigure.Visible = false; ShipInformationList shm = discoveryform.history.ShipInformationList; var ownedships = (from x1 in shm.Ships where x1.Value.State == ShipInformation.ShipState.Owned && !ShipModuleData.IsSRVOrFighter(x1.Value.ShipFD) select x1.Value); foreach (var si in ownedships) { foreach (string key in si.Modules.Keys) { EliteDangerousCore.ShipModule sm = si.Modules[key]; AddModuleLine(sm, si); } } if (last_he != null && last_he.StoredModules != null) { ModulesInStore mi = last_he.StoredModules; labelVehicle.Text = ""; foreach (ModulesInStore.StoredModule sm in mi.StoredModules) { string info = sm.StarSystem.Alt("In Transit".T(EDTx.UserControlModules_InTransit)); info = info.AppendPrePad(sm.TransferTimeString, ":"); object[] rowobj = { sm.Name_Localised.Alt(sm.Name), sm.Name, "Stored".Tx(EDTx.UserControlModules_Stored), info, sm.Mass > 0 ? (sm.Mass.ToString() + "t") : "", sm.EngineerModifications.Alt(""), sm.TransferCost > 0 ? sm.TransferCost.ToString("N0") : "", "" }; dataGridViewModules.Rows.Add(rowobj); } } } else if (comboBoxShips.Text == travelhistorytext || comboBoxShips.Text.Length == 0) // second is due to the order History gets called vs this on start { if (last_he != null && last_he.ShipInformation != null) { DisplayShip(last_he.ShipInformation); } } else { ShipInformation si = discoveryform.history.ShipInformationList.GetShipByNameIdentType(comboBoxShips.Text); if (si != null) { DisplayShip(si); } } dataViewScrollerPanel.ResumeLayout(); dataGridViewModules.Sort(sortcolprev, (sortorderprev == SortOrder.Descending) ? ListSortDirection.Descending : ListSortDirection.Ascending); dataGridViewModules.Columns[sortcolprev.Index].HeaderCell.SortGlyphDirection = sortorderprev; if (firstline >= 0 && firstline < dataGridViewModules.RowCount) { dataGridViewModules.SafeFirstDisplayedScrollingRowIndex(firstline); } }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.FighterDestroyed(); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { //System.Diagnostics.Debug.WriteLine(EventTimeUTC + " SWAP"); shp.ShipyardSwap(this, whereami, system.Name); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.ShipyardNew(this); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.ModuleStore(this); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system) { shp.SupercruiseEntry(this); }
public void ShipInformation(ShipInformationList shp, string whereami, ISystem system, DB.SQLiteConnectionUser conn) { shp.ModuleSell(this); }
public void ShipInformation(ShipInformationList shp, DB.SQLiteConnectionUser conn) { shp.LaunchFighter(PlayerControlled); }