Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 private void PrijavaZaposlenik()
 {
     txtSifra.Text = "";
     this.Hide();
     Caffe.frmCaffe ks = new Caffe.frmCaffe();
     ks.Show();
 }
Exemplo n.º 3
0
 private void frmScren_Shown(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.id_dopustenje > 2)
     {
         Caffe.frmCaffe ks = new Caffe.frmCaffe();
         ks.mainForm = this;
         ks.Show();
     }
 }
Exemplo n.º 4
0
        private void picMaloprodaj_Click(object sender, EventArgs e)
        {
            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();
        }