コード例 #1
0
        protected override void DoValidate()
        {
            var currentProfileName = View.SelectedProfile;

            if (string.IsNullOrWhiteSpace(currentProfileName))
            {
                throw new WizardStepException("No profile is selected");
            }
            Model.CurrentProfile = _profileManager.Get(View.SelectedProfile);
        }
コード例 #2
0
 public Profile GetProfile(string profileName)
 {
     return(_profileManager.Get(profileName));
 }