FSO.Debug.Vitaboy.outfitLoadBtn_Click C# (CSharp) Method

outfitLoadBtn_Click() private method

private outfitLoadBtn_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void outfitLoadBtn_Click(object sender, EventArgs e)
        {
            var outfit = ((IContentReference<Outfit>)outfitList.SelectedItem).Get();
            if (outfit == null) { return; }

            if (Avatar == null)
            {
                Avatar = new AdultVitaboyModel();
            }
            var content = Content.Content.Get();
            if (outfit.Region == 0)
            {
                // Head
                Avatar.Head = outfit;
            }
            else
            {
                Avatar.Body = outfit;
            }
            SetPreview(Avatar);
        }