/// <summary> /// /// </summary> /// <param name="value"></param> private void SetUsedProgram(IPatch value) { NautilusProgram program = (NautilusProgram)value; NautilusProgramBank bank = (NautilusProgramBank)(value.Parent); SetUsedProgramBank(bank); SetUsedProgram(bank, program); program.RaisePropertyChanged(string.Empty, false); RaisePropertyChanged(string.Empty, false); }
/// <summary> /// /// </summary> /// <param name="bank"></param> private void SetUsedProgramBank(NautilusProgramBank bank) { Util.SetInt(PcgRoot, PcgRoot.Content, DefaultBankOffset, 1, bank.PcgId); }
/// <summary> /// Set used program. /// </summary> /// <param name="bank"></param> /// <param name="program"></param> private void SetUsedProgram(NautilusProgramBank bank, NautilusProgram program) { Util.SetInt(PcgRoot, PcgRoot.Content, DefaultPatchOffset, 1, program.Index); }