Refactorings for the new IniConfig

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@853 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-08-24 09:54:32 +00:00
commit 14b0863bcd
34 changed files with 338 additions and 499 deletions

View file

@ -26,7 +26,7 @@ using Greenshot.Core;
namespace GreenshotConfluencePlugin {
/// <summary>
/// Description of LoginForm.
/// Description of PasswordRequestForm.
/// </summary>
public partial class LoginForm : Form {
private ILanguage lang = Language.GetInstance();
@ -38,13 +38,14 @@ namespace GreenshotConfluencePlugin {
InitializeComponent();
InitializeTexts();
}
private void InitializeTexts() {
this.label_url.Text = lang.GetString(LangKey.label_url);
this.label_user.Text = lang.GetString(LangKey.label_user);
this.label_password.Text = lang.GetString(LangKey.label_password);
this.buttonOK.Text = lang.GetString(LangKey.OK);
this.buttonCancel.Text = lang.GetString(LangKey.CANCEL);
this.checkBoxDoNotStorePassword.Text = lang.GetString(LangKey.label_no_password_store);
this.Text = lang.GetString(LangKey.login_title);
}
@ -62,7 +63,12 @@ namespace GreenshotConfluencePlugin {
get {return textBoxPassword.Text;}
set {textBoxPassword.Text = value;}
}
public bool DoNotStorePassword {
get {return checkBoxDoNotStorePassword.Checked;}
set {checkBoxDoNotStorePassword.Checked = value;}
}
void ButtonOKClick(object sender, EventArgs e) {
this.DialogResult = DialogResult.OK;
}
@ -77,4 +83,4 @@ namespace GreenshotConfluencePlugin {
}
}
}
}
}