private SyncItemMocker SetupFireStatusEvent(Guid id, StatusUpdateLevel level, bool complete, Exception ex, string message)
        {
            var syncItemMocker = new SyncItemMocker().ApplyId(id).ApplyEpisodeTitle("EpisodeTitle");
            EventHandler <StatusUpdateEventArgs> statusEventHandler = null;
            StatusUpdateEventArgs statusArgs =
                ex != null
                ? new StatusUpdateEventArgs(level, message, ex, complete, syncItemMocker.GetMockedSyncItem())
                : new StatusUpdateEventArgs(level, message, complete, syncItemMocker.GetMockedSyncItem());

            A.CallTo(() =>
                     MockSyncItemToEpisodeDownloaderTaskConverter.ConvertItemsToTasks
                     (
                         A <IList <ISyncItem> > .Ignored,
                         A <EventHandler <StatusUpdateEventArgs> > .Ignored,
                         A <EventHandler <ProgressEventArgs> > .Ignored
                     ))
            .ReturnsLazily((IList <ISyncItem> items, EventHandler <StatusUpdateEventArgs> statusEvent, EventHandler <ProgressEventArgs> progressEvent) =>
            {
                statusEventHandler = statusEvent;
                return(new IEpisodeDownloader[0]);
            });
            A.CallTo(() => MockTaskPool.RunAllTasks(A <int> .Ignored, A <ITask[]> .Ignored))
            .Invokes(() =>
            {
                statusEventHandler?.Invoke(this, statusArgs);
            });
            return(syncItemMocker);
        }
Exemplo n.º 2
0
 protected virtual void OnStatusUpdate(object sender, StatusUpdateEventArgs e)
 {
     if (StatusUpdate != null)
     {
         StatusUpdate(sender, e);
     }
 }
Exemplo n.º 3
0
        static void StatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            if (e.MessageLevel == StatusUpdateLevel.Verbose && !_verbose)
            {
                return;
            }

            lock (_synclock)
            {
                // keep all the message together
                if (e.Exception != null)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine(e.Exception.ToString());
                    Console.ResetColor();
                }
                else
                {
                    if (e.MessageLevel == StatusUpdateLevel.Error)
                    {
                        Console.ForegroundColor = ConsoleColor.Red;
                    }
                    else if (e.MessageLevel == StatusUpdateLevel.Warning)
                    {
                        Console.ForegroundColor = ConsoleColor.Blue;
                    }
                    Console.WriteLine(e.Message);
                    Console.ResetColor();
                }
            }
        }
    void OnUpdate(object sender, StatusUpdateEventArgs e)
    {
        int level = int.Parse(e.newStatus);

        if (level > 10)
        {
            level = 10;
        }
        if (level < 0)
        {
            level = 0;
        }

        Debug.Log(level);
        if (waterLevelIndicator != null)
        {
            Debug.Log("Should be visible now!");
            activate         = true;
            waterLevelHeight = level / 10.0f * maxHeight;
            if (level < 6)
            {
                debugMode       = false;
                waterLevelColor = Color.green;
            }
            else
            {
                debugMode       = true;
                waterLevelColor = Color.red;
            }
        }
    }
Exemplo n.º 5
0
 protected void StatusUpdate(object sender, StatusUpdateEventArgs e)
 {
     lock (this)
     {
         // keep all the message together
         if (e.Exception != null)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e.Message);
             Console.WriteLine(String.Concat(" ", e.Exception.ToString()));
             Console.ResetColor();
         }
         else
         {
             if (e.MessageLevel == StatusUpdateLevel.Error)
             {
                 Console.ForegroundColor = ConsoleColor.Red;
             }
             else if (e.MessageLevel == StatusUpdateLevel.Warning)
             {
                 Console.ForegroundColor = ConsoleColor.Blue;
             }
             Console.WriteLine(e.Message);
             Console.ResetColor();
         }
     }
 }
Exemplo n.º 6
0
 private void OnStatusUpdate(StatusUpdateEventArgs e)
 {
     if (StatusUpdate != null)
     {
         StatusUpdate(this, e);
     }
 }
