internal EditRepository(Repository repository = null) { _suppliedRepository = repository; InitializeComponent(); ApplyRepository(); }