menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class OperationFeedbackListener - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class OperationFeedbackListener

    This class listens to a list of IOperationFeedbackProvider and fires a Progress event if the operation takes longer than a specified Delay.

    Inheritance
    System.Object
    NonFinalizeDisposable
    OperationFeedbackListener
    DelayedStatusDialog
    DelayedWaitCursor
    Implements
    System.IDisposable
    Inherited Members
    NonFinalizeDisposable.Dispose()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.ComponentModel
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class OperationFeedbackListener : NonFinalizeDisposable, IDisposable
    Remarks

    Derive from this class if you want to add support for displaying status messages in your status bar.

    note

    OperationFeedbackListener operates on the same thread where the long operation takes place. See the DelayedStatusDialog class how to give feedback about the operation on a different thread and allow the user to cancel the operation by pressing the Cancel button in a dialog.

    Constructors

    OperationFeedbackListener()

    Declaration
    public OperationFeedbackListener()

    Properties

    Delay

    Gets / sets the delay in milliseconds before Progress events about an operation should be raised.

    Declaration
    public int Delay { get; set; }
    Property Value
    Type
    System.Int32

    Methods

    AddProvider(IOperationFeedbackProvider)

    Adds an IOperationFeedbackProvider that this object will listen to and provide user feedback for.

    Declaration
    public void AddProvider(IOperationFeedbackProvider provider)
    Parameters
    Type Name Description
    IOperationFeedbackProvider provider

    An object that implements the IOperationFeedbackProvider interface.

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    NonFinalizeDisposable.Dispose(Boolean)

    OnProgress(OperationFeedbackEventArgs)

    Raises the Progress event.

    Declaration
    protected virtual void OnProgress(OperationFeedbackEventArgs e)
    Parameters
    Type Name Description
    OperationFeedbackEventArgs e

    An OperationFeedbackEventArgs that contains the event data.

    RemoveProvider(IOperationFeedbackProvider)

    Removes an IOperationFeedbackProvider from the list of feedback providers.

    Declaration
    public void RemoveProvider(IOperationFeedbackProvider provider)
    Parameters
    Type Name Description
    IOperationFeedbackProvider provider

    An object that implements the IOperationFeedbackProvider interface.

    Events

    Progress

    Occurs to indicate the progress of an ongoing operation.

    Declaration
    public event OperationFeedbackEventHandler Progress
    Event Type
    Type
    OperationFeedbackEventHandler

    Implements

    System.IDisposable

    See Also

    DelayedStatusDialog
    DelayedWaitCursor
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved