示例#1
0
 private void GetIntroUserMig()
 {
     if (BaseViewModel.isServer)
     {
         for (int i = (TheViews.Count - 1); i > 0; i--)
         {
             TheViews.RemoveAt(i);
         }
         BaseViewModel.isServer = false;
         IsUserMigration        = true;
         IsServerMigration      = false;
         Application.Current.Properties["migrationmode"] = "user";
         AddViews(m_isBrowser);
         if (m_usersViewModel.UsersList.Count > 0)
         {
             m_usersViewModel.UsersList.Clear();
         }
         if (m_scheduleViewModel.SchedList.Count > 0)
         {
             m_scheduleViewModel.SchedList.Clear();
         }
         m_optionsViewModel.OEnableRulesAndOOO = m_configViewModelU.Isprofile;
         m_optionsViewModel.OEnableNext        = !m_scheduleViewModel.IsComplete();
     }
 }
示例#2
0
        private void GetIntroUserMig()
        {
            // "User Migration" radio clicked
            using (LogBlock logblock = Log.NotTracing() ? null : new LogBlock(GetType() + "." + System.Reflection.MethodBase.GetCurrentMethod().Name))
            {
                // Remove existing views
                for (int i = (TheViews.Count - 1); i > 0; i--)
                {
                    TheViews.RemoveAt(i);
                }

                BaseViewModel.isServer  = false;
                BaseViewModel.isDesktop = false;
                Application.Current.Properties["migrationmode"] = "user"; // Not read anywhere - can probably remove

                // Set radio buttons - obsolete?
                rbUserMigration    = true;
                rbServerMigration  = false;
                rbDesktopMigration = false;

                // Set up following pages for this mig type
                AddViews(m_isBrowser);

                if (m_usersViewModel.UsersList.Count > 0)
                {
                    m_usersViewModel.UsersList.Clear();
                }

                if (m_scheduleViewModel.SchedList.Count > 0)
                {
                    m_scheduleViewModel.SchedList.Clear();
                }

                m_optionsViewModel.OEnableRulesAndOOO = m_configViewModelU.Isprofile;

                // BUG 104613
                m_optionsViewModel.IsPublicFolders = false; // ... turns off PF mig
                m_optionsViewModel.OEnablePF       = false; // ... disables control to prevent user turning it back on

                m_optionsViewModel.OEnableNext = !m_scheduleViewModel.IsComplete();
            }
        }