private void toolStripMenuItem2_Click(object sender, EventArgs e) { frmYgoper frmygoper = new frmYgoper(); if (frmygoper.Visible) { frmygoper.Hide(); } else { frmygoper.Show(); } }
private void 出入库记录ToolStripMenuItem_Click(object sender, EventArgs e) { frmYgoper frmygoper = new frmYgoper(); if (frmygoper.Visible) { frmygoper.Hide(); } else { frmygoper.StartPosition = FormStartPosition.CenterScreen; } frmygoper.Show(); }