Beispiel #1
0
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            string   taskId   = ((Button)e.Source).Tag.ToString();
            SyncTask syncTask = SyncTasksManager.GetInstance().SyncTasks.Where(t => t.ID.ToString().Equals(taskId, StringComparison.InvariantCultureIgnoreCase)).FirstOrDefault();

            if (syncTask == null)
            {
                MessageBox.Show("Task not found");
                return;
            }

            SyncCopyListWizardForm syncCopyListWizardForm = new SyncCopyListWizardForm();

            syncCopyListWizardForm.Initialize(syncTask);
            if (syncCopyListWizardForm.ShowDialog(this.ParentWindow, "Data Import Wizard", false, true) == true)
            {
            }
        }
        private void CopyListWizardButton_Click(object sender, RoutedEventArgs e)
        {
            /*
             * Folder selectedObject = ApplicationContext.Current.SPCamlStudio.ServerObjectExplorer.SelectedObject;
             * ISiteSetting siteSetting = ApplicationContext.Current.GetSiteSetting(selectedObject.SiteSettingID);
             * if (siteSetting.SiteSettingType == SiteSettingTypes.SQLServer && selectedObject as SQLDB == null)
             * {
             *  MessageBox.Show("You need to select a Database from server explorer");
             *  return;
             * }
             */

            SyncCopyListWizardForm syncCopyListWizardForm = new SyncCopyListWizardForm();

            //syncCopyListWizardForm.Initialize();
            if (syncCopyListWizardForm.ShowDialog(this.ParentWindow, "Data Import Wizard", false, true) == true)
            {
            }
        }