示例#1
0
        /// <summary>
        /// A skeleton has been picked for saving.
        /// </summary>
        /// <param name="obj">The object that fired the event.</param>
        /// <param name="e">The event arguments.</param>
        private void OnSkeletonSaved(object obj, SkeletonEventArgs e)
        {
            //Change the skeleton's name.
            _Character.Skeleton.Name = e.FileName;
            //Load the animation.
            SaveSkeleton(_Character.Skeleton);

            //Unsubscribe from the bone dialog's events.
            (obj as SaveSkeletonDialog).SkeletonSaved -= OnSkeletonSaved;
        }
示例#2
0
        /// <summary>
        /// A skeleton has been picked for loading.
        /// </summary>
        /// <param name="obj">The object that fired the event.</param>
        /// <param name="e">The event arguments.</param>
        private void OnSkeletonLoaded(object obj, SkeletonEventArgs e)
        {
            //Load the animation.
            LoadSkeleton(e.FileName);

            //Unsubscribe from the bone dialog's events.
            (obj as LoadSkeletonDialog).SkeletonLoaded -= OnSkeletonLoaded;
        }