コード例 #1
0
        public bool RequestElevation(UnauthorizedAccessException accessException, IComponent component)
        {
            if (IsElevated())
            {
                return(false);
            }
            var data = new ElevationRequestData(accessException, component);

            OnElevationRequested(data);
            return(true);
        }
コード例 #2
0
 protected virtual void OnElevationRequested(ElevationRequestData data)
 {
     ElevationRequested?.Invoke(this, data);
 }