コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: saveSetForm.cs プロジェクト: WangGodder/IGA_V2.0
 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;
 }
コード例 #3
0
 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]);
     }
 }
コード例 #4
0
ファイル: OutForm.cs プロジェクト: WangGodder/IGA_V2.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;
 }
コード例 #5
0
 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;
 }