Skip to content

Commit

Permalink
Fix #7056.
Browse files Browse the repository at this point in the history
Former-commit-id: 8862ee88debd67ef29d65e93699eb09ea196e955
  • Loading branch information
ylangisc committed Apr 24, 2013
1 parent 8fc905d commit 62c17af
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 152 deletions.
33 changes: 19 additions & 14 deletions source/ch/cyberduck/ui/winforms/BookmarkForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 30 additions & 28 deletions source/ch/cyberduck/ui/winforms/BookmarkForm.cs
@@ -1,5 +1,5 @@
//
// Copyright (c) 2010-2011 Yves Langisch. All rights reserved.
// Copyright (c) 2010-2013 Yves Langisch. All rights reserved.
// http://cyberduck.ch/
//
// This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -52,7 +52,8 @@ public BookmarkForm()
SetMinMaxSize(Height);
ConfigureToggleOptions();

textBoxPort.GotFocus += delegate { textBoxPort.Select(0, textBoxPort.Text.Length); };

numericUpDownPort.GotFocus += delegate { numericUpDownPort.Select(0, numericUpDownPort.Text.Length); };
}

public bool HostFieldEnabled
Expand All @@ -70,6 +71,28 @@ public bool SavePasswordEnabled
set { ; }
}

public string PasswordLabel
{
set { }
}

public string Password
{
get { return string.Empty; }
set { ; }
}

public bool PasswordEnabled
{
set { ; }
}

public bool SavePasswordChecked
{
get { return true; }
set { ; }
}

public bool AnonymousChecked
{
get { return checkBoxAnonymous.Checked; }
Expand Down Expand Up @@ -138,11 +161,6 @@ public string UsernameLabel
set { labelUsername.Text = value; }
}

public string PasswordLabel
{
set { }
}

bool IBookmarkView.HostFieldEnabled { get; set; }

public Image Favicon
Expand Down Expand Up @@ -170,12 +188,11 @@ public Image Favicon
public event VoidHandler OpenDownloadFolderEvent = delegate { };
public event VoidHandler LaunchNetworkAssistantEvent = delegate { };
public event VoidHandler OpenUrl = delegate { };
public event VoidHandler ChangedSavePasswordCheckboxEvent = delegate { };
public event EventHandler<PrivateKeyArgs> ChangedPrivateKey = delegate { };

public bool PortFieldEnabled
{
set { textBoxPort.Enabled = value; }
set { numericUpDownPort.Enabled = value; }
}

public bool ConnectModeFieldEnabled
Expand Down Expand Up @@ -287,8 +304,8 @@ public string Hostname

public string Port
{
get { return textBoxPort.Text; }
set { textBoxPort.Text = value; }
get { return numericUpDownPort.Text; }
set { numericUpDownPort.Text = value; }
}

public string Username
Expand All @@ -302,17 +319,6 @@ public bool UsernameEnabled
set { textBoxUsername.Enabled = value; }
}

public string Password
{
get { return string.Empty; }
set { ; }
}

public bool PasswordEnabled
{
set { ; }
}

public string Path
{
get { return textBoxPath.Text; }
Expand All @@ -325,12 +331,6 @@ public bool PathEnabled
set { textBoxPath.Enabled = value; }
}

public bool SavePasswordChecked
{
get { return true; }
set { ; }
}

public string SelectedConnectMode
{
get { return comboBoxConnectMode.Text; }
Expand Down Expand Up @@ -377,6 +377,8 @@ public string WindowTitle
set { Text = value; }
}

public event VoidHandler ChangedSavePasswordCheckboxEvent = delegate { };

private void ConfigureToggleOptions()
{
toggleOptionsLabel.Click += (sender, args) => ToggleOptions();
Expand Down

0 comments on commit 62c17af

Please sign in to comment.