整合管理器应用端(MAUI跨平台)
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.

34 lines
925 B

using SunlightAggregationTerminal.Class;
using SunlightAggregationTerminal.Models;
namespace SunlightAggregationTerminal
{
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
this.BindingContext = new AppModels();
}
private void Shell_Loaded(object sender, EventArgs e)
{
//打开登录
if (!App.GlobalData.LogNo)
{
var logpage = new View.LogPage();
Navigation.PushModalAsync(logpage);
}
else
{//发送登录请求
/* var dat = TcpServer.Query("");
if (dat != null)
{//拒绝登陆时打开登录页面
var logpage = new View.LogPage();
Navigation.PushModalAsync(logpage);
}*/
}
}
}
}