Files
PCK-Studio/MinecraftUSkinEditor/Forms/Testx-12.cs
2021-08-30 14:28:40 -04:00

47 lines
1.2 KiB
C#

using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PckStudio.Models;
namespace PckStudio.Forms
{
public partial class Testx_12 : Form
{
public Testx_12()
{
InitializeComponent();
foreach (ModelBase modelBase in this.models)
{
modelBase.Updated += this.model_Updated;
}
}
private void model_Updated(object sender, EventArgs e)
{
this.minecraftModelView1.Model = (sender as ModelBase);
}
private void Testx_12_Load(object sender, EventArgs e)
{
PckStudio.Classes.CSM.TryParse(File.ReadAllText(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\export.CSM"), minecraftModelView1);
//ModelBase modelBase = models[0];
//this.minecraftModelView1.Model = modelBase;
//this.minecraftModelView1.Invalidate();
}
private ModelBase[] models = new ModelBase[]
{
new CharacterModel()
};
}
}