Exemplo n.º 7
0
        void StatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            bool _verbose = false;

            if (e.MessageLevel == StatusUpdateLevel.Verbose && !_verbose)
            {
                return;
            }

            lock (SyncLock)
            {
                // keep all the message together
                if (e.Exception != null)
                {
                    AndroidApplication.Logger.LogException(() => $"MainActivity:StatusUpdate -> ", e.Exception);
                    AddLineToOutput(e.Message);
                    AddLineToOutput(string.Concat(" ", e.Exception.ToString()));
                }
                else
                {
                    AndroidApplication.Logger.Debug(() => $"MainActivity:StatusUpdate {e.Message}");
                    AddLineToOutput(e.Message);
                }
                DisplayOutput();
            }
        }
        void Stream_StatusUpdated(object sender, StatusUpdateEventArgs e)
        {
            ShowViral = false;
            ReplyTo   = null;

            if (e.Action == StatusUpdateAction.Reply)
            {
                ReplyTo = e.Status;
            }

            SelectedChannels.Clear();
            SelectedChannels.Add(e.ChannelId);

            PART_StatusUpdateTextbox.Text = e.StatusText;

            FocusHelper.Focus(PART_StatusUpdateTextbox);

            // Move caret to end of textbox
            PART_StatusUpdateTextbox.SelectionStart = PART_StatusUpdateTextbox.Text.Length;

            OnPropertyChanged("AllStatusChannels");
            OnPropertyChanged("ReplyTo");
            OnPropertyChanged("ShowViral");
            OnPropertyChanged("HasTwitter");
        }
    private void OnReceiveMessages(object sender, SocketAsyncEventArgs e)
    {
        string command = Encoding.ASCII.GetString(e.Buffer);
        int    len     = statusCommandPrefix.Length;

        if (command.StartsWith(statusCommandPrefix + ":"))
        {
            Debug.Log("delegating command");
            if (StatusUpdated != null)
            {
                StatusUpdateEventArgs args = new StatusUpdateEventArgs
                {
                    newStatus = command.Substring(len + 1)
                };
                StatusUpdated(this, args);
            }
            else
            {
                Debug.Log("No members to delegate to");
            }
        }

        Array.Clear(receiveBuffer, 0, receiveBuffer.Length);
        mSocket.ReceiveAsync(receiveEvent);
    }
        protected override void GivenThat()
        {
            base.GivenThat();

            _controlFile = TestControlFileFactory.CreateControlFile();

            _stateProvider         = GenerateMock <IStateProvider>();
            _state                 = GenerateMock <IState>();
            _timeProvider          = GenerateMock <ITimeProvider>();
            _webClientFactory      = GenerateMock <IWebClientFactory>();
            _webClient             = GenerateMock <IWebClient>();
            _feedFactory           = GenerateMock <IPodcastFeedFactory>();
            _fileUtilities         = GenerateMock <IFileUtilities>();
            _podcastFeed           = GenerateMock <IPodcastFeed>();
            _directoryInfoProvider = GenerateMock <IDirectoryInfoProvider>();
            _directoryInfo         = GenerateMock <IDirectoryInfo>();
            _commandGenerator      = GenerateMock <ICommandGenerator>();
            _pathUtilities         = GenerateMock <IPathUtilities>();

            SetupData();
            SetupStubs();

            _episodeFinder = new EpisodeFinder(_fileUtilities, _feedFactory, _webClientFactory, _timeProvider, _stateProvider, _directoryInfoProvider, _commandGenerator, _pathUtilities);
            _episodeFinder.StatusUpdate += new EventHandler <StatusUpdateEventArgs>(EpisodeFinderStatusUpdate);
            _latestUpdate = null;
        }
