public GestioneQuoteInvestitoriViewModel(IRegistryServices registryServices, IManagerLiquidAssetServices managerLiquidServices) { _registryServices = registryServices ?? throw new ArgumentNullException("Services in Manager Portfolio Movement View Model"); _managerLiquidServices = managerLiquidServices ?? throw new ArgumentNullException("Liquid Asset Services in Manager Portfolio Movement View Model"); Init(); }
public MainWindowViewModel() { string versione = ""; try { versione = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); Assembly.GetExecutingAssembly().GetName().Version = ApplicationDeployment.CurrentDeployment.CurrentVersion; } catch { versione = Assembly.GetExecutingAssembly().GetName().Version.ToString(); } Titolo = string.Format("DAF-C Gestione Finanza ({0})", versione); _DafConnection = new DAFconnection(); _registryServices = new RegistryService(_DafConnection); _managerLiquidServices = new ManagerLiquidAssetServices(_DafConnection); _managerReportServices = new ManagerReportServices(_DafConnection); OnClickOpenGestioni = new CommandHandler(OpenGestioni); OnClickOpenConti = new CommandHandler(OpenConti); OnClickOpenAziende = new CommandHandler(OpenAziende); OnClickOpenTipologiaTitoli = new CommandHandler(OpenTipologiaTitoli); OnClickOpenValute = new CommandHandler(OpenValute); OnClickOpenSchedaTitoli = new CommandHandler(OpenSchedaTitoli); OnClickOpenMovimenti = new CommandHandler(OpenMovimenti); OnClickOpenQuoteInvestitori = new CommandHandler(OpenQuoteInvestitori); OnClickPortafoglioTitoli = new CommandHandler(PortafoglioTitoli); OnClickOpenContoCorrente = new CommandHandler(OpenContoCorrente); OnClickManagerReports = new CommandHandler(OpenReports); }
public ManagerReportsViewModel(IRegistryServices registryServices, IManagerReportServices managerReportServices, IManagerLiquidAssetServices managerLiquidAssetServices) { _services = registryServices ?? throw new ArgumentNullException("ManagerReportsViewModel with no registry services"); _reportServices = managerReportServices ?? throw new ArgumentNullException("ManagerReportsViewModel with no report services"); _assetServices = managerLiquidAssetServices ?? throw new ArgumentNullException("ManagerLiquidAssetServices"); CloseMeCommand = new CommandHandler(CloseMe); ViewCommand = new CommandHandler(ViewReport, CanDoReport); ClearCommand = new CommandHandler(ClearReport, CanClearReport); DownloadCommand = new CommandHandler(ExportReport, CanExportReport); SetUpViewModel(); }
public GestioneContoCorrenteViewModel(IRegistryServices registryServices, IManagerLiquidAssetServices managerLiquidServices) { _registryServices = registryServices ?? throw new ArgumentNullException("Registry Services in Gestione Conto Corrente"); _liquidAssetServices = managerLiquidServices ?? throw new ArgumentNullException("Registry Services in Gestione Conto Corrente"); CloseMeCommand = new CommandHandler(CloseMe); InsertCommand = new CommandHandler(SaveCommand, CanSave); ModifyCommand = new CommandHandler(UpdateCommand, CanModify); EraseCommand = new CommandHandler(DeleteCommand, CanModify); ClearCommand = new CommandHandler(CleanCommand); try { SetUpData(); Init(); } catch (Exception err) { MessageBox.Show("Errore nella richiesta dei dati." + Environment.NewLine + err.Message, "DAF-C Quote Investitori"); } }