예제 #1
0
 private void UnloadParm(List <ParmStruct> parms, SqlCommand cmd)
 {
     if (parms != null)
     {
         for (int i = 0; i <= parms.Count - 1; i++)
         {
             ParmStruct p = parms[i];
             p.Value  = cmd.Parameters[i].Value;
             parms[i] = p;
         }
     }
 }
예제 #2
0
            public ParmStruct DispenseParm()
            {
                ParmStruct toSend = new ParmStruct();

                return(toSend);
            }
예제 #3
0
    private void BindingParam()
    {
        if (ParmPathList != null && ParmPathList.Count > 0)
        {
            for (int i = 0; i < ParmPathList.Count; i++)
            {
                ParmStruct data = ParmPathList[i];
                switch (data.Type)
                {
                case ParmType.GameObject:
                    FetchComponent(ref GObjects, data.Name, data.Path, true);
                    break;

                case ParmType.Transform:
                    FetchComponent(ref Transforms, data.Name, data.Path, true);
                    break;

                case ParmType.UISprite:
                    FetchComponent(ref UiSprites, data.Name, data.Path);
                    break;

                case ParmType.UILabel:
                    FetchComponent(ref UiLabels, data.Name, data.Path);
                    break;

                case ParmType.UIButton:
                    FetchComponent(ref UiButtons, data.Name, data.Path);
                    break;

                case ParmType.UIInputs:
                    FetchComponent(ref UiInputs, data.Name, data.Path);
                    break;

                case ParmType.UITexture:
                    FetchComponent(ref UiTextures, data.Name, data.Path);
                    break;

                case ParmType.TweenAlpha:
                    FetchComponent(ref TweenAlphas, data.Name, data.Path);
                    break;

                case ParmType.TweenPosition:
                    FetchComponent(ref TweenPositions, data.Name, data.Path);
                    break;

                case ParmType.UIEventTrigger:
                    FetchComponent(ref UiEventTriggers, data.Name, data.Path);
                    break;

                case ParmType.DynamicUISprite:
                    FetchComponent(ref DynamicUiSprites, data.Name, data.Path);
                    break;

                case ParmType.ParticleSystemUIComponent:
                    FetchComponent(ref ParticleSystemUiComponents, data.Name, data.Path);
                    break;

                case ParmType.CampaignTextureCmp:
                    FetchComponent(ref TextureCmps, data.Name, data.Path);
                    break;

                case ParmType.ConsecutiveClickCoolTrigger:
                    FetchComponent(ref CoolTriggers, data.Name, data.Path);
                    break;

                case ParmType.TweenScale:
                    FetchComponent(ref TweenScales, data.Name, data.Path);
                    break;

                case ParmType.UISlider:
                    FetchComponent(ref UiSliders, data.Name, data.Path);
                    break;

                case ParmType.UIGrid:
                    FetchComponent(ref UiGrids, data.Name, data.Path);
                    break;

                case ParmType.UIWidget:
                    FetchComponent(ref UiWidgets, data.Name, data.Path);
                    break;

                case ParmType.UIScrollView:
                    FetchComponent(ref UiScrollViews, data.Name, data.Path);
                    break;

                case ParmType.UIDragScrollView:
                    FetchComponent(ref UiDragScrollViews, data.Name, data.Path);
                    break;

                case ParmType.UIPanel:
                    FetchComponent(ref UiPanels, data.Name, data.Path);
                    break;

                case ParmType.UIProgressBar:
                    FetchComponent(ref UiProgressBars, data.Name, data.Path);
                    break;

                case ParmType.BoxCollider:
                    FetchComponent(ref BoxColliders, data.Name, data.Path);
                    break;

                case ParmType.UIToggle:
                    FetchComponent(ref UiToggles, data.Name, data.Path);
                    break;

                case ParmType.Camera:
                    FetchComponent(ref Cameras, data.Name, data.Path);
                    break;

                case ParmType.RenderTexture:
                    FetchComponent(ref RenderTextures, data.Name, data.Path);
                    break;

                case ParmType.DragEventDispatcher:
                    FetchComponent(ref DragEventDispatchers, data.Name, data.Path);
                    break;

                case ParmType.UITable:
                    FetchComponent(ref UiTables, data.Name, data.Path);
                    break;

                case ParmType.UISymbolInput:
                    FetchComponent(ref UiSymbolInputs, data.Name, data.Path);
                    break;
                }
            }
        }
    }