You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
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<string> Callback { get; set; } |
|
bool IsShowSaveButton { get; set; } |
|
EnumOrientation Orientation { get; set; } |
|
List<IElementInfo> Elements { get; } |
|
IDockPanel2 InitView(); |
|
void AddElement(IElementInfo obj); |
|
void RemoveElement(IElementInfo obj); |
|
void Save(); |
|
} |
|
public interface IDockViewService2 |
|
{ |
|
Action<object> 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 |
|
} |
|
}
|
|
|