private void button1_Click(object sender, EventArgs e) { WCFAbout mainForm = new WCFAbout(); mainForm.StartPosition = FormStartPosition.CenterScreen; mainForm.Show(); }
private void btnWCFAbout_Click(object sender, EventArgs e) { if (mWCFAbout == null) { mWCFAbout = new WCFAbout(); mWCFAbout.StartPosition = FormStartPosition.CenterScreen; mWCFAbout.Show(); } else { mWCFAbout.Activate(); mWCFAbout.WindowState = FormWindowState.Normal; } }