Пример #1
0
        public NumberPicker(CommandContainer command, IGamePackageResolver resolver) : base(command)
        {
            _privateChoose           = new ItemChooserClass <NumberPieceCP>(resolver);
            _privateChoose.ValueList = NumberList;
            MethodInfo method = this.GetPrivateMethod(nameof(ChooseNumberAsync));

            NumberPickedCommand = new ControlCommand(this, method, command);
        }
Пример #2
0
        public ListViewPicker(CommandContainer container, IGamePackageResolver resolver) : base(container)
        {
            _privateChoose           = new ItemChooserClass <ListViewPieceCP>(resolver);
            _privateChoose.ValueList = TextList;
            MethodInfo method = this.GetPrivateMethod(nameof(ProcessClickAsync));

            ItemSelectedCommand = new ControlCommand(this, method, container);
        }