Exemplo n.º 1
0
        private void btn_returns_Click(object sender, EventArgs e)
        {
            Form fm = Application.OpenForms["NewCarReturns"];

            if (fm != null)
            {
                if (fm.WindowState == FormWindowState.Minimized)
                {
                    fm.WindowState = FormWindowState.Maximized;
                }

                fm.BringToFront();
            }
            else
            {
                NewCarReturns cr = new NewCarReturns();
                cr.Show();
            }
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form fm = Application.OpenForms["NewCarReturns"];

            if (fm != null)
            {
                fm.Close();
            }

            NewCarReturns ncr = new NewCarReturns();

            ncr.Show();

            // Out of Colour Ink (Uncomment Next Line)
            //cmb_printerpicked.SelectedIndex = 1;

            // B&W Printer Down
            cmb_printerpicked.SelectedIndex = 0;

            ncr.PrintReturns(cmb_printerpicked.SelectedIndex);

            Close();
        }