public static FrmStyleSize GetSingleton() { if (frm == null || frm.IsDisposed) { frm = new FrmStyleSize(); } return(frm); }
private void tsmiSize_Click(object sender, EventArgs e) { FrmStyleSize frm = FrmStyleSize.GetSingleton(); frm.MdiParent = this; frm.Show(); frm.Activate(); }
private void FrmStyleSize_FormClosing(object sender, FormClosingEventArgs e) { frm = null; }