public bool RequestElevation(UnauthorizedAccessException accessException, IComponent component) { if (IsElevated()) { return(false); } var data = new ElevationRequestData(accessException, component); OnElevationRequested(data); return(true); }
protected virtual void OnElevationRequested(ElevationRequestData data) { ElevationRequested?.Invoke(this, data); }