public override void Initialize(IApp app) { //重新设置主窗体。 App.MainWindowType = typeof(EmptyShell); //不需要登录界面。 ClientApp.LoginWindowType = null; //不需要任何权限。 PermissionMgr.Provider = null; app.AllPluginsIntialized += (oo, ee) => { RafyResources.AddResource(typeof(MonthPlanPlugin), "Resources/MonthPlanResources.xaml"); }; app.ModuleOperations += (o, e) => { CommonModel.Modules.AddRoot(new WPFModuleMeta { Label = "月度计划", EntityType = typeof(MonthPlan), BlocksTemplate = typeof(MonthPlanModule) }); }; app.RuntimeStarting += (o, e) => { AutoUpdateDb(); }; app.StartupCompleted += (o, e) => { App.Current.OpenModuleOrAlert("月度计划"); }; }
public static void ModifyRowStyle(ListLogicalView taskView, string styleName) { var grid = taskView.Control as TreeGrid; grid.RowStyle = RafyResources.FindStyle(styleName); }