Exemplo n.º 1
0
        private void btnFingerprint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            WaitFormManager.Show();
            var frm = new FrmFingerprint();

            frm.MdiParent = this;

            frm.Shown += (s, d) =>
            {
                WaitFormManager.Close();
            };

            frm.FormClosed += (s, d) => { };
            frm.Show();
        }
Exemplo n.º 2
0
        private void btnStart_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            // vp.Start(1, "111", "rtsp://*****:*****@192.168.1.120");


            WaitFormManager.Show();
            var frm = new FrmAlpr();

            frm.MdiParent = this;

            frm.Shown += (s, d) =>
            {
                WaitFormManager.Close();
            };

            frm.FormClosed += (s, d) => { };
            frm.Show();
        }
Exemplo n.º 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                WaitFormManager.Show();

                var sp = GetData();
                if (sp.Id == Guid.Empty)
                {
                    sp.Id = Guid.NewGuid();
                }

                db.DrugStore.Add(sp);
                db.Complete();
                AlertMessage.Show("Данные успешно сохранены");
            }
            finally
            {
                WaitFormManager.Close();
            }
        }