Пример #1
0
        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); }
        }
Пример #2
0
        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);
            }
        }