예제 #1
0
 private void btnExport_Click(object sender, EventArgs e)
 {
     using (var wizard = new DataExportWizard(_dbContext))
     {
         wizard.ShowDialog();
     }
 }
예제 #2
0
        public override void UpdateConnection(IOrganizationService newService, ConnectionDetail detail, string actionName, object parameter)
        {
            if (detail != null)
            {
                if (actionName == "SchemaConnection" || actionName == "")
                {
                    SchemaGeneratorWizard.OrganizationService = detail.ServiceClient;
                    SchemaGeneratorWizard.MetadataService     = new MetadataService();
                    SchemaGeneratorWizard.NotificationService = new NotificationService();
                    SchemaGeneratorWizard.ExceptionService    = new ExceptionService();
                    SchemaGeneratorWizard.OnConnectionUpdated(detail.ServiceClient.ConnectedOrgId, detail.ServiceClient.ConnectedOrgFriendlyName);
                }

                if (actionName == "SourceConnection" || actionName == "")
                {
                    DataExportWizard.OrganizationService = detail.ServiceClient;
                    DataExportWizard.OnConnectionUpdated(detail.ServiceClient.ConnectedOrgFriendlyName);
                }

                if (actionName == "TargetConnection" || actionName == "")
                {
                    DataImportWizard.OrganizationService = detail.ServiceClient;
                    DataImportWizard.OnConnectionUpdated(detail.ServiceClient.ConnectedOrgFriendlyName);
                }
            }

            if (actionName == "")
            {
                base.UpdateConnection(newService, detail, actionName, parameter);
            }
        }
예제 #3
0
        private void tsbExport_Click(object sender, EventArgs e)
        {
            try
            {
                using (var d = new DataExportWizard())
                {
                    if (DataFactory != null)
                    {
                        d.Source = new DataConnectionInfo(DatabaseProvider, DataFactory.ConnectionStringManager.ConnectionString);
                    }
                    d.Destination = null;

                    d.OnExecute += new WizardEventHandler(DataExportWizard_OnExecute);
                    d.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                FormUtil.WinException(ex);
                txtQuery.Focus();
            }
        }
예제 #4
0
 private void ToolStripButtonDataExportClick(object sender, EventArgs e)
 {
     DataExportWizard.BringToFront();
 }