コード例 #1
0
        private void DashBoard_Load(object sender, EventArgs e)
        {
            if (LoginForm.loggedUser == "" || LoginForm.loggedUser == null)
            {
                LoginForm.loggedUser = "******";
            }

            if (LoginForm.loggedUser != null)
            {
                dbLoggedUser.Text = "Cashier : " + LoginForm.loggedUser.ToUpper();
            }

            dbTimer.Enabled  = true;
            dbTimer.Interval = 1000;
            dbTimer.Tick    += new EventHandler(this.tmrDateTime_Tick);



            foreach (Form form in dbFrmContainer.Controls.OfType <Form>().ToArray())
            {
                form.Close();
            }
            viewDashboard l = new viewDashboard();

            l.TopLevel = false;
            dbFrmContainer.Controls.Add(l);
            l.Show();
        }
コード例 #2
0
        private void bunifuFlatButton1_Click(object sender, EventArgs e)
        {
            foreach (Form form in dbFrmContainer.Controls.OfType <Form>().ToArray())
            {
                form.Close();
            }
            viewDashboard l = new viewDashboard();

            l.TopLevel = false;
            dbFrmContainer.Controls.Add(l);
            l.Show();
        }