Esempio n. 1
0
 private void btnCheckAccessTest_Click(object sender, EventArgs e)
 {
     //IAzManStorage storage = new SqlAzManStorage("data source=.;Initial Catalog=NetSqlAzManStorage;Integrated Security = SSPI;");
     //List<KeyValuePair<string, string>> attributes;
     //var auth = storage.CheckAccess("AET Authorization Store", "Trading Hub", "Create Deal", WindowsIdentity.GetCurrent(), DateTime.Now, false, out attributes);
     //return;
     frmCheckAccessTest frm = new frmCheckAccessTest();
     IAzManStorage storage = new SqlAzManStorage("data source=(local);Initial Catalog=NetSqlAzManStorage;Integrated Security = SSPI;");
     //IAzManStore store = storage.GetStore("Sistel-1Sez");
     //frm.application = store.GetApplication("Perseo.Net");
     IAzManStore store = storage.GetStore("Eidos");
     frm.application = store.GetApplication("DB persone");
     frm.ShowDialog();
 }
 void checkAccessTestAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     frmCheckAccessTest frm = new frmCheckAccessTest();
     frm.application = this.application;
     this.SnapIn.Console.ShowDialog(frm);
 }