Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="fromTimbre"></param>
        public virtual void CopyFrom(ITimbre fromTimbre)
        {
            if (fromTimbre.TimbresOffset != TimbresOffset)
            {
                Util.CopyBytes(PcgRoot, fromTimbre.TimbresOffset, TimbresOffset, TimbresSize);
                RaisePropertyChanged(string.Empty, false);

                UsedProgram.RaisePropertyChanged(string.Empty, false);
                RefillColumns();
            }
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        protected void RefillColumns()
        {
            // ColumnProgramName = UsedProgram.Name;
            //ColumnCategory = UsedProgram.CategoryAsName;
            //ColumnSubCategory = UsedProgram.SubCategoryAsName;

            RaisePropertyChanged(string.Empty, false);
            //RaisePropertyChanged("ColumnProgramName");
            if (UsedProgram != null) // Null while initializing
            {
                UsedProgram.RaisePropertyChanged(string.Empty, false);
            }
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="otherTimbre"></param>
        public virtual void Swap(ITimbre otherTimbre)
        {
            if (otherTimbre.TimbresOffset != TimbresOffset)
            {
                Util.SwapBytes(PcgRoot, Root.Content, TimbresOffset, Root.Content, otherTimbre.TimbresOffset,
                               TimbresSize);
                RaisePropertyChanged(string.Empty, false);
                otherTimbre.RaisePropertyChanged(string.Empty, false);

                UsedProgram.RaisePropertyChanged(string.Empty, false);
                otherTimbre.UsedProgram.RaisePropertyChanged(string.Empty, false);
                RefillColumns();
            }
        }