private void buttonFScruiser_Click(object sender, EventArgs e) { CreateProduction pDlg = new CreateProduction(this); pDlg.ShowDialog(); if(pDlg.rDAL != null) pDlg.rDAL.Dispose(); if (pDlg.fsDAL != null) pDlg.fsDAL.Dispose(); }
private void buttonFScruiser_Click(object sender, EventArgs e) { // check for errors if (checkPlotSz()) return; CreateProduction pDlg = new CreateProduction(this); pDlg.ShowDialog(); if(pDlg.rDAL != null) pDlg.rDAL.Dispose(); if (pDlg.fsDAL != null) pDlg.fsDAL.Dispose(); }