private void BtnExport_Click(object sender, EventArgs e) { switch (type) { case FileIO.fileType.skeletalAnimation: if (renderer.CurrentModel == -1) { MessageBox.Show( "A skeleton is necessary to export an Skeletal Animation." + Environment.NewLine + "You must select a model before exporting!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } if (control.CurrentAnimation == -1) { return; } FileExport.export(type, renderer.models, renderer.CurrentModel, control.CurrentAnimation); break; } }
private void BtnExport_Click(object sender, EventArgs e) { FileExport.export(FileIO.fileType.model, renderer.models, ModelList.SelectedIndex); }