コード例 #1
0
        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);
        }
コード例 #2
0
 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;
 }