mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
19038c7c2b
commit
397702c959
7 changed files with 49 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue