コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
ファイル: DevUtil.cs プロジェクト: der3318/acnh-save-editor
        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);
        }