コード例 #1
0
        /// <summary>
        /// UpdateDetails
        /// </summary>
        public void UpdateDetails()
        {
            MigrationWizard wizard = (MigrationWizard)this.Parent;

            this.serverAddress.Text = wizard.MigrationIdentityPage.DomainName;
            this.location.Text      = wizard.MigrationServerPage.HomeLocation;
            if (wizard.MigrationServerPage.MigrationOption)
            {
                this.migrationOption.Text = Resource.GetString("MigrateNRemove");                //"Remove from 2.x domain";
            }
            else
            {
                this.migrationOption.Text = Resource.GetString("MigrateNCopy");                //"Create a copy of the folder and connect to 3.x to domain";
            }
            this.security.Text = "";
            if (wizard.MigrationIdentityPage.Encrypion)
            {
                this.security.Text = Resource.GetString("EncryptedText");                //"Encrypt the folder";
                if (wizard.MigrationIdentityPage.SSL)
                {
                    this.security.Text += " and use secure channel for data transfer";
                }
            }
            else if (wizard.MigrationIdentityPage.SSL)
            {
                this.security.Text = Resource.GetString("SharableText");                //"Use secure channel for data transfer";
            }
            else
            {
                this.security.Text = "None";
            }
        }
コード例 #2
0
        /// <summary>
        /// Validate page
        /// </summary>
        /// <param name="currentIndex">Current Index</param>
        /// <returns></returns>
        internal override int ValidatePage(int currentIndex)
        {
            Thread thrd = new Thread(new ThreadStart(ShowWaitDialog));

            thrd.Name = "Migration Wz Wait Dialog";
            thrd.Start();
            wizard = (MigrationWizard)this.Parent;
            bool result = wizard.MigrateFolder();

            CloseWaitDialog();

            if (!result)
            {
                // Unable to migrate the folder
                return(currentIndex);
            }
            return(base.ValidatePage(currentIndex));
        }
コード例 #3
0
 private void btnMigrate_Click(object sender, System.EventArgs e)
 {
     ListViewItem lvi = this.listView1.SelectedItems[0];
     if (lvi == null)
         return;
        bool encr = false;
        if( lvi.SubItems[2].Text == Resource.GetString("Encrypted"))
     encr = true;
     if (this.Merge == true)
     {
         this.iFolderLocation = lvi.SubItems[1].Text;
         this.UserName = lvi.SubItems[0].Text;
         DirectoryInfo dir = new DirectoryInfo(this.iFolderLocation);
         if (dir.Exists == false)
         {
             System.Resources.ResourceManager resManager = new System.Resources.ResourceManager(typeof(GlobalProperties));
             MyMessageBox mmb = new MyMessageBox(resManager.GetString("FolderDoesNotExistError"), resManager.GetString("FolderDoesNotExistErrorTitle"), resManager.GetString("FolderDoesNotExistErrorDesc"), MyMessageBoxButtons.OK, MyMessageBoxIcon.Error);
             mmb.ShowDialog();
             this.iFolderLocation = null;
         }
         else if (dir.Exists && dir.Name.Equals(this.iFolderName, StringComparison.CurrentCultureIgnoreCase) == false)
         {
             MyMessageBox mmb = new MyMessageBox(Resource.GetString("MigrationRenamePrompt.Text"), Resource.GetString("MigrationAlert"), "", MyMessageBoxButtons.YesNo, MyMessageBoxIcon.Question);
             DialogResult res = mmb.ShowDialog();
             if (res == DialogResult.Yes)
             {
                 try
                 {
                         dir.MoveTo(Path.Combine(dir.Parent.FullName, this.iFolderName));
                         this.iFolderLocation = Path.Combine(dir.Parent.FullName, this.iFolderName);
                 }
                 catch (Exception ex)
                 {
                     MyMessageBox mmb1 = new MyMessageBox("Unable to rename the selected location.", "Migration Alert", ex.Message, MyMessageBoxButtons.OK, MyMessageBoxIcon.Error);
                     mmb1.ShowDialog();
                     this.iFolderLocation = null;
                     this.UserName = null;
                     return;
                 }
             }
             else
             {
                 this.iFolderLocation = null;
                 this.UserName = null;
                 return;
             }
         }
         else if (dir.Name.Equals(this.iFolderName, StringComparison.CurrentCultureIgnoreCase))
         {
             this.iFolderLocation = Path.Combine(dir.Parent.FullName, this.iFolderName);
         }
         this.Dispose(true);
         return;
     }
        MigrationWizard migrationWizard = new MigrationWizard( lvi.SubItems[0].Text, lvi.SubItems[1].Text, encr, ifWebService, this.simiasWebService);
        if ( migrationWizard.ShowDialog() == DialogResult.OK )
        {
        }
        migrationWizard.Dispose();
        AddMigrationDetails();
 }
コード例 #4
0
 internal override int ValidatePage(int currentIndex)
 {
     Thread thrd = new Thread(new ThreadStart(ShowWaitDialog));
     thrd.Name = "Migration Wz Wait Dialog";
        thrd.Start();
        wizard = (MigrationWizard)this.Parent;
        bool result = wizard.MigrateFolder();
        CloseWaitDialog();
        if ( !result )
        {
     return currentIndex;
        }
        return base.ValidatePage (currentIndex);
 }
コード例 #5
0
        /// <summary>
        /// Validate Page
        /// </summary>
        /// <param name="currentIndex">Current index</param>
        internal override int ValidatePage(int currentIndex)
        {
            MigrationWizard wiz = (MigrationWizard)this.Parent;

            return(base.ValidatePage(currentIndex));
        }