Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public AdminController(ISiteService siteService, INotifier notifier, IHtmlLocalizer <AdminController> h, IToolsService toolsService)
        {
            _siteService  = siteService;
            _notifier     = notifier;
            _toolsService = toolsService;

            H = h;
        }
Exemplo n.º 3
0
 public SingletonToolsFactory(
     IToolsService toolsService,
     IFrameworkPrecedenceService frameworkPrecendenceService,
     IFrameworkList frameworkList)
 {
     _version      = toolsService.Version;
     _toolsService = toolsService;
     _frameworkPrecendenceService = frameworkPrecendenceService;
     _frameworkList = frameworkList;
 }
Exemplo n.º 4
0
        public Task <IToolsService> GetServiceAsync(string version, CancellationToken token)
        {
            IToolsService output = null;

            if (version == _version)
            {
                output = _toolsService;
            }

            return(Task.FromResult(output));
        }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 public ExercisesService(IDeletableEntityRepository <Exercise> exercisesRepository, ApplicationDbContext db, IToolsService toolsService)
 {
     this.exercisesRepository = exercisesRepository;
     this.db           = db;
     this.toolsService = toolsService;
 }
Exemplo n.º 7
0
 public UsersController(IUserService userService, IToolsService tools)
 {
     this.userService = userService;
     this.tools       = tools;
 }
 public ToolsController(IToolsService toolsService,
                        IUnityTypeService unityTypeService)
 {
     this.toolsService     = toolsService;
     this.unityTypeService = unityTypeService;
 }
Exemplo n.º 9
0
 public ToolsController(IToolsService toolsService)
 {
     this.toolsService = toolsService;
 }
Exemplo n.º 10
0
 public ToolsController(IToolsService toolsService, Cloudinary cloudinary)
 {
     this.toolsService = toolsService;
     this.cloudinary   = cloudinary;
 }
Exemplo n.º 11
0
 public Home(IToolsService toolsService)
 {
     _toolsService = toolsService;
 }
Exemplo n.º 12
0
 public App(IToolsService toolsService)
 {
     _toolsService = toolsService;
 }