private void TryApplyProcessUIPolicy_Click(object sender, RoutedEventArgs e) { try { bool result = ProtectionPolicyManager.TryApplyProcessUIPolicy(Scenario1.m_EnterpriseIdentity); rootPage.NotifyUser("TryApplyProcessUIPolicy returned " + result, NotifyType.ErrorMessage); } catch (Exception ex) { rootPage.NotifyUser("Exception thrown:" + ex.ToString(), NotifyType.ErrorMessage); } }
private void TryApplyProcessUIPolicy_Click(object sender, RoutedEventArgs e) { bool result = ProtectionPolicyManager.TryApplyProcessUIPolicy(Scenario1.m_enterpriseId); rootPage.NotifyUser("TryApplyProcessUIPolicy returned " + result, NotifyType.StatusMessage); }