コード例 #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();
        }
コード例 #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();
        }
コード例 #3
0
        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();
        }