private void skinButton4_Click(object sender, EventArgs e) { yinpian_yuanyaocai_base yb = new yinpian_yuanyaocai_base(3); Point p = this.PointToScreen(new Point(-121, -29)); yb.Location = p; yb.ShowDialog(); try { skinTextBox5.Text = yb.rtnlv.SubItems[2].Text; med_code = yb.rtnlv.SubItems[0].Text; } catch (Exception) { return; } }
private void skinButton3_Click(object sender, EventArgs e) { yinpian_yuanyaocai_base yyb = new yinpian_yuanyaocai_base(1); yyb.StartPosition = FormStartPosition.Manual; yyb.Location = this.PointToScreen(new Point(-121, -29));; yyb.ShowDialog(); if (yyb.rtnlv == null) { this.Close(); } try { med_code = yyb.rtnlv.SubItems[0].Text; skinTextBox1.Text = yyb.rtnlv.SubItems[2].Text; } catch (Exception) { return; } }