private void _OnLoad(object sender, EventArgs e) { BlendReader.Initialize(); var app = BlendReader.GetInstance(); app.SetListener(this); //app.OpenFile("C:/blender/test.blend");// test }
private void _OnDragDrop(object sender, DragEventArgs e) { var fileNames = (string[])e.Data.GetData(DataFormats.FileDrop, false); var app = BlendReader.GetInstance(); if (app.OpenFile(fileNames[0])) { m_toolStripStatusLabel.Text = fileNames[0]; } else { Dialog.ShowError(new BlenderException("Failed to open file")); } }
public static void Initialize() { Debug.Assert(s_app == null); s_app = new BlendReader(); }