Пример #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            if (forLoginVO.getPosition == "Teller")
            {
                forHighPosition();
            }
            tssLoggedInUser.Text = "User Logged In :" + forLoginVO.getUserLoggedIn.ToString();
            tssPosition.Text     = "User Position : " + forLoginVO.getPosition;
            tssDateTime.Text     = DateTime.Now.ToString("MMMM/dd/yyyy HH:mm:ss");
            frmMainPOS fmp = new frmMainPOS();

            fmp.MdiParent = this;
            fmp.Show();
        }
Пример #2
0
        private void transactionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fmp = Application.OpenForms["frmMainPOS"];

            if (fmp == null)
            {
                frmMainPOS fmpp = new frmMainPOS();
                fmpp.MdiParent = this;
                fmpp.Show();
            }
            else
            {
                MessageBox.Show("The Transaction Form is Already Open!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }