static void f_Closing(object sender, CancelEventArgs e) { //ToolStripManager.SaveSettings(ServiceHost.Window.MainForm); //ServiceHost.ToolBar.Save(); IToolsService its = ServiceHost.Tools; if (its != null) { //(its as ToolsService).SaveView(); } IProjectManagerService pms = ServiceHost.Project; if (pms != null) { pms.CloseAll(); } IFileManagerService fms = ServiceHost.File; if (fms != null) { if (!fms.CloseAll()) { e.Cancel = true; return; } } Application.Exit(); }
public AdminController(ISiteService siteService, INotifier notifier, IHtmlLocalizer <AdminController> h, IToolsService toolsService) { _siteService = siteService; _notifier = notifier; _toolsService = toolsService; H = h; }
public SingletonToolsFactory( IToolsService toolsService, IFrameworkPrecedenceService frameworkPrecendenceService, IFrameworkList frameworkList) { _version = toolsService.Version; _toolsService = toolsService; _frameworkPrecendenceService = frameworkPrecendenceService; _frameworkList = frameworkList; }
public Task <IToolsService> GetServiceAsync(string version, CancellationToken token) { IToolsService output = null; if (version == _version) { output = _toolsService; } return(Task.FromResult(output)); }
public TransactionController(ITransactionService transactionService, IStockService stockService, IProductService productService, IMaterialService materialService, IToolsService toolsService) { this.transactionService = transactionService; this.stockService = stockService; this.productService = productService; this.materialService = materialService; this.toolsService = toolsService; }
public ExercisesService(IDeletableEntityRepository <Exercise> exercisesRepository, ApplicationDbContext db, IToolsService toolsService) { this.exercisesRepository = exercisesRepository; this.db = db; this.toolsService = toolsService; }
public UsersController(IUserService userService, IToolsService tools) { this.userService = userService; this.tools = tools; }
public ToolsController(IToolsService toolsService, IUnityTypeService unityTypeService) { this.toolsService = toolsService; this.unityTypeService = unityTypeService; }
public ToolsController(IToolsService toolsService) { this.toolsService = toolsService; }
public ToolsController(IToolsService toolsService, Cloudinary cloudinary) { this.toolsService = toolsService; this.cloudinary = cloudinary; }
public Home(IToolsService toolsService) { _toolsService = toolsService; }
public App(IToolsService toolsService) { _toolsService = toolsService; }