* 框架增加IFrame接口,方便页面跳转

This commit is contained in:
Sunny 2021-03-25 14:09:52 +08:00
parent b81c5ed195
commit 54f4342ec7
8 changed files with 7 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -599,4 +599,9 @@ namespace Sunny.UI
return new UIEditForm(option);
}
}
public interface IFrame
{
void SelectPage(int pageIndex);
}
}

View File

@ -26,7 +26,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
public partial class UIMainFrame : UIForm
public partial class UIMainFrame : UIForm, IFrame
{
public UIMainFrame()
{

View File

@ -39,7 +39,7 @@ namespace Sunny.UI
protected UIStyle _style = UIStyle.Blue;
public UIMainFrame Frame;
public IFrame Frame { get; set; }
public UIPage()
{