public Dashboard() { registry = new RepositoryRegistry(); registry.Configure(); accountRepository = RepositoryFactory.GetObject <AccountRepository>(RepositoryId.ACCOUNT_REPOSITORY); cashFlowRepository = RepositoryFactory.GetObject <CashFlowRepository>(RepositoryId.CASHFLOW_REPOSITORY); chartRepository = RepositoryFactory.GetObject <ChartRepository>(RepositoryId.CHART_REPOSITORY); settingRepository = RepositoryFactory.GetObject <SettingRepository>(RepositoryId.SETTING_REPOSITORY); InitializeComponent(); }
public static void AddRegistry(IRegistry registry) { registry.Configure(); }