Exemple #1
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            IAzManStorage storage = new SqlAzManStorage("data source=.;Initial Catalog=NetSqlAzManStorage;user id=sa;password="******"Eidos").GetApplication("Feedback");

            frmExportOptions frm = new frmExportOptions();

            frmExport frmwait = new frmExport();
            frmwait.ShowDialog(null, "c:\\netsqlazman.xml", new IAzManExport[] { app }, true, false, true, app.Store.Storage);
        }
 void exportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     frmExportOptions frm = new frmExportOptions();
     DialogResult dr = this.SnapIn.Console.ShowDialog(frm);
     if (dr == DialogResult.OK)
     {
         frmExport frmwait = new frmExport();
         IAzManExport[] objectsToExport = new IAzManExport[this.SelectedNodes.Count];
         for (int i = 0; i < this.SelectedNodes.Count; i++)
         {
             objectsToExport[i] = ((ApplicationScopeNode)this.SelectedNodes[i]).Application;
         }
         frmwait.ShowDialog(e, frm.fileName, objectsToExport, frm.includeSecurityObjects, frm.includeDBUsers, frm.includeAuthorizations, ((ApplicationScopeNode)this.SelectedNodes[0]).Application.Store.Storage);
     }
 }
 void exportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     frmExportOptions frm = new frmExportOptions();
     DialogResult dr = this.SnapIn.Console.ShowDialog(frm);
     if (dr == DialogResult.OK)
     {
         frmExport frmwait = new frmExport();
         frmwait.ShowDialog(e, frm.fileName, this.storage.GetStores(), frm.includeSecurityObjects, frm.includeDBUsers, frm.includeAuthorizations, this.storage);
     }
 }
 void exportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     frmExportOptions frm = new frmExportOptions();
     DialogResult dr = this.SnapIn.Console.ShowDialog(frm);
     if (dr == DialogResult.OK)
     {
         frmExport frmwait = new frmExport();
         IAzManItem[] itemToExport = this.application.GetItems();
         IAzManExport[] toExport = new IAzManExport[itemToExport.Length];
         for (int i = 0; i < itemToExport.Length; i++)
         {
             toExport[i] = itemToExport[i];
         }
         frmwait.ShowDialog(e, frm.fileName, toExport, frm.includeSecurityObjects, frm.includeDBUsers, frm.includeAuthorizations, this.application.Store.Storage);
     }
 }