private void btnEditSamplers_Click(object sender, EventArgs e) { if (listViewCustom1.SelectedItems.Count > 0) { int index = listViewCustom1.SelectedIndices[0]; TexPatternInfoEditor editor = new TexPatternInfoEditor(); editor.LoadAnim(activeAnim, activeAnim.Materials[index]); if (editor.ShowDialog() == DialogResult.OK) { } } }
private void stButton1_Click(object sender, EventArgs e) { if (materialCB.SelectedIndex < 0) { return; } TexPatternInfoEditor editor = new TexPatternInfoEditor(); editor.LoadAnim(ActiveMaterialAnim.Materials[materialCB.SelectedIndex]); if (editor.ShowDialog() == DialogResult.OK) { } }