public ExportedCreatureControl(string filePath) { InitializeComponent(); exportedFile = filePath; CreatureValues creatureValues = ImportExported.importExportedCreature(filePath); this.creatureValues = creatureValues; groupBox1.Text = creatureValues.name + " (" + creatureValues.species + ", Lv " + creatureValues.level + "), exported at " + Utils.shortTimeDate(creatureValues.domesticatedAt) + ". Filename: " + Path.GetFileName(filePath); Disposed += ExportedCreatureControl_Disposed; tt = new ToolTip(); tt.SetToolTip(btRemoveFile, "Delete the exported game-file"); }
public ExportedCreatureControl(string filePath) { InitializeComponent(); exportedFile = filePath; creatureValues = ImportExported.importExportedCreature(filePath); groupBox1.Text = $"{creatureValues.name} ({creatureValues.species}, Lv {creatureValues.level}), " + $"exported at {Utils.shortTimeDate(creatureValues.domesticatedAt)}. " + $"Filename: {Path.GetFileName(filePath)}"; Disposed += ExportedCreatureControl_Disposed; if (tt == null) { tt = new ToolTip(); } tt.SetToolTip(btRemoveFile, "Delete the exported game-file"); }