// "收支查询"按钮触发事件 private void toolStripButton3_Click(object sender, EventArgs e) { SearchForm search = new SearchForm(); // 当前窗口实例传递到另一个窗口的变量 search.mainForm = this; search.Show(); }
/// <summary> /// "收支查询"按钮触发的事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSelect_Click(object sender, EventArgs e) { SearchForm search = new SearchForm(); // 当前窗口实例传递到另一个窗口的变量 search.mainForm = this; search.Show(); }