private void btnShowNextLotData_Click(object sender, EventArgs e) { if (nextLotData == null) { nextLotData = new NextLotData(); nextLotData.WindowClosed += NextLotDataClosed; nextLotData.ApplyClicked += NextLotDataApplyClicked; nextLotData.Show(); } else { nextLotData.BringToFront(); } }
private void NextLotDataClosed() { nextLotData = null; }