public PictureManageForm(AnimalFormAbstract superForm) { this.superForm = superForm; Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(superForm.language); InitializeComponent(); this.imgUrlList = new List <string>(superForm.animal.imgUrl); this.imgDescribeList = new List <string>(superForm.animal.imgDepict); initializePicture(); }
public saveSetForm(AnimalFormAbstract superForm) { this.superForm = superForm; Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(superForm.language); InitializeComponent(); linkLabel1.Text = superForm.saveUrl; linkLabel2.Text = superForm.imgUrl; enctyptyCheckBox.Checked = superForm.fileEncrypt; textBox1.Text = superForm.fileKey; autoVerifyCheckBox.Checked = superForm.autoVerify; textBox2.Text = superForm.defaultKey; }
public ConnectClientForm(AnimalFormAbstract animalForm) { this.animalForm = animalForm; InitializeComponent(); RichTextBox.CheckForIllegalCrossThreadCalls = false; ComboBox.CheckForIllegalCrossThreadCalls = false; TextBox.CheckForIllegalCrossThreadCalls = false; Button.CheckForIllegalCrossThreadCalls = false; foreach (string history in animalForm.connectHistory) { comboBox1.Items.Add(history.Split(':')[0]); } }
private void AnimalFormInit(AnimalFormAbstract superForm) { lengthUnit = superForm.lengthUnit; weightUnit = superForm.weightUnit; this.lengthUnit = goatForm.lengthUnit; this.weightUnit = goatForm.weightUnit; Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(superForm.language); InitializeComponent(); typeComboBox.SelectedIndex = this.type; typeComboBox.Enabled = false; lengthComboBox.SelectedIndex = this.lengthUnit; weigthComboBox.SelectedIndex = this.weightUnit; }
public socketForm(AnimalFormAbstract animalForm) { InitializeComponent(); this.animalForm = animalForm; this.radioButton1.Checked = !animalForm.serveripV6; this.radioButton3.Checked = !animalForm.clientipV6; if (animalForm.socketKey != "" && animalForm.socketKey != null) { checkBox1.Checked = true; } this.textBox2.Text = animalForm.port.ToString(); this.linkLabel1.Text = animalForm.socketUrl; if (animalForm.socketUrl == "") { this.linkLabel1.Text = animalForm.saveUrl; } comboBox1.SelectedIndex = animalForm.listen; }