public LicenseController() { OnCheckKey += new GotKeyHandle(BaseController_OnCheckKey); }
public void Register() { GotKeyHandle handle = new GotKeyHandle(GotKey); OnGotKey += handle; try { RegisterOverForm(); } catch (Exception ex) { Messenger.ShowError(MsgsBase.Res.Error_registering_N, ex); } finally { OnGotKey -= handle; } }