miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
575.00 B
ICompletionProvider.cs
namespace MiniSqlQuery.Core
{
    public interface ICompletionProvider
    {
        bool Enabled { get; set; }
        bool KeyEventHandlerFired(char ch);
    }

    public class NullCompletionProvider : ICompletionProvider
    {
        private readonly bool _enabled;

        public NullCompletionProvider()
        {
            _enabled = false;
        }

        public bool Enabled
        {
            get { return _enabled; }
            set { }
        }

        public bool KeyEventHandlerFired(char ch)
        {
            return false;
        }
    }
}