public ISyncSelectionOption CreateChildSelectableOption(string type, string name) { SelectionOptionInfo info2 = new SelectionOptionInfo { Key = name, OptionType = type }; SelectionOptionInfo info = info2; ISyncSelectionOption option = new SyncSelectionOption(info, this.childOptionList, AllowAutoSelectionFromChildren.Yes); Random random = new Random(10); option.IsSelectedForSync = new bool?(random.Next(10) > 6); return(option); }
public ISyncSelectionOption CreateChildSelectableOption(string type, string name) { SelectionOptionInfo info2 = new SelectionOptionInfo { Key = name, OptionType = type }; SelectionOptionInfo info = info2; ISyncSelectionOption option = new SyncSelectionOption(info, this.childOptionList, AllowAutoSelectionFromChildren.Yes); Random random = new Random(10); option.IsSelectedForSync = new bool?(random.Next(10) > 6); return option; }