using KGIS.Framework.Views; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Kingo.PluginServiceInterface { public interface IDockViewService { Action Callback { get; set; } bool IsShowSaveButton { get; set; } EnumOrientation Orientation { get; set; } List Elements { get; } IDockPanel2 InitView(); void AddElement(IElementInfo obj); void RemoveElement(IElementInfo obj); void Save(); } public interface IDockViewService2 { Action CallBack { get; set; } EnumOrientation Orientation { get; set; } bool IsShwoSaveButton { get; set; } void ShowView(); void AddElement(IElementInfo pElement); void Save(); } public interface IElementInfo : IDockPanel { bool IsShow { get; set; } int ShowIndex { get; set; } bool ResetSize { get; set; } bool AllowEdit { get; set; } void BindData(object obj); void SaveEdit(); } public enum EnumOrientation { // // 摘要: // 控件或布局应为水平方向。 Horizontal = 0, // // 摘要: // 控件或布局应为垂直方向。 Vertical = 1 } }