private void ButtonX1_Click(object sender, EventArgs e)
        {
            var frm = new CustomModelSelector(rommgr);

            if (!import.DestModelBanks.TryGetValue(customObject.ModelProps.Model, out var destMdl))
            {
                destMdl = null;
            }
            frm.SetAsBankPicker(destMdl);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                import.DestModelBanks.AddOrUpdate(customObject.ModelProps.Model, frm.SelectedBank);
            }
        }
Beispiel #2
0
        private bool SelectCustomModelFromBank()
        {
            var frm = new CustomModelSelector(rommgr)
            {
                Model = customObject.ModelProps.Model
            };

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                customObject.ModelProps.UseCustomModelID = false;
                customObject.ModelProps.Model            = frm.Model;
                UpdateNode(customObject);
                LoadObjectProps();
                return(true);
            }
            else
            {
                return(false);
            }
        }