using System; using System.Windows.Forms; using GeomaticTechnologies.Security.Apm; namespace NewApmDemo { public partial class Demo : Form { private ApmUserAuthorisation _apm; public Demo() { InitializeComponent(); } private void btnApm_Click(object sender, EventArgs e) { _apm = IoC.GetApmGood(txtUserId.Text); MessageBox.Show("Initialised"); } private void btnT1Ts45_Click(object sender, EventArgs e) { MessageBox.Show(_apm.Validate(1, 45).ToString()); // Returns False. } private void btnTierAspPageTierSetEditGmu_Click(object sender, EventArgs e) { MessageBox.Show(_apm.Validate("ASP Page", "EditGMU.aspx").ToString()); // Returns True. } } }