private void SkinPreviewList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var selected_item = SkinPreviewList.SelectedItem as MCSkin;

            if (selected_item != null)
            {
                SkinPreviewPanel.UpdateSkin(selected_item);
            }
        }
예제 #2
0
        private void UpdateCurrentSkin()
        {
            var selected_skin = SkinPreviewList.SelectedItem as MCSkin;
            var selected_item = LoadedSkinPacks.SelectedItem as MCSkinPack;

            if (selected_skin != null && selected_item != null)
            {
                CurrentSkinNameTextBlock.Text = selected_item.GetLocalizedSkinName(selected_skin.localization_name);
                SkinPreviewPanel.UpdateSkin(selected_skin);
            }
            else
            {
                CurrentSkinNameTextBlock.Text = "NULL";
                SkinPreviewPanel.UpdateSkin();
            }
        }
 private void LoadedSkinPacks_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ReloadSkins();
     SkinPreviewPanel.UpdateSkin();
 }