private void stopIo_Click(object sender, EventArgs e) { inputOutputdata.StopReading(); startIo.Enabled = true; stopIo.Enabled = false; changeWayButton.Enabled = true; generateFileButton.Enabled = true; }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { inputOutputdata?.StopReading(); }