public void LoadData(CondominioDTO condominio, EsercizioDTO esercizio) { _condominio = condominio; _esercizio = esercizio; _modelloService = ResolveComponent<IModelloContabileService>(); if(esercizio != null) modelliBindingSource.DataSource = _modelloService.GetByEsercizio(_esercizio); else modelliBindingSource.DataSource = _modelloService.GetByCondominio(_condominio); }
public SpesaService(IMovimentiContabiliService movimentoContabileService, IRipartizioneSpeseService ripartizioneSpeseService, IProtocolloService protocolloService, IArchiviazioneOtticaService archiviazioneService, IPianoContiService pianoContiService, IPagamentoService pagamentoService, IRitenutaAccontoService ritenutaService, IModelloContabileService modelloContabileService, IDaoFactory daofactory, IPersistenceContext persistenceContext) { _daoFactory = daofactory; _movimentoContabileService = movimentoContabileService; _ripartizioneSpeseService = ripartizioneSpeseService; _protocolloService = protocolloService; _archiviazioneService = archiviazioneService; _pianoContiService = pianoContiService; _pagamentoService = pagamentoService; _ritenutaService = ritenutaService; _modelloContabileService = modelloContabileService; _persistenceContext = persistenceContext; }
private IModelloContabileService getModelloContabileService() { return _modelloService ?? (_modelloService = ResolveComponent<IModelloContabileService>()); }
private void inizializza() { _container = new WindsorContainer(new XmlInterpreter()); _modelliContabiliService = (IModelloContabileService)_container[typeof(IModelloContabileService)]; _formLayoutService = (IFormLayoutsService)_container[typeof(IFormLayoutsService)]; base.persistWindowComponent1.Enable = false; // Set the ExplorerBar's NavigationPaneExpansionMode property to 'OnButtonClickOrSizeChanged', // so the navigation pane can be expanded/collapsed by the end user both when the exapansion // button is clicked and when the control's width crosses the threshold defined by the // NavigationPaneExpansionThreshold property this.ultraExplorerBar1.NavigationPaneExpansionMode = NavigationPaneExpansionMode.OnButtonClickOrSizeChanged; // Set the ExplorerBar's NavigationPaneExpansionThreshold property to // the same value as the ImageSizeLarge.Width property; this will cause // the navigation pane's expanded state to change when the width crosses // this threshold. this.ultraExplorerBar1.NavigationPaneExpansionThreshold = this.ultraExplorerBar1.ImageSizeLarge.Width; // Set the NavigationPaneCollapsedGroupAreaText property for each group, // so that the group's name appears in the collapsed group area when // the navigation pane is collapsed, instead of "Navigation Pane". for (int i = 0; i < this.ultraExplorerBar1.Groups.Count; i++) { UltraExplorerBarGroup group = this.ultraExplorerBar1.Groups[i]; group.Settings.NavigationPaneCollapsedGroupAreaText = group.Text; } }
private void inizializza() { backgroundWorkerContabilita.DoWork +=backgroundWorkerContabilitaDoWork; backgroundWorkerLoadDati.DoWork += backgroundWorkerLoadDatiDoWork; backgroundWorkerLoadDati.RunWorkerCompleted += backgroundWorkerLoadDatiRunWorkerCompleted; ultraToolbarsManager1.ToolClick += ultraToolbarsManager1ToolClick; ultraToolbarsManager1.GalleryToolItemClick += ultraToolbarsManager1GalleryToolItemClick; persistWindowComponent1.UserName = Login.Instance.CurrentLogin().LoginName; _menuService = Library.IoC.IoC.Resolve<IMenuService>(); _opzioniService = Library.IoC.IoC.Resolve<IOpzioniService>(); _modelliContabiliService = Library.IoC.IoC.Resolve<IModelloContabileService>(); aziendeAbilitateUC1.SelectAzienda += aziendeAbilitateUC1SelectAzienda; ultraDockManager1.AfterHideFlyout += ultraDockManager1AfterHideFlyout; ultraDockManager1.SaveSettings = true; ultraDockManager1.SaveSettingsFormat = SaveSettingsFormat.Xml; _helpProvider.HelpNamespace = @"sfera.chm"; Text = @"Sfera - " + Login.Instance.CurrentLogin().NomeAzienda; }