private void Next() { using (LogBlock logblock = Log.NotTracing() ? null : new LogBlock(GetType() + "." + System.Reflection.MethodBase.GetCurrentMethod().Name)) { bool mmsError = false; if (IsMaxMessageSize) { if (MaxMessageSize.Length == 0) { mmsError = true; } else { try { int msf = Int32.Parse(MaxMessageSize); } catch (Exception) { mmsError = true; } } if (mmsError) { MessageBox.Show("Please enter an integer value for maximum message size", "Zimbra Migration", MessageBoxButton.OK, MessageBoxImage.Error); return; } } if (isServer && IsPublicFolders) { lb.SelectedIndex = 5; } else { if (isServer) { lb.SelectedIndex = 4; } else { ConfigViewModelUDest configViewModelUDest = ((ConfigViewModelUDest)ViewModelPtrs[(int)ViewType.USRDEST]); UsersViewModel usersViewModel = ((UsersViewModel)ViewModelPtrs[(int)ViewType.USERS]); ScheduleViewModel scheduleViewModel = ((ScheduleViewModel)ViewModelPtrs[(int)ViewType.SCHED]); string name = configViewModelUDest.ZimbraUser; usersViewModel.UsersList.Add(new UsersViewModel(name, "")); scheduleViewModel.DoMigrate(false); } } } }
private void Next() { bool mmsError = false; if (IsMaxMessageSize) { if (MaxMessageSize.Length == 0) { mmsError = true; } else { try { int msf = Int32.Parse(MaxMessageSize); } catch (Exception) { mmsError = true; } } if (mmsError) { MessageBox.Show("Please enter an integer value for maximum message size", "Zimbra Migration", MessageBoxButton.OK, MessageBoxImage.Error); return; } } if (isServer) { lb.SelectedIndex = 4; } else { ConfigViewModelUDest configViewModelUDest = ((ConfigViewModelUDest)ViewModelPtrs[(int)ViewType.USRDEST]); UsersViewModel usersViewModel = ((UsersViewModel)ViewModelPtrs[(int)ViewType.USERS]); ScheduleViewModel scheduleViewModel = ((ScheduleViewModel)ViewModelPtrs[(int)ViewType.SCHED]); string name = configViewModelUDest.ZimbraUser; usersViewModel.UsersList.Add(new UsersViewModel(name, "")); scheduleViewModel.DoMigrate(false); } }