private void tsmiPickList_Click(object sender, EventArgs e) { FrmShippingPickList frmShippingPickList; if (FrmShippingPickList.Instance == null) { frmShippingPickList = new FrmShippingPickList(_myAccessToken); frmShippingPickList.MdiParent = this; frmShippingPickList.StartPosition = FormStartPosition.CenterScreen; frmShippingPickList.Show(); } else { FrmShippingPickList.Instance.WindowState = FormWindowState.Normal; FrmShippingPickList.Instance.Show(); FrmShippingPickList.Instance.BringToFront(); } }
private void tsmiPickList_Click(object sender, EventArgs e) { FrmShippingPickList frmShippingPickList; if (FrmShippingPickList.Instance == null) { frmShippingPickList = new FrmShippingPickList(_myAccessToken); frmShippingPickList.MdiParent = this; frmShippingPickList.StartPosition = FormStartPosition.CenterScreen; frmShippingPickList.Show(); } else { FrmShippingPickList.Instance.WindowState = FormWindowState.Normal; FrmShippingPickList.Instance.Show(); FrmShippingPickList.Instance.BringToFront(); } }