コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="bank"></param>
 private void SetUsedProgramBank(NautilusProgramBank bank)
 {
     Util.SetInt(PcgRoot, PcgRoot.Content, DefaultBankOffset, 1, bank.PcgId);
 }
コード例 #3
0
 /// <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);
 }