SFControl.cs
- Last UpdatedMar 12, 2021
- 1 minute read
using Skelta.Forms.Core.Controls;
using Skelta.Forms.Core.External;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kendo.Custom.Controls;
namespace Skelta.Forms.ExternalControls
{
class SFControls : IExternalControls
{
#region IExternalControls Members
BaseControl IExternalControls.GetControl(string controlFullName)
{
switch (controlFullName)
{
case "Kendo.Custom.Controls.AutoComplete":
return new AutoComplete();
case "Kendo.Custom.Controls.CustomPanel":
return new CustomPanel();
case "Kendo.Custom.Controls.CustomGrid":
return new CustomGrid();
case "Kendo.Custom.Controls.CustomAttachment":
return new CustomAttachment();
default:
return null;
}
}
object[] IExternalControls.GetControls()
{
return new object[] { new AutoComplete(), new CustomPanel(), new CustomGrid(), new CustomAttachment() };
}
#endregion
}
}