public static void Update()
        {
            if (!(GameManager.getInstance().getGameState() is GameStateLogo))
            {
                skippedIDX++;
                return;
            }
            Logger.Buffer($"Skipped {skippedIDX} frames before being ready.");

            foreach (Type t in typesToEnable)
            {
                FieldInfo mReqField = t
                                      .GetField("mRequiredStructure", BindingFlags.NonPublic | BindingFlags.Instance);
                ModuleType moduleInst = ModuleTypeList.find(t.Name);

#if DEBUG
                Logger.Buffer(
                    $"Inst is null? {moduleInst is null}\t" +
                    $"ReqField is null? {mReqField is null}\t" +
                    $"[{t?.Name.Remove(0, 10)}]");
#endif

                mReqField?.SetValue(moduleInst, new ModuleTypeRef());
            }
            Logger.Flush();

#if DEBUG
            RunChecks();
#endif
            Logger.Write("Done patching.");
        }
Exemplo n.º 2
0
        protected override ModuleTypeList GetRequiredModuleTypesCore()
        {
            ModuleTypeList requiredModuleTypesCore = base.GetRequiredModuleTypesCore();

            requiredModuleTypesCore.Add(typeof(DevExpress.ExpressApp.Reports.ReportsModule));
            return(requiredModuleTypesCore);
        }
Exemplo n.º 3
0
        protected override ModuleTypeList GetRequiredModuleTypesCore()
        {
            ModuleTypeList requiredModuleTypesCore = base.GetRequiredModuleTypesCore();

            requiredModuleTypesCore.Add(typeof(DashboardModule));
            return(requiredModuleTypesCore);
        }
Exemplo n.º 4
0
        protected override ModuleTypeList GetRequiredModuleTypesCore()
        {
            ModuleTypeList requiredModules = base.GetRequiredModuleTypesCore();

            requiredModules.Add(typeof(OfficeModule));
            return(requiredModules);
        }
Exemplo n.º 5
0
        //protected override void CustomizeModelApplicationCreatorProperties(ModelApplicationCreatorProperties creatorProperties) {
        //    base.CustomizeModelApplicationCreatorProperties(creatorProperties);
        //    creatorProperties.RegisterObject(
        //        typeof(DevExpress.ExpressApp.Validation.IModelRuleBase),
        //        typeof(FeatureCenter.Module.Validation.RuleStringLengthComparison),
        //        typeof(FeatureCenter.Module.Validation.IRuleStringLengthComparisonProperties));
        //    creatorProperties.RegisterObject(
        //        typeof(DevExpress.ExpressApp.Validation.IModelRuleBase),
        //        typeof(FeatureCenter.Module.Validation.CodeRuleObjectIsValidRule),
        //        typeof(DevExpress.Persistent.Validation.IRuleBaseProperties));
        //}
        protected override ModuleTypeList GetRequiredModuleTypesCore()
        {
            ModuleTypeList moduleTypeList = base.GetRequiredModuleTypesCore();

            moduleTypeList.Add(typeof(DevExpress.ExpressApp.ConditionalAppearance.ConditionalAppearanceModule));
            moduleTypeList.Add(typeof(DevExpress.ExpressApp.SystemModule.SystemModule));
            return(moduleTypeList);
        }
Exemplo n.º 6
0
        protected override ModuleTypeList GetRequiredModuleTypesCore()
        {
            ModuleTypeList result = base.GetRequiredModuleTypesCore();

            result.Add(typeof(DevExpress.ExpressApp.Validation.ValidationModule));
            result.Add(typeof(DevExpress.ExpressApp.TreeListEditors.TreeListEditorsModuleBase));
            result.Add(typeof(DevExpress.ExpressApp.TreeListEditors.Web.TreeListEditorsAspNetModule));
            return(result);
        }
        protected override ModuleTypeList GetRequiredModuleTypesCore()
        {
            ModuleTypeList requiredModuleTypesCore = base.GetRequiredModuleTypesCore();

            requiredModuleTypesCore.Add(typeof(DevExpress.ExpressApp.Reports.Win.ReportsWindowsFormsModule));
            requiredModuleTypesCore.Add(typeof(DashboardModule));
            requiredModuleTypesCore.Add(typeof(XpandReportsModule));
            return(requiredModuleTypesCore);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetModuleTypeList("");

            if (ds.Tables[0].Rows.Count == 0)
            {
                GridViewMsg.InnerText = ResourceManager.GetString("Pub_Msg_norecord");
            }
            else
            {
                GridViewMsg.InnerText = ResourceManager.GetString("Pub_Lab_gy") + ds.Tables[0].Rows.Count + ResourceManager.GetString("Pub_Lab_tjl");
            }

            ModuleTypeList.DataSource = ds;
            ModuleTypeList.DataBind();
        }
Exemplo n.º 9
0
 public Picon2ModuleRequestsViewModel()
 {
     this._moduleTypes                  = new ModuleTypeList();
     this._moduleList                   = new ObservableCollection <string>();
     this._moduleListForUI              = new ObservableCollection <string>();
     this._imageSRC                     = new ImageSRCList();
     this._imageSRCList                 = new ObservableCollection <string>();
     this._moduleRequestsForUIList      = new ObservableCollection <string>();
     this._requestsFromDevice           = new ObservableCollection <ModuleRequest>();
     this._requestsToWrite              = new ObservableCollection <ModuleRequest>();
     this.ModuleRequestsGeneratedFromUI = new ObservableCollection <string>();
     this.RequestCount                  = 0;
     this.RequestCountFromDevice        = 0;
     this.MRVCount = 0;
     this.MSDCount = 0;
     this.MSACount = 0;
     this.CrateID  = string.Empty;
     this.IsToggleCrate918Checked = false;
     this.ModuleErrors            = new ObservableCollection <bool?>();
     InitializeModuleList();
     InitializeImageList();
     InitializeModuleErrors();
 }
 /// <summary>
 /// Ands the module types.
 /// </summary>
 /// <param name="moduleTypeList">The module type list.</param>
 /// <param name="types">The types.</param>
 /// <returns></returns>
 public static ModuleTypeList AndModuleTypes(this ModuleTypeList moduleTypeList, params Type[] types)
 {
     moduleTypeList.AddRange(types);
     return(moduleTypeList);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Adds types to the <see cref="ModuleTypeList"/>
 /// </summary>
 /// <param name="moduleTypeList">The module type list.</param>
 /// <param name="types">The types.</param>
 /// <returns>The original <see cref="ModuleTypeList"/></returns>
 public static ModuleTypeList AndModuleTypes(this ModuleTypeList moduleTypeList, params Type[] types)
 {
     _ = moduleTypeList ?? throw new ArgumentNullException(nameof(moduleTypeList));
     moduleTypeList.AddRange(types);
     return(moduleTypeList);
 }