Exemple #1
0
        private void btnMaloprodaja_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Escape)
            {
                Caffe.frmPrijava p = new Caffe.frmPrijava();
                MainForm.Hide();
                p.MainForm = this;
                p.ShowDialog();
            }
            if (e.KeyData == Keys.Enter)
            {
                foreach (Form OpenForm in Application.OpenForms)
                {
                    if (OpenForm.GetType() == typeof(frmKasa))
                    {
                        OpenForm.WindowState = FormWindowState.Maximized;
                        return;
                    }
                }

                Caffe.frmCaffe ks = new Caffe.frmCaffe();
                ks.mainForm = this;
                ks.Show();
            }
        }
Exemple #2
0
 private void btnOdjava_Click(object sender, EventArgs e)
 {
     Global.GlobalFunctions.BackupDatabase();
     Caffe.frmPrijava p = new Caffe.frmPrijava();
     MainForm.Hide();
     p.MainForm = MainForm;
     p.ShowDialog();
 }