private void RestoreState() { InitInterruptEvents(); Init(); // TODO: state of the reset events FreeState(); }