/// <summary> /// 自动下单 数据提交 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TSubmit_Orders_Click(object sender, EventArgs e) { string FromConfig = "/Config.ini"; float p = 0; IniClass ini_ = new IniClass(File_ + FromConfig); string[] k = new string[TOrdersText.Count()]; if (!string.IsNullOrEmpty(TTAddUserSelect[2].Text.ToString())) { byte[] array = System.Text.Encoding.ASCII.GetBytes(TTAddUserSelect[2].Text.ToString()); int IClass = (short)(array[0]) - 65 + 1; ini_.IniWriteValue("IClass", "class", IClass.ToString()); } else { MessageBox.Show("分组选择不能为空", "警告提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); //("","分组选择不能为空"); return; } for (int i = 0; i < TOrdersText.Count() - 1; ++i) { if (!string.IsNullOrEmpty(TOrdersText[i].Text.ToString())) { //float p += float.Parse(TOrdersText[i].Text.ToString()); } } if (p != 100) { MessageBox.Show("基金百分比总和需为100", "警告提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } for (int i = 0; i < TOrdersText.Count() - 1; ++i) { try { ini_.IniWriteValue("InputContent", "F_" + i, TOrdersText[i].Text.ToString()); } catch (Exception ex) { MessageBox.Show(ex.ToString()); return; } } this.JumpJump_JumpJump.FormBorderStyle = FormBorderStyle.None; this.JumpJump_JumpJump.TopLevel = false; this.JumpJump_JumpJump.Location = new System.Drawing.Point(0, 0); this.JumpJump_JumpJump.Size = this.Size; panel5.Controls.Add(this.JumpJump_JumpJump); this.JumpJump_JumpJump.Show(); this.panel1.Hide(); this.panel2.Hide(); this.panel3.Hide(); this.panel4.Hide(); this.panel5.Show(); this.panel6.Hide(); }