public override Object FillStatesFromDB(object[] processRow, ArrayList StateList)
        {
            StatePlus state = new StatePlus();
            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._Description = processRow[4].ToString();
            state.StateType    = processRow[5].ToString();

            state._ICCInitStartedNextState    = processRow[8].ToString();
            state._ICCInitNotStartedNextState = processRow[9].ToString();
            state._ICIInitRequirment          = processRow[10].ToString();
            state._AutomaticICCAppFlag        = processRow[11].ToString();
            state._ICCAppValidationFlag       = processRow[12].ToString();
            state._CardholderConfirmationFlag = processRow[13].ToString();
            state._ScreenToClearScreenNumber  = processRow[14].ToString();
            state._Reserved = processRow[15].ToString();

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

            //NextState Kontrolu
            if (state.ICCInitStartedNextState != "255")
            {
                ChildobjList.Add(GetChildState("ICCInitStartedNextState", state.ICCInitStartedNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber));
            }

            if (state.ICCInitNotStartedNextState != "255")
            {
                ChildobjList.Add(GetChildState("ICCInitNotStartedNextState", state.ICCInitNotStartedNextState, 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);
        }
        public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber)
        {
            StatePlus State = new StatePlus();

            State = (StatePlus)SelectedPgrid.SelectedObject;
            List <string> SqlStringList = new List <string>();

            string sql = SqlStr;

            sql = string.Format(sql, Guid, Status, DateTime.Now.ToString("yyyyMMddHHmmss"), State.StateNumber, State.StateDescription,
                                State.StateType, ProjectName, TransactionName, State.ICCInitStartedNextState, State.ICCInitNotStartedNextState, State.ICIInitRequirment,
                                State.AutomaticICCAppFlag, State.ICCAppValidationFlag, State.CardholderConfirmationFlag, State.ScreenToClearScreenNumber,
                                State.Reserved, State.ConfigId, State.BrandId, State.ConfigVersion);
            SqlStringList.Add(sql);

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

            Selectedstate = (StatePlus)SelectedPgrid.SelectedObject;
            Dynamicstate  = (StatePlus)ClassInstance;

            Dynamicstate._Description = Selectedstate.StateDescription;
            Dynamicstate.BrandId      = Selectedstate.BrandId;
            Dynamicstate.ConfigId     = Selectedstate.ConfigId;

            //Dynamicstate._ICCInitStartedNextState = Selectedstate._ICCInitStartedNextState;
            //Dynamicstate._ICCInitNotStartedNextState = Selectedstate._ICCInitNotStartedNextState;
            Dynamicstate._ICIInitRequirment          = Selectedstate.ICIInitRequirment;
            Dynamicstate._AutomaticICCAppFlag        = Selectedstate.AutomaticICCAppFlag;
            Dynamicstate._ICCAppValidationFlag       = Selectedstate.ICCAppValidationFlag;
            Dynamicstate._CardholderConfirmationFlag = Selectedstate.CardholderConfirmationFlag;
            Dynamicstate._ScreenToClearScreenNumber  = Selectedstate.ScreenToClearScreenNumber;
            Dynamicstate._Reserved = Selectedstate.Reserved;

            return(Dynamicstate);
        }