Skip to content

Commit

Permalink
Added additional database information fields
Browse files Browse the repository at this point in the history
  • Loading branch information
xantari committed Apr 18, 2021
1 parent 4d02305 commit 80bd95f
Show file tree
Hide file tree
Showing 12 changed files with 523 additions and 50 deletions.
92 changes: 51 additions & 41 deletions PinCab.Configurator/DatabaseBrowserForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions PinCab.Configurator/DatabaseBrowserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -979,5 +979,24 @@ private void dataGridViewEntryList_CurrentCellChanged(object sender, EventArgs e
//Now bind the child grid
bindingSourceChildEntries.DataSource = entry?.RelatedEntries.ToSortableBindingList();
}

private void databaseInfoToolStripMenuItem_Click(object sender, EventArgs e)
{
var row = GetActiveRow();
if (row != null)
{
var contentDatabase = _settings.Databases.First(c => c.Name == row.DatabaseName);
var databaseToSave = _dbManager.Databases[row.DatabaseName];
var entryForm = new EditDatabaseForm(databaseToSave);
var result = entryForm.ShowDialog(this);
//Save database command is run when we hit the Save Database button
//if (result == DialogResult.OK)
//{
// var databasePath = _dbManager.GetFilesystemWorkPath(contentDatabase);
// //databaseToSave.LastUpdateDateUtc = DateTime.UtcNow; //Only update this when the Save Database command is run
// _dbManager.SaveDatabaseCache<PinballDatabase>(databaseToSave, databasePath); //Save the actual database .json file
//}
}
}
}
}
Loading

0 comments on commit 80bd95f

Please sign in to comment.