Exemple #1
0
        private void Workout()
        {
            if (HealthyWithVSSettingsService.Instance.WorkoutActive)
            {
                System.Windows.Application.Current.Dispatcher.Invoke((Action) delegate
                {
                    foreach (var s in System.Windows.Forms.Screen.AllScreens)
                    {
                        var blockScreen    = new BlockScreen();
                        blockScreen.Top    = s.Bounds.Top;
                        blockScreen.Left   = s.Bounds.Left;
                        blockScreen.Width  = s.Bounds.Width;
                        blockScreen.Height = s.Bounds.Height;
                        blockScreen.Show();
                    }
                });
            }


            //foreach (Window item in System.Windows.Application.Current.Windows)
            //{
            //    item.Closing += Item_Closing;
            //    item.Closed += Item_Closed;
            //}


            //System.Windows.Forms.Application.AddMessageFilter(new AltF4Filter());
        }
Exemple #2
0
    public void Incrementfalsepin(String PasID)
    {
        HTTPget tmp        = new HTTPget();
        int     nrfalsepin = tmp.getFalsePinnr(PasID);
        Pas     uploaddata = tmp.getPinclass(PasID);

        nrfalsepin++;
        if (nrfalsepin >= 3)
        {
            BlockScreen a = new BlockScreen();
            BlockCard(PasID, uploaddata).Wait();
        }
        if (nrfalsepin < 3)
        {
            incrementFalsePin(PasID, uploaddata, nrfalsepin).Wait();
        }
    }