private HoodAnalystView GetAnalystViewDialog() { if (view == null) { //create the view if the view does not exist view = new HoodAnalystView(); view.Width = 530; view.Closed += new EventHandler(view_Closed); } return(view); }
void view_Closed(object sender, EventArgs e) { view = null; }