Beispiel #1
0
 protected override void OnShown(EventArgs e)
 {
     base.OnShown(e);
     _dialog.InvokeOnShown();
     if (_elevated != null && !Utility.IsRunningWithAdministratorRights)
     {
         if (_elevated.RequireElevation)
         {
             if (_btnOK.Visible)
             {
                 _btnOK.ShowUACShield();
             }
             if (_btnApply.Visible)
             {
                 _btnApply.ShowUACShield();
             }
         }
         _elevated.RequireElevationChanged += OnRequireElevationExecutionChanged;
     }
 }