public void InitializeStep([NotNull] WizardArgs wizardArgs) { Assert.ArgumentNotNull(wizardArgs, nameof(wizardArgs)); RoleName.IsEnabled = false; var args = (InstallWizardArgs)wizardArgs; try { var ver = args.Product.TwoVersion.Replace(".", ""); if (ver.Length <= 2) { ver += Safe.Call(() => $"{args.Product.Update}") ?? "0"; } var txt = int.Parse(ver); if (txt >= 900) { RoleName.IsEnabled = true; if (string.IsNullOrEmpty(args.InstallRoles9)) { Standalone.IsChecked = true; } else { var radio = (RadioButton)RoleName.FindName(args.InstallRoles9); Assert.IsNotNull(radio, $"{args.InstallRoles9} is not supported"); radio.IsChecked = true; } } else { foreach (var radio in RoleName.Children.OfType <RadioButton>()) { radio.IsChecked = false; } } } catch (Exception e) { Log.Error(e, "Something is wrong"); } }