Exemplo n.º 11
0
        protected virtual void OnStatusUpdate(StatusUpdateEventArgs e)
        {
            EventHandler handler = StatusUpdate;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 void Session_UpdateStatusRequestReceived(object sender, StatusUpdateEventArgs e)
 {
     // Typable Map コマンド?
     if (CurrentSession.Config.EnableTypableMap)
     {
         if (_typableMapCommands.Process(e.ReceivedMessage))
         {
             e.Cancel = true;
             return;
         }
     }
 }
Exemplo n.º 13
0
 void HandleStatusUpdateEvent(object sender, StatusUpdateEventArgs e)
 {
     //if ISynchronizeInvoke was not supplied, then we may have to marshal this back to the UI thread before publishing.
     if (e.Status == 0)
     {
         _messageBus.Publish(new CashDrawerClosed());
     }
     if (e.Status == 1)
     {
         _messageBus.Publish(new CashDrawerOpened());
     }
 }
 void Session_UpdateStatusRequestReceived(object sender, StatusUpdateEventArgs e)
 {
     // Typable Map コマンド?
     if (CurrentSession.Config.EnableTypableMap)
     {
         if (_typableMapCommands.Process(e.ReceivedMessage))
         {
             e.Cancel = true;
             return;
         }
     }
 }
Exemplo n.º 15
0
        protected void OnStatusUpdateEvent(object source, StatusUpdateEventArgs e)  //事件状态更新
        {
            switch (e.Status)
            {
            case PosPrinter.StatusPowerOff:
                mPowerOff = true;
                Console.WriteLine("请打开打印机电源!");
                break;

            case PosPrinter.StatusPowerOffline:
                mOffline = true;
                Console.WriteLine("请确保打开打印机电源及检查通讯连线!");
                break;

            case PosPrinter.StatusPowerOffOffline:
                mPowerOff = true;
                mOffline  = true;
                Console.WriteLine("请确保打开打印机电源及检查通讯连线!");
                break;

            case PosPrinter.StatusPowerOnline:
                mPowerOff = mOffline = false;
                break;

            case PosPrinter.StatusCoverOpen:
                mPrinterCoverOK = false;
                Console.WriteLine("请盖好打印机盖子,否则无法正常打印!");
                break;

            case PosPrinter.StatusCoverOK:
                mPrinterCoverOK = true;
                break;

            case PosPrinter.StatusReceiptEmpty:
                mReceiptEmpty = true;
                Console.WriteLine("纸张耗尽,请更换新的纸卷!");
                break;

            case PosPrinter.StatusReceiptPaperOK:
            case PosPrinter.StatusReceiptNearEmpty:
                mReceiptEmpty = false;
                break;
            }

            if (!mPowerOff && !mOffline && !mReceiptEmpty &&
                (mPrinterCoverOK || !mPrinter.CapCoverSensor))
            {
                mPrinterReady = true;
            }
            OutputOverHandle();
        }
Exemplo n.º 16
0
        private void CommMgrOnStatusUpdate(object sender, StatusUpdateEventArgs args)
        {
            var newReport = new SmartSensorReport(args.Report.Current, (int)args.Report.Target, args.Report.WattMinutes, args.Report.TrackedMinutes, args.Report.Current < args.Report.Target);

            _display.clrscr();
            _display.gotoxy(0, 0);
            _display.prints($"F: {args.Report.Current} Set: {args.Report.Target}");
            _display.gotoxy(0, 1);
            _display.prints($"A1: {args.Report.Leg1Amps} A2: {args.Report.Leg2Amps}");
            _display.gotoxy(0, 2);
            _display.prints($"{args.Report.WattMinutes}wM over {args.Report.TrackedMinutes}");

            _api.PostSensorReport("accesstoken", newReport).Wait();
        }
        void ActiveCashDrawer_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
        {
            CashDrawer drawer = (sender as CashDrawer);

            if (drawer == null)
            {
                return;
            }
            if (!drawer.DrawerOpened && IsTicketPayed)
            {
                this.Dispatcher.BeginInvoke(DispatcherPriority.Normal,
                                            (Action)(OnDrawerClose));
            }
        }
        void DownloadStatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            var  controlFile = ApplicationControlFileProvider.GetApplicationConfiguration();
            bool verbose     = controlFile?.GetDiagnosticOutput() == DiagnosticOutputLevel.Verbose;

            if (e.MessageLevel == StatusUpdateLevel.Verbose && !verbose)
            {
                return;
            }

            lock (MessageSyncLock)
            {
                // keep all the message together
                ISyncItem item = null;
                string    id   = "NONE";
                if (e.UserState != null && e.UserState is ISyncItem)
                {
                    item = e.UserState as ISyncItem;
                    id   = item.Id.ToString();
                }
                if (e.Exception != null)
                {
                    Logger.LogException(() => $"DownloadViewModel:StatusUpdate ID {id} -> ", e.Exception);
                    CrashReporter.LogNonFatalException(e.Exception);
                    if (item != null)
                    {
                        MessageStore.StoreMessage(item.Id, e.Message);
                        MessageStore.StoreMessage(item.Id, e.Exception.ToString());
                        Observables.UpdateItemStatus?.Invoke(this, Tuple.Create(item, Status.Error, e.Message));
                    }
                }
                else
                {
                    Logger.Debug(() => $"DownloadViewModel:StatusUpdate ID {id}, {e.Message}, Complete {e.IsTaskCompletedSuccessfully}");
                    Status status = (e.IsTaskCompletedSuccessfully ? Status.Complete : Status.Information);
                    if (status == Status.Complete)
                    {
                        AnalyticsEngine.DownloadEpisodeCompleteEvent();
                    }
                    if (item != null)
                    {
                        MessageStore.StoreMessage(item.Id, e.Message);
                        Observables.UpdateItemStatus?.Invoke(this, Tuple.Create(item, status, e.Message));
                    }
                }
            }
        }
        void ClientDownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
        {
            StatusUpdateEventArgs args = null;

            lock (_lock)
            {
                var syncItem = e.UserState as SyncItem;
                if (syncItem == null)
                {
                    args = new StatusUpdateEventArgs(StatusUpdateLevel.Error, "Missing token from download completed", false, null);
                }
                else if (e.Cancelled)
                {
                    args = new StatusUpdateEventArgs(StatusUpdateLevel.Status, string.Format(CultureInfo.InvariantCulture, "{0} Cancelled", syncItem.EpisodeTitle), false, syncItem);
                }
                else if (e.Error != null && e.Error.InnerException != null)
                {
                    args = new StatusUpdateEventArgs(StatusUpdateLevel.Error, string.Format(CultureInfo.InvariantCulture, "Error in: {0}", syncItem.EpisodeTitle), e.Error.InnerException, false, syncItem);
                }
                else if (e.Error != null)
                {
                    args = new StatusUpdateEventArgs(StatusUpdateLevel.Error, string.Format(CultureInfo.InvariantCulture, "Error in: {0}", syncItem.EpisodeTitle), e.Error, false, syncItem);
                }
                else
                {
                    args = new StatusUpdateEventArgs(StatusUpdateLevel.Status, string.Format(CultureInfo.InvariantCulture, "{0} Completed", syncItem.EpisodeTitle), true, syncItem);

                    _fileUtilities.FileRename(GetDownloadFilename(), _syncItem.DestinationPath, true);
                    RecordHighTideMark(syncItem);
                    ExecutePostDownloadCommand();
                }

                OnStatusUpdate(args);

                _client.Dispose();
                _client = null;

                _complete = true;
                _counterFactory.CreateAverageCounter(Constants.PodcastUtilitiesCommonCounterCategory,
                                                     Constants.AverageTimeToDownload,
                                                     Constants.NumberOfDownloads).RegisterTime(_stopWatch);
                _counterFactory.CreateAverageCounter(Constants.PodcastUtilitiesCommonCounterCategory,
                                                     Constants.AverageMBDownload,
                                                     Constants.SizeOfDownloads).RegisterValue(ConvertBytesToMB(_bytesDownloaded));
                TaskComplete.Set();
            }
        }
Exemplo n.º 20
0
        void Feed_StatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            switch (e.MessageLevel)
            {
            case StatusUpdateLevel.Warning:
                _statusWarning = true;
                break;

            case StatusUpdateLevel.Error:
                _statusError = true;
                break;

            case StatusUpdateLevel.Verbose:
                _statusUpdate = true;
                break;
            }
        }
        private void OnStatusUpdated(object sender, StatusUpdateEventArgs args)
        {
            MaidInfo maid = SelectedMaid;

            if (maid == null)
            {
                return;
            }

            if (args.CallerMaid != maid.Maid)
            {
                return;
            }

            Debugger.WriteLine(
                LogLevel.Info,
                $"Updating {EnumHelper.GetName(args.Tag)}.{(args.Tag == MaidChangeType.Feature ? Translation.GetTranslation(EnumHelper.GetName((Feature) args.EnumVal)) : Translation.GetTranslation(EnumHelper.GetName((Propensity) args.EnumVal)))} to {args.Value}...");

            maid.UpdateMiscStatus(args.Tag, args.EnumVal, args.Value);
        }
Exemplo n.º 22
0
        private void _Scale_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
        {
            Thread.Sleep(1000);
            double dbVal = GetScaleWeight();

            if (dbVal > 0)
            {
                SetValueControl(_cDataWeight, dbVal);
                iCount = 0;
                //Thread.Sleep(5000);
            }
            else
            {
                if (iCount == 0)
                {
                    SetValueControl(_cDataWeight, dbVal);
                }
                iCount++;
            }
        }
Exemplo n.º 23
0
        void Feed_StatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            switch (e.MessageLevel)
            {
            case StatusUpdateLevel.Warning:
                _statusWarning = true;
                break;

            case StatusUpdateLevel.Error:
                _statusError = true;
                break;

            case StatusUpdateLevel.Verbose:
                _statusUpdate = true;
                break;
            }
            if (e.IsTaskCompletedSuccessfully)
            {
                _completeCount++;
            }
        }
Exemplo n.º 24
0
        void DownloadStatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            bool _verbose = false;

            if (e.MessageLevel == StatusUpdateLevel.Verbose && !_verbose)
            {
                return;
            }

            lock (MessageSyncLock)
            {
                // keep all the message together
                if (e.Exception != null)
                {
                    Logger.LogException(() => $"MainActivity:StatusUpdate -> ", e.Exception);
                }
                else
                {
                    Logger.Debug(() => $"MainActivity:StatusUpdate {e.Message}");
                }
            }
        }
Exemplo n.º 25
0
        private void RispondiAEventoStausUpdate(object o, StatusUpdateEventArgs e)
        {
            try
            {
                string risposta = "";
                risposta = "Status Update: " + e.Status.ToString(); // e.ToString();
                updateForm(risposta);
                switch (e.Status.ToString())
                {
                case "25":
                    MessageBox.Show("Rotolo Carta Esaurito");
                    break;

                case "27":
                    MessageBox.Show("Rotolo Carta Ripristinato");
                    break;
                }
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Exemplo n.º 26
0
        protected void OnStatusUpdateEvent(object source, StatusUpdateEventArgs e)
        {
            //When there is a change of the status on the printer, the event is fired.
            switch (e.Status)
            {
            case PosPrinter.StatusPowerOff:
                mSend("请打开打印机电源!");
                break;

            case PosPrinter.StatusPowerOffline:
                mSend("请确保打开打印机电源及检查通讯连线!");
                break;

            case PosPrinter.StatusPowerOffOffline:
                mSend("请确保打开打印机电源及检查通讯连线!");
                break;

            case PosPrinter.StatusPowerOnline:
                break;

            case PosPrinter.StatusCoverOpen:
                mSend("请盖好打印机盖子,否则无法正常打印!");
                break;

            case PosPrinter.StatusCoverOK:
                break;

            case PosPrinter.StatusReceiptEmpty:
                mSend("纸张耗尽,请更换新的纸卷!");
                break;

            case PosPrinter.StatusReceiptPaperOK:
            case PosPrinter.StatusReceiptNearEmpty:
                break;
            }
        }
Exemplo n.º 27
0
 protected virtual void OnStatusUpdate(StatusUpdateEventArgs e)
 {
     StatusUpdate?.Invoke(this, e);
 }
Exemplo n.º 28
0
		protected override void PreFireEvent(StatusUpdateEventArgs posEvent)
		{
			
		}
Exemplo n.º 29
0
 static void GeneratorStatusUpdate(object sender, StatusUpdateEventArgs e)
 {
     // maybe we want to optionally filter verbose message
     Console.WriteLine(e.Message);
 }
Exemplo n.º 30
0
        void Device_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
        {
            PosPrinter s = sender as PosPrinter;
            DeviceStatusCode = e.Status;
            if (StatusUpdater.Instance != null)
                StatusUpdater.Instance.Update(deviceStatus);
            WriteLog("Status Changed - EventId: " + e.EventId + "; Status:" + e.Status);

            if (DeviceStatusChanged != null)
                DeviceStatusChanged(this, e);
        }
Exemplo n.º 31
0
 private void co_OnStatusUpdateEvent(object source, StatusUpdateEventArgs d)
 {
     try
     {
         Output.Text = d.ToString() + "\r\n" + Output.Text;
     }
     catch (Exception ae)
     {
         ShowException(ae);
     }
 }
Exemplo n.º 32
0
        protected virtual void OnStatusUpdate(string info)
        {
            ExecutionStatus = Status.ToString();
            ExecutionStatusInfo = info;

            if (Status != PrintJobStatus.Failure)
            {
                Log.Info("Print Job {0} Status {1}: {2}", SOPInstanceUID.UID.Split('.').Last(), Status, info);
            }
            else
            {
                Log.Error("Print Job {0} Status {1}: {2}", SOPInstanceUID.UID.Split('.').Last(), Status, info);
            }
            if (StatusUpdate != null)
            {
                var args = new StatusUpdateEventArgs((ushort)Status, info, Session.FilmSessionLabel, PrinterName);
                StatusUpdate(this, args);
            }
        }
Exemplo n.º 33
0
        void OnPrintJobStatusUpdate(object sender, StatusUpdateEventArgs e)
        {
            var printJob = sender as PrintJob;
            if (printJob != null && printJob.SendNEventReport)
            {
                var reportRequest = new DicomNEventReportRequest(printJob.SOPClassUID, printJob.SOPInstanceUID, e.EventTypeId);
                var ds = new DicomDataset
                {
                    {DicomTag.ExecutionStatusInfo, e.ExecutionStatusInfo},
                    {DicomTag.FilmSessionLabel, e.FilmSessionLabel},
                    {DicomTag.PrinterName, e.PrinterName}
                };

                reportRequest.Dataset = ds;
                SendRequest(reportRequest);
            }
        }
 void CurrentSession_UpdateStatusRequestReceived(object sender, StatusUpdateEventArgs e)
 {
     e.Text = ShortenUrlInMessage(e.Text, Timeout);
 }
Exemplo n.º 35
0
 void _checkscanner_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
 {
     UpdateImageProps();
 }
Exemplo n.º 36
0
        void _biometrics_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
        {
            string text = "unknown";
            switch (e.Status)
            {
                case Biometrics.StatusMoveAway:
                    text = "Move away";
                    break;
                case Biometrics.StatusMoveBackward:
                    text = "Move backward";
                    break;
                case Biometrics.StatusMoveCloser:
                    text = "Move closer";
                    break;
                case Biometrics.StatusMoveDown:
                    text = "Move down";
                    break;
                case Biometrics.StatusMoveForward:
                    text = "Move forward";
                    break;
                case Biometrics.StatusMoveLeft:
                    text = "Move left";
                    break;
                case Biometrics.StatusMoveRight:
                    text = "Move right";
                    break;
                case Biometrics.StatusMoveUp:
                    text = "Move up";
                    break;
                case Biometrics.StatusRawData:
                    text = "Raw Data Available";
                    pbImageData.Image = _biometrics.RawSensorData;
                    break;

                case Biometrics.StatusMoveFaster:
                    text = "Move Faster";
                    break;

                case Biometrics.StatusMoveSlower:
                    text = "Move Slower";
                    break;

                case Biometrics.StatusSensorDirty:
                    text = "The sensor is dirty and should be cleaned";
                    break;

                case Biometrics.StatusUnspecifiedReadFailure:
                    text = "Unable to capture data from the sensor, please retry the operation.";
                    break;

                case Biometrics.StatusSensorReady:
                    text = "Please swipe finger now.";
                    break;

                case Biometrics.StatusSensorComplete:
                    text = "Scan complete.";
                    break;


                default:
                    throw new ArgumentException("Unexpected status code: " + e.Status.ToString());

            }
            if (e.Status != Biometrics.StatusRawData)
                lblStatusText.Text = text;


            DisplayMessage("Status: " + text);
        }
Exemplo n.º 37
0
 void keylock_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
 {
     tbKeyPosition.Text = GetKeylockPosition();
 }
Exemplo n.º 38
0
 void keylock_StatusUpdateEvent(object sender, StatusUpdateEventArgs e)
 {
     tbKeyPosition.Text = GetKeylockPosition();
 }
Exemplo n.º 39
0
 private void OnStatusUpdate(StatusUpdateEventArgs e)
 {
     StatusUpdate?.Invoke(this, e);
 }
 static void PodcastSynchronizerStatusUpdate(object sender, StatusUpdateEventArgs e)
 {
 }