-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTranslatorSettingsForm.cs
More file actions
executable file
·36 lines (33 loc) · 1.23 KB
/
TranslatorSettingsForm.cs
File metadata and controls
executable file
·36 lines (33 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WikiFunctions.Parse;
namespace AutoWikiBrowser.Plugins.Translator
{
public partial class TranslatorSettingsForm : Form
{
public TranslatorSettingsForm()
{
InitializeComponent();
Icon = WikiFunctions.Properties.Resources.AWBIcon;
}
private void TranslatorSettingsForm_Load(object sender, EventArgs e)
{
// TODO: setting previously selected source language
cboLanguages.DataSource = SiteMatrix.WikipediaLanguages;
cboLanguages.SelectedIndex = cboLanguages.FindStringExact(TranslatorAWBPlugin.SourceLanguage);
txtUsername.Text = TranslatorAWBPlugin.username;
txtPassword.Text = TranslatorAWBPlugin.password;
}
private void btnOK_Click(object sender, EventArgs e)
{
TranslatorAWBPlugin.SourceLanguage = (String)cboLanguages.SelectedItem;
TranslatorAWBPlugin.username = txtUsername.Text;
TranslatorAWBPlugin.password = txtPassword.Text;
}
}
}