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

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

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

            return(Task.FromResult(output));
        }
Exemple #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;
 }
Exemple #6
0
 public ExercisesService(IDeletableEntityRepository <Exercise> exercisesRepository, ApplicationDbContext db, IToolsService toolsService)
 {
     this.exercisesRepository = exercisesRepository;
     this.db           = db;
     this.toolsService = toolsService;
 }
Exemple #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;
 }
Exemple #9
0
 public ToolsController(IToolsService toolsService)
 {
     this.toolsService = toolsService;
 }
Exemple #10
0
 public ToolsController(IToolsService toolsService, Cloudinary cloudinary)
 {
     this.toolsService = toolsService;
     this.cloudinary   = cloudinary;
 }
Exemple #11
0
 public Home(IToolsService toolsService)
 {
     _toolsService = toolsService;
 }
Exemple #12
0
 public App(IToolsService toolsService)
 {
     _toolsService = toolsService;
 }