public MainFormInteractor(IServiceProvider services) { this.dlgFactory = services.RequireService<IDialogFactory>(); this.mru = new MruList(MaxMruItems); this.mru.Load(MruListFile); this.sc = services.RequireService<IServiceContainer>(); this.nextPage = new Dictionary<IPhasePageInteractor, IPhasePageInteractor>(); }
public TextBoxHelper(bool optionalPathButton, bool isPath = false, IDialogFactory factory = null) { if(optionalPathButton && factory == null) throw new ArgumentNullException(nameof(factory)); _optionalPathButton = optionalPathButton; _isPath = isPath; _factory = factory; }
public ShellViewModel(IWindowManager windowManager, IDialogFactory dialogFactory) { this.DisplayName = "Hello Dialog"; this.windowManager = windowManager; this.dialogFactory = dialogFactory; this.NameString = "Click the button to show the dialog"; }
public AGSGameFactory(IGraphicsFactory graphics, IInventoryFactory inventory, IUIFactory ui, IRoomFactory room, IOutfitFactory outfit, IObjectFactory obj, IDialogFactory dialog, IAudioFactory sound) { Graphics = graphics; Inventory = inventory; UI = ui; Room = room; Outfit = outfit; Object = obj; Dialog = dialog; Sound = sound; }
public ReturnItemController(ReturnItemModel model, IFetchItems fetchItems, ISheet sheet, IUpdateQuantity updateQuantity, IDialogFactory dialogFactory) : base(model, sheet) { _model = model; _fetchItems = fetchItems; _updateQuantity = updateQuantity; _dialogFactory = dialogFactory; SetShifter(); }
public void Setup() { repository = new MockRepository(); interactor = repository.Stub<DisassemblyViewInteractor>(); sc = new ServiceContainer(); uiSvc = repository.DynamicMock<IDecompilerShellUiService>(); dcSvc = repository.Stub<IDecompilerService>(); dlgFactory = repository.DynamicMock<IDialogFactory>(); sc.AddService<IDecompilerShellUiService>(uiSvc); sc.AddService<IDecompilerService>(dcSvc); sc.AddService<IDialogFactory>(dlgFactory); }
public InventoryCountController(InventoryCountModel model, ISheet sheet, IDialogFactory dialogFactory, IUpdateQuantity updateQuantity, IFetchItems fetchItems) : base(model, sheet) { _model = model; _dialogFactory = dialogFactory; _updateQuantity = updateQuantity; _fetchItems = fetchItems; model.CountRequest = CountHandler; }
public UserConfigController(UserConfigModel model, ISheet sheet, IFetchUsers users, IChangePassword password, IDialogFactory dialogFactory) : base(model, sheet) { _model = model; _users = users; _password = password; _dialogFactory = dialogFactory; model.HandleTransactionReport = ReportHandler; model.HandlePasswordReset = ResetPasswordHandler; model.HandleChangeAccess = ChangeAccessHandler; }
public AdjustController(AdjustReorderModel model, ISheet sheet, IRepository<item> items, IFetchItems fetchItems, ISave save, IDialogFactory dialogFactory) : base(model, sheet) { _model = model; _items = items; _fetchItems = fetchItems; _save = save; _dialogFactory = dialogFactory; _model.AdjustmentRequest = PrepareAdjustment; }
public RestockController(RestockModel model, ISheet sheet, IFetchItems fetchItems, IUpdateQuantity update, IRepository<restockhistory> restock, IDialogFactory dialogFactory) : base(model, sheet) { _model = model; _fetchItems = fetchItems; _update = update; _restock = restock; _dialogFactory = dialogFactory; _model.QuantityRequest = RequestForQuantity; }
public void Setup() { mr = new MockRepository(); sp = new ServiceContainer(); uiSvc = mr.StrictMock<IDecompilerShellUiService>(); uiPrefsSvc = mr.StrictMock<IUiPreferencesService>(); dlgFactory = mr.StrictMock<IDialogFactory>(); uiSvc.Stub(u => u.GetContextMenu(MenuIds.CtxMemoryControl)).Return(new ContextMenu()); uiSvc.Stub(u => u.GetContextMenu(MenuIds.CtxDisassembler)).Return(new ContextMenu()); uiSvc.Replay(); uiPrefsSvc.Stub(u => u.Styles).Return(new Dictionary<string, UiStyle>()); uiPrefsSvc.Replay(); sp.AddService(typeof(IDecompilerShellUiService), uiSvc); sp.AddService(typeof(IDialogFactory), dlgFactory); sp.AddService(typeof(IUiPreferencesService), uiPrefsSvc); addrBase = Address.Ptr32(0x1000); }
public DialogService(IDialogFactory dialogFactory) { _dialogFactory = dialogFactory; }
public Form1(IDialogFactory dialogFactory) { _dialogFactory = dialogFactory; InitializeComponent(); }