public static FrmCreateLabels getSingle() { if (frmCreateLabels == null) { frmCreateLabels = new FrmCreateLabels(); } return(frmCreateLabels); }
/// <summary> /// 生成标签 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsmiCreateLabels_Click(object sender, EventArgs e) { FrmCreateLabels createLabels = FrmCreateLabels.getSingle(); createLabels.MdiParent = this; createLabels.BringToFront(); createLabels.Show(); }
private void FrmCreateLabels_FormClosed(object sender, FormClosedEventArgs e) { frmCreateLabels = null; }