Added upload format to settings form

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@889 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-09-22 08:46:21 +00:00
commit 397702c959
7 changed files with 49 additions and 33 deletions

View file

@ -31,12 +31,17 @@ namespace GreenshotJiraPlugin {
public partial class SettingsForm : Form {
private ILanguage lang = Language.GetInstance();
public SettingsForm() {
public SettingsForm(JiraConfiguration config) {
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
InitializeTexts();
combobox_uploadimageformat.Items.Clear();
foreach(OutputFormat format in Enum.GetValues(typeof(OutputFormat))) {
combobox_uploadimageformat.Items.Add(format.ToString());
}
}
private void InitializeTexts() {
@ -44,6 +49,7 @@ namespace GreenshotJiraPlugin {
this.buttonOK.Text = lang.GetString(LangKey.OK);
this.buttonCancel.Text = lang.GetString(LangKey.CANCEL);
this.Text = lang.GetString(LangKey.login_title);
this.label_upload_format.Text = lang.GetString(LangKey.label_upload_format);
}
public string Url {
@ -51,6 +57,11 @@ namespace GreenshotJiraPlugin {
set {textBoxUrl.Text = value;}
}
public string UploadFormat {
get {return combobox_uploadimageformat.Text;}
set {combobox_uploadimageformat.Text = value;}
}
void ButtonOKClick(object sender, EventArgs e) {
this.DialogResult = DialogResult.OK;
}