using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CSGBuilder {
    public partial class Intersect : Form {
        public Intersect() {
            InitializeComponent();
        }

        private void Intersect_FormClosing(object sender, FormClosingEventArgs e) {
            if (this.DialogResult == DialogResult.OK) {
                if (cbSolid1.SelectedIndex == -1 || cbSolid2.SelectedIndex == -1) {
                    e.Cancel = true;
                }
            }
        }
    }
}