public RenameRemoteDialog(Remote remote) { Verify.Argument.IsNotNull(remote, "remote"); Verify.Argument.IsFalse(remote.IsDeleted, "remote", Resources.ExcObjectIsDeleted.UseAsFormat("Remote")); _remote = remote; InitializeComponent(); Localize(); SetupReferenceNameInputBox(_txtNewName, ReferenceType.Remote); _txtOldName.Text = remote.Name; _txtNewName.Text = remote.Name; _txtNewName.SelectAll(); var inputs = new IUserInputSource[] { _newNameInput = new TextBoxInputSource(_txtNewName), }; _errorNotifier = new UserInputErrorNotifier(NotificationService, inputs); GitterApplication.FontManager.InputFont.Apply(_txtNewName, _txtOldName); _controller = new RenameRemoteController(remote); }
public RenameRemoteDialog(Remote remote) { Verify.Argument.IsNotNull(remote, nameof(remote)); Verify.Argument.IsFalse(remote.IsDeleted, nameof(remote), Resources.ExcObjectIsDeleted.UseAsFormat("Remote")); Remote = remote; InitializeComponent(); Localize(); SetupReferenceNameInputBox(_txtNewName, ReferenceType.Remote); _txtOldName.Text = remote.Name; _txtNewName.Text = remote.Name; _txtNewName.SelectAll(); var inputs = new IUserInputSource[] { NewName = new TextBoxInputSource(_txtNewName), }; ErrorNotifier = new UserInputErrorNotifier(NotificationService, inputs); GitterApplication.FontManager.InputFont.Apply(_txtNewName, _txtOldName); _controller = new RenameRemoteController(remote); }