void MaterialItem_Click(object sender, EventArgs e) { Form editor; switch (SceneManager.Current.CurrentGame) { case ContextGame.Carmageddon_Reincarnation: editor = new frmReincarnationMaterialEditor(this, m); break; default: editor = new frmMaterialEditor(this, m); break; } editor.ShowDialog(this.ParentForm); if (SngClick != null) { SngClick(this, e); } }
void MaterialItem_Click(object sender, EventArgs e) { Form editor; switch (SceneManager.Current.CurrentGame) { case ContextGame.Carmageddon_Reincarnation: editor = new frmReincarnationMaterialEditor(this, m); break; default: editor = new frmMaterialEditor(this, m); break; } editor.ShowDialog(this.ParentForm); if (SngClick != null) { SngClick(this, e); } }