public override Object StateChanged(string SelectedProperty, string newValue, Object ClassInstance, PropertyGrid SelectedPgrid) { //FillStateFromPropertyGrid(ClassInstance, SelectedPgrid); StateH Selectedstate = new StateH(); StateH Dynamicstate = new StateH(); Selectedstate = (StateH)SelectedPgrid.SelectedObject; Dynamicstate = (StateH)ClassInstance; Dynamicstate._Description = Selectedstate.StateDescription; Dynamicstate.BrandId = Selectedstate.BrandId; Dynamicstate.ConfigId = Selectedstate.ConfigId; Dynamicstate._cancelNextState = Selectedstate._cancelNextState; Dynamicstate._fdkANextState = Selectedstate._fdkANextState; Dynamicstate._fdkBNextState = Selectedstate._fdkBNextState; Dynamicstate._fdkCNextState = Selectedstate._fdkCNextState; Dynamicstate._fdkDNextState = Selectedstate._fdkDNextState; Dynamicstate._screen = Selectedstate._screen; Dynamicstate._timeoutNextState = Selectedstate._timeoutNextState; Dynamicstate._keyPad = Selectedstate._keyPad; Dynamicstate._displayID = Selectedstate._displayID; Dynamicstate._EntryModeBufferDisplay = Selectedstate._EntryModeBufferDisplay; return(Dynamicstate); }
public override object CreateInsertCommandScript(PropertyGrid SelectedPgrid, string ProjectName, string TransactionName, int ExtensionStateNumber) { StateH State = new StateH(); State = (StateH)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.ScreenNumber, State.TimeoutNextState, State.CancelNextState, State.FDK_A_NextState, State.FDK_B_NextState, State.FDK_C_NextState, State.FDK_D_NextState, State.EntryModeBufferDisplay, State.ConfigId, State.BrandId, State.ConfigVersion); SqlStringList.Add(sql); return(SqlStringList); }
public override Object FillPropertyGridFromState(Object ClassInstance, PropertyGrid SelectedPgrid) { StateH Selectedstate = new StateH(); StateH Dynamicstate = new StateH(); Selectedstate = (StateH)SelectedPgrid.SelectedObject; Dynamicstate = (StateH)ClassInstance; Dynamicstate.BrandId = Selectedstate.BrandId; Dynamicstate.ConfigId = Selectedstate.ConfigId; Dynamicstate._Description = Selectedstate.StateDescription; //Dynamicstate._cancelnextState = Selectedstate._cancelnextState; //Dynamicstate._fdkANextState = Selectedstate._fdkANextState; //Dynamicstate._fdkBNextState = Selectedstate._fdkBNextState; //Dynamicstate._fdkCNextState = Selectedstate._fdkCNextState; //Dynamicstate._fdkDNextState = Selectedstate._fdkDNextState; Dynamicstate._screen = Selectedstate._screen; //Dynamicstate._timeoutnextState = Selectedstate._timeoutnextState; Dynamicstate._keyPad = Selectedstate._keyPad; Dynamicstate._displayID = Selectedstate._displayID; Dynamicstate._EntryModeBufferDisplay = Selectedstate._EntryModeBufferDisplay; return(Dynamicstate); }
public override object FillStatesFromDB(object[] processRow, ArrayList StateList) { StateH state = new StateH(); 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._screen = processRow[8].ToString(); state._timeoutNextState = processRow[9].ToString(); state._cancelNextState = processRow[10].ToString(); state._fdkANextState = processRow[11].ToString(); state._fdkBNextState = processRow[12].ToString(); state._fdkCNextState = processRow[13].ToString(); state._fdkDNextState = processRow[14].ToString(); state._EntryModeBufferDisplay = processRow[15].ToString(); state._keyPad = state.EntryModeBufferDisplay.Substring(0, 2); state._displayID = state.EntryModeBufferDisplay.Substring(2, 1); state.ConfigId = processRow[16].ToString(); state.BrandId = processRow[17].ToString(); state.ConfigVersion = processRow[18].ToString(); //NextState Kontrolu #region nextState arrange-parent and pointer if (state.TimeoutNextState != "255") { ChildobjList.Add(GetChildState("TimeoutNextState", state.TimeoutNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber)); } if (state.CancelNextState != "255") { ChildobjList.Add(GetChildState("CancelNextState", state.CancelNextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber)); } if (state.FDK_A_NextState != "255") { ChildobjList.Add(GetChildState("FDK_A_NextState", state.FDK_A_NextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber)); } if (state.FDK_B_NextState != "255") { ChildobjList.Add(GetChildState("FDK_B_NextState", state.FDK_B_NextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber)); } if (state.FDK_C_NextState != "255") { ChildobjList.Add(GetChildState("FDK_C_NextState", state.FDK_C_NextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber)); } if (state.FDK_D_NextState != "255") { ChildobjList.Add(GetChildState("FDK_D_NextState", state.FDK_D_NextState, StateList, processRow[7].ToString(), state.StateType, state.StateNumber)); } #endregion 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); }