private void _relocateprogrammodule() { // force automation modules regeneration _homegenie._modules_refresh_programs(); // try { _programmodule = _homegenie.Modules.Find(rm => rm.Domain == _myprogramdomain && rm.Address == _myprogramid.ToString()); } catch (Exception ex) { HomeGenieService.LogEvent(_myprogramdomain, _myprogramid.ToString(), ex.Message, "Exception.StackTrace", ex.StackTrace); } }