private void 添加医生信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormCreateDoctor f = new FormCreateDoctor(); f.ShowDialog(); FreshPrise(); }
private void FormUpdateDoctor_Load(object sender, EventArgs e) { this.form = (FormCreateDoctor)this.Owner; UpdateName.Text = form.tempRow["Name"].ToString(); }
/// <summary> /// 不建议这样 建议这里要用DataRow就用构造函数传DataRow /// </summary> /// <param name="myForm"></param> public FormUpdateDoctor(FormCreateDoctor myForm) { InitializeComponent(); this.form = myForm; }