public InitDialog(IGitRepositoryProvider gitRepositoryProvider) { Verify.Argument.IsNotNull(gitRepositoryProvider, nameof(gitRepositoryProvider)); GitRepositoryProvider = gitRepositoryProvider; InitializeComponent(); Localize(); var inputs = new IUserInputSource[] { RepositoryPath = new TextBoxInputSource(_txtPath), Bare = new CheckBoxInputSource(_chkBare), UseCustomTemplate = new CheckBoxInputSource(_chkUseTemplate), Template = new TextBoxInputSource(_txtTemplate), }; ErrorNotifier = new UserInputErrorNotifier(NotificationService, inputs); GitterApplication.FontManager.InputFont.Apply(_txtPath, _txtTemplate); _controller = new InitController(gitRepositoryProvider) { View = this }; }
public InitDialog(IGitRepositoryProvider gitRepositoryProvider) { Verify.Argument.IsNotNull(gitRepositoryProvider, "gitRepositoryProvider"); _gitRepositoryProvider = gitRepositoryProvider; InitializeComponent(); Localize(); var inputs = new IUserInputSource[] { _repositoryPathInput = new TextBoxInputSource(_txtPath), _bareInput = new CheckBoxInputSource(_chkBare), _useCustomTemplateInput = new CheckBoxInputSource(_chkUseTemplate), _templateInput = new TextBoxInputSource(_txtTemplate), }; _errorNotifier = new UserInputErrorNotifier(NotificationService, inputs); GitterApplication.FontManager.InputFont.Apply(_txtPath, _txtTemplate); _controller = new InitController(gitRepositoryProvider) { View = this }; }