public static void Show(LuaAppObject app) { if (Application.Current?.MainWindow is MainWindow) { _selectNextApp = app.Id; NavigateToPage(); } }
bool IImmediateContent.ImmediateChange(Uri uri) { var id = uri.GetQueryParam("Id"); if (id == null) { return(false); } var obj = LuaAppsManager.Instance.GetById(id); if (obj == null) { return(false); } _id = id; _object = obj; SetModel(); return(true); }
void ILoadableContent.Load() { _object = LuaAppsManager.Instance.GetById(_id); }
async Task ILoadableContent.LoadAsync(CancellationToken cancellationToken) { _object = await LuaAppsManager.Instance.GetByIdAsync(_id); }