private void B_EditTurnipExchange_Click(object sender, EventArgs e) { var turnips = SAV.Main.Turnips; using var editor = new SingleObjectEditor <TurnipStonk>(turnips, PropertySort.Categorized, false); if (editor.ShowDialog() == DialogResult.OK) { SAV.Main.Turnips = turnips; } }
private void B_EditVisitors_Click(object sender, EventArgs e) { var boxed = SAV.Main.Visitor; using var editor = new SingleObjectEditor <object>(boxed, PropertySort.NoSort, false); if (editor.ShowDialog() == DialogResult.OK) { SAV.Main.Visitor = boxed; } }
private static void LoadSpecialForms() { // For forms that require more complete initialization (dynamically added user controls) var path = Settings.Default.LastFilePath; var sav = new HorizonSave(path); using var editor = new Editor(sav); using var items = new PlayerItemEditor <Item>(new[] { new Item() }, 1, 1); using var so = new SingleObjectEditor <object>(new object (), PropertySort.NoSort); }