110,534
社区成员
发帖
与我相关
我的任务
分享
private void btnEnterInsetStep_Click(object sender, EventArgs e)
{
this.Close();
Form1 f1 =Form1.GetInstance();
f1.Show();
......................
}
Form1 窗体中
static Form1 form = null;
public static Form1 GetInstance()
{
if (form == null || form.IsDisposed)
{
form = new Form1 ();
}
return form;
}
private void btnEnterInsetStep_Click(object sender, EventArgs e)
{
this.Close();
Form1 f1 =Form1.GetInstance();
f1.Show();
......................
}
FormInsertStep 窗体中
static FormInsertStep form = null;
public static FormInsertStep GetInstance()
{
if (form == null || form.IsDisposed)
{
form = new FormInsertStep();
}
return form;
}