Esempio n. 1
0
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            _instructions?.Clear();
            _instructions = null;

            _executionEnvironment?.Dispose();
            _executionEnvironment = null;

            _executor?.Dispose();
            _executor = null;
        }
Esempio n. 2
0
        private void CloseFile()
        {
            _currentFileStream.Close();
            _currentFileName = null;

            _instructions.Clear();
            _instructions = null;

            _executionEnvironment.Dispose();
            _executionEnvironment = null;

            _executor.Dispose();
            _executor = null;

            ResetUi();
        }