Exemplo n.º 1
0
        private void OrderList_FormClosing(object sender, FormClosingEventArgs e)
        {
            // Create new frmDashboard called 'dash' and pass username and access level.
            frmDashboard dash = new frmDashboard(_username, _accessLevel);

            // Show the 'dash' form.
            dash.Show();
        }
Exemplo n.º 2
0
        private void mtGoBack_Click(object sender, EventArgs e)
        {
            // Hide this form.
            Hide();

            // Create new frmDashboard called 'dash' and pass username and access level.
            frmDashboard dash = new frmDashboard(_username, _accessLevel);

            // Show the 'dash' form.
            dash.Show();
        }
        private void CreateOrder_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (videoCaptureDevice != null)
            {
                if (videoCaptureDevice.IsRunning)
                {
                    videoCaptureDevice.Stop();
                }
            }

            // Create new frmDashboard called 'dash' and pass username and access level.
            frmDashboard dash = new frmDashboard(_username, _accessLevel);

            // Show the 'dash' form.
            dash.Show();
        }