コード例 #1
0
ファイル: DropdownScreen.cs プロジェクト: dblom90/MenuBuddy
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="widget"></param>
 public DropdownScreen(IDropdown <T> widget) : base("Dropdown")
 {
     TransitionObject   = new WipeTransitionObject(TransitionWipeType.None);
     Transition.OnTime  = 0f;
     Transition.OffTime = 0f;
     DropdownWidget     = widget;
     CoverOtherScreens  = false;
 }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="imageSourceBase">
        /// A string representing the base image source.
        /// </param>
        /// <param name="dropdown">
        /// An item that is to be represented by this control.
        /// </param>
        public DropdownVM(string imageSourceBase, IDropdown dropdown)
        {
            _dropdown        = dropdown ?? throw new ArgumentNullException(nameof(dropdown));
            _imageSourceBase = imageSourceBase ??
                               throw new ArgumentNullException(nameof(imageSourceBase));

            _dropdown.PropertyChanged += OnDropdownChanged;
        }
コード例 #3
0
 public ProductController(IUnitOfWork unitOfWork, Resource localizer, IDropdown dropdown,
                          UserManager <ApplicationUser> userManager, INotificationService notification, IMSContext context)
 {
     _unitOfWork   = unitOfWork;
     _localizer    = localizer;
     _dropdown     = dropdown;
     _userManager  = userManager;
     _notification = notification;
     _context      = context;
 }
コード例 #4
0
ファイル: DropdownItem.cs プロジェクト: dblom90/MenuBuddy
        public DropdownItem(T item, IDropdown <T> owner)
        {
            Item      = item;
            Owner     = owner;
            Clickable = false;

            OnClick += ((obj, e) =>
            {
                Owner.SelectedDropdownItem = this;
            });
        }
コード例 #5
0
ファイル: DropdownVM.cs プロジェクト: jimfasoline/OpenTracker
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="undoRedoManager">
        /// The undo/redo manager.
        /// </param>
        /// <param name="undoableFactory">
        /// The factory for creating undoable actions.
        /// </param>
        /// <param name="imageSourceBase">
        /// A string representing the base image source.
        /// </param>
        /// <param name="dropdown">
        /// An item that is to be represented by this control.
        /// </param>
        public DropdownVM(
            IUndoRedoManager undoRedoManager, IUndoableFactory undoableFactory, IDropdown dropdown,
            string imageSourceBase)
        {
            _undoRedoManager = undoRedoManager;
            _undoableFactory = undoableFactory;

            _dropdown        = dropdown;
            _imageSourceBase = imageSourceBase;

            HandleClick = ReactiveCommand.Create <PointerReleasedEventArgs>(HandleClickImpl);

            _dropdown.PropertyChanged += OnDropdownChanged;
        }
コード例 #6
0
 /// <summary>
 /// Returns a new uncheck dropdown action.
 /// </summary>
 /// <param name="dropdown">
 /// The dropdown to be unchecked.
 /// </param>
 /// <returns>
 /// A new uncheck dropdown action.
 /// </returns>
 public IUndoable GetUncheckDropdown(IDropdown dropdown)
 {
     return(_uncheckDropdownFactory(dropdown));
 }
コード例 #7
0
 public RegijeController(DatabaseContext db, IDropdown dd, IHttpContextAccessor httpContext)
 {
     this.db          = db;
     this.dd          = dd;
     this.httpContext = httpContext;
 }
コード例 #8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dropdown">
 /// The dropdown to be checked.
 /// </param>
 public UncheckDropdown(IDropdown dropdown)
 {
     _dropdown = dropdown;
 }
 public KorisniciController(DatabaseContext db, IDropdown dropdown, IEmailSender emailSender)
 {
     this.db          = db;
     this.dropdown    = dropdown;
     this.emailSender = emailSender;
 }
コード例 #10
0
 public LandingPage(IElement element, IDropdown dropdown)
 {
     this.element  = element;
     this.dropdown = dropdown;
 }
コード例 #11
0
 public ExportController(IUnitOfWork unitOfWork, IMapper mapper, IDropdown dropdown)
 {
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
     _dropdown   = dropdown;
 }
コード例 #12
0
ファイル: DropdownItem.cs プロジェクト: dblom90/MenuBuddy
 public DropdownItem(DropdownItem <T> inst) : base(inst)
 {
     Item  = inst.Item;
     Owner = inst.Owner;
 }
コード例 #13
0
 public GradoviController(DatabaseContext db, IDropdown dd)
 {
     this.db = db;
     this.dd = dd;
 }
 public InventarController(DatabaseContext db, IDropdown dropdown, IHttpContextAccessor http)
 {
     this.db       = db;
     this.dropdown = dropdown;
     this.http     = http;
 }
コード例 #15
0
 public RadniciController(DatabaseContext db, IDropdown dropdown, IHttpContextAccessor context)
 {
     this.db       = db;
     this.dropdown = dropdown;
     this.context  = context;
 }
コード例 #16
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dropdown">
 /// The dropdown to be checked.
 /// </param>
 public CheckDropdown(IDropdown dropdown)
 {
     _dropdown = dropdown;
 }
コード例 #17
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dropdown">
 /// The dropdown to be checked.
 /// </param>
 public CheckDropdown(IDropdown dropdown)
 {
     _dropdown = dropdown ?? throw new ArgumentNullException(nameof(dropdown));
 }