zhiqiang.yu be6b6a6bdd add all files in the folder 10 tháng trước cách đây
..
.nuget be6b6a6bdd add all files in the folder 10 tháng trước cách đây
.vs be6b6a6bdd add all files in the folder 10 tháng trước cách đây
DreamCheeky.BigRedButton be6b6a6bdd add all files in the folder 10 tháng trước cách đây
Test.Application be6b6a6bdd add all files in the folder 10 tháng trước cách đây
.gitignore be6b6a6bdd add all files in the folder 10 tháng trước cách đây
DreamCheeky.BigRedButton.sln be6b6a6bdd add all files in the folder 10 tháng trước cách đây
LICENSE be6b6a6bdd add all files in the folder 10 tháng trước cách đây
README.md be6b6a6bdd add all files in the folder 10 tháng trước cách đây

README.md

Dream Cheeky's Big Red Button class for .NET

Installing

To install DreamCheeky.BigRedButton package, run the following command in the Package Manager Console inside Visual Studio:

Install-Package DreamCheeky.BigRedButton

The package currently depends on hidlibrary (≥ 3.2.28).

Usage

using DreamCheeky;

class Program
{
    static void Main()
    {
        using (var bigRedButton = new BigRedButton())
        {
            bigRedButton.LidClosed += (sender, args) => Console.WriteLine("Lid closed");
            bigRedButton.LidOpen += (sender, args) => Console.WriteLine("Lid open");
            bigRedButton.ButtonPressed += (sender, args) => Console.WriteLine("Button pressed");

            bigRedButton.Start();

            Console.WriteLine("Press ENTER to exit");
            Console.ReadLine();
        }
    }
}