public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            StateSlash State = new StateSlash();

            State = (StateSlash)SelectedPgrid.SelectedObject;
            List <string> SqlStringList = new List <string>();
            string        sql           = SqlStr;

            //Extension
            string ex1sql = sql;

            if (State.ExitPathsExtStateNumber != "255")
            {
                ex1sql = string.Format(ex1sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.ExitPathsExtStateNumber,
                                       State.ExtensionDescription, State.ExtensionType, ProjectName, TransactionName, State.ICCAppSuccessfulNextState,
                                       State.CardNotSmartNextState, State.ICCAppNotUsableNextState, State.NoSuitableICCAppsNextState, State.ICCAppLevelErrorNextState,
                                       State.ICCHardwareLevelErrorNextState, State.ProcessNotPerformNextState, State.ExtensionReserved,
                                       State.ConfigId, State.BrandId, State.ConfigVersion);
                SqlStringList.Add(ex1sql);
            }

            sql = string.Format(sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.StateNumber, State.StateDescription,
                                State.StateType, ProjectName, TransactionName, State.PleaseWaitScreenNumber, State.ICCAppTemplateScreenNumber,
                                State.ICCAppNameScreenNumber, State.ExitPathsExtStateNumber, State.Reserved, State.Reserved, State.Reserved,
                                State.Reserved, State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

            return(SqlStringList);
        }
        public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid)
        {
            StateSlash Selectedstate = new StateSlash();
            StateSlash Dynamicstate  = new StateSlash();

            Selectedstate             = (StateSlash)SelectedPgrid.SelectedObject;
            Dynamicstate              = (StateSlash)ClassInstance;
            Dynamicstate._Description = Selectedstate.StateDescription;
            Dynamicstate.BrandId      = Selectedstate.BrandId;
            Dynamicstate.ConfigId     = Selectedstate.ConfigId;

            Dynamicstate._PleaseWaitScreenNumber     = Selectedstate._PleaseWaitScreenNumber;
            Dynamicstate._ICCAppTemplateScreenNumber = Selectedstate._ICCAppTemplateScreenNumber;
            Dynamicstate._ICCAppNameScreenNumber     = Selectedstate._ICCAppNameScreenNumber;
            Dynamicstate._Reserved = Selectedstate._Reserved;

            Dynamicstate._ExitPathsExtStateNumber = Selectedstate._ExitPathsExtStateNumber;
            Dynamicstate._ExtensionDescription    = Selectedstate._ExtensionDescription;
            //Dynamicstate._ICCAppSuccessfulNextState = Selectedstate._ICCAppSuccessfulNextState;
            //Dynamicstate._CardNotSmartNextState = Selectedstate._CardNotSmartNextState;
            //Dynamicstate._ICCAppNotUsableNextState = Selectedstate._ICCAppNotUsableNextState;
            //Dynamicstate._NoSuitableICCAppsNextState = Selectedstate._NoSuitableICCAppsNextState;
            //Dynamicstate._ICCAppLevelErrorNextState = Selectedstate._ICCAppLevelErrorNextState;
            //Dynamicstate._ICCHardwareLevelErrorNextState = Selectedstate._ICCHardwareLevelErrorNextState;
            //Dynamicstate._ProcessNotPerformNextState = Selectedstate._ProcessNotPerformNextState;
            Dynamicstate._ExtensionReserved = Selectedstate._ExtensionReserved;

            return(Dynamicstate);
        }
        public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            StateSlash                    state         = new StateSlash();
            ModelCanvasStateObject        TransStateObj = new ModelCanvasStateObject();
            List <ModelParentStateObject> ParentobjList = new List <ModelParentStateObject>();
            List <ModelChildStateObject>  ChildobjList  = new List <ModelChildStateObject>();

            state.Status           = processRow[1].ToString();
            state.StateNumber      = processRow[3].ToString();
            state.StateDescription = processRow[4].ToString();
            state.StateType        = processRow[5].ToString();

            state._PleaseWaitScreenNumber     = processRow[8].ToString();
            state._ICCAppTemplateScreenNumber = processRow[9].ToString();
            state._ICCAppNameScreenNumber     = processRow[10].ToString();
            state._ExitPathsExtStateNumber    = processRow[11].ToString();
            state._Reserved = processRow[12].ToString();

            state.ConfigId      = processRow[16].ToString();
            state.BrandId       = processRow[17].ToString();
            state.ConfigVersion = processRow[18].ToString();

            //Extension State Kontrolu Screen
            if (state.ExitPathsExtStateNumber != "255")
            {
                object[] ExtensionState = GetExtensionState(ref StateList, state.ExitPathsExtStateNumber);
                state._ExtensionDescription           = ExtensionState[4].ToString();
                state._ICCAppSuccessfulNextState      = ExtensionState[8].ToString();
                state._CardNotSmartNextState          = ExtensionState[9].ToString();
                state._ICCAppNotUsableNextState       = ExtensionState[10].ToString();
                state._NoSuitableICCAppsNextState     = ExtensionState[11].ToString();
                state._ICCAppLevelErrorNextState      = ExtensionState[12].ToString();
                state._ICCHardwareLevelErrorNextState = ExtensionState[13].ToString();
                state._ProcessNotPerformNextState     = ExtensionState[14].ToString();
                state._ExtensionReserved = ExtensionState[15].ToString();

                //NextState Kontrolu
                if (state.ICCAppSuccessfulNextState != "255")
                {
                    ChildobjList.Add(GetChildState("ICCAppSuccessfulNextState", state.ICCAppSuccessfulNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
                if (state.CardNotSmartNextState != "255")
                {
                    ChildobjList.Add(GetChildState("CardNotSmartNextState", state.CardNotSmartNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
                if (state.ICCAppNotUsableNextState != "255")
                {
                    ChildobjList.Add(GetChildState("ICCAppNotUsableNextState", state.ICCAppNotUsableNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
                if (state.NoSuitableICCAppsNextState != "255")
                {
                    ChildobjList.Add(GetChildState("NoSuitableICCAppsNextState", state.NoSuitableICCAppsNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
                if (state.ICCAppLevelErrorNextState != "255")
                {
                    ChildobjList.Add(GetChildState("ICCAppLevelErrorNextState", state.ICCAppLevelErrorNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
                if (state.ICCHardwareLevelErrorNextState != "255")
                {
                    ChildobjList.Add(GetChildState("ICCHardwareLevelErrorNextState", state.ICCHardwareLevelErrorNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
                if (state.ProcessNotPerformNextState != "255")
                {
                    ChildobjList.Add(GetChildState("ProcessNotPerformNextState", state.ProcessNotPerformNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
                }
            }



            TransStateObj.BrandId          = state.BrandId;
            TransStateObj.ConfigId         = state.ConfigId;
            TransStateObj.Id               = state.StateNumber;
            TransStateObj.StateDescription = state.StateDescription;
            TransStateObj.Type             = state.StateType;
            TransStateObj.TransactionName  = processRow[7].ToString();

            TransStateObj.PropertyGrid.SelectedObject = state;
            TransStateObj.ParentStateList             = ParentobjList;
            TransStateObj.ChildStateList = ChildobjList;
            designerCanvas.TransactionList.Add(TransStateObj);

            return(StateList);
        }