public SetupForm(Trigger aTrigger, IItemBrowser aBrowser) { mTrigger = aTrigger; mBrowser = aBrowser; InitializeComponent(); if (mTrigger.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mTrigger.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mTrigger.mValueItemHandle); } if (mTrigger.mSetItemHandle != -1) { itemEditBox_Set.ItemName = mBrowser.getItemNameByHandle(mTrigger.mSetItemHandle); itemEditBox_Set.ItemToolTip = mBrowser.getItemToolTipByHandle(mTrigger.mSetItemHandle); } if (mTrigger.mResetItemHandle != -1) { itemEditBox_Reset.ItemName = mBrowser.getItemNameByHandle(mTrigger.mResetItemHandle); itemEditBox_Reset.ItemToolTip = mBrowser.getItemToolTipByHandle(mTrigger.mResetItemHandle); } radioButton_SR.Checked = mTrigger.SR_RS; radioButton_RS.Checked = mTrigger.SR_RS == false; }
public SetupForm(Calculator aCalculator, IItemBrowser aBrowser) { mCalculator = aCalculator; mBrowser = aBrowser; InitializeComponent(); if (mCalculator.mInput1ItemHandle != -1) { itemEditBox_In1.ItemName = mBrowser.getItemNameByHandle(mCalculator.mInput1ItemHandle); itemEditBox_In1.ItemToolTip = mBrowser.getItemToolTipByHandle(mCalculator.mInput1ItemHandle); } if (mCalculator.mInput2ItemHandle != -1) { itemEditBox_In2.ItemName = mBrowser.getItemNameByHandle(mCalculator.mInput2ItemHandle); itemEditBox_In2.ItemToolTip = mBrowser.getItemToolTipByHandle(mCalculator.mInput2ItemHandle); } if (mCalculator.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mCalculator.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mCalculator.mValueItemHandle); } comboBox_Operation.Items.AddRange(Calculator.Operations); comboBox_Operation.SelectedIndex = mCalculator.OperationIndex; }
public SetupForm(Trigger aTrigger, IItemBrowser aBrowser) { mTrigger = aTrigger; mBrowser = aBrowser; InitializeComponent(); if (mTrigger.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mTrigger.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mTrigger.mValueItemHandle); } if (mTrigger.mSetItemHandle != -1) { itemEditBox_Set.ItemName = mBrowser.getItemNameByHandle(mTrigger.mSetItemHandle); itemEditBox_Set.ItemToolTip = mBrowser.getItemToolTipByHandle(mTrigger.mSetItemHandle); } if (mTrigger.mResetItemHandle != -1) { itemEditBox_Reset.ItemName = mBrowser.getItemNameByHandle(mTrigger.mResetItemHandle); itemEditBox_Reset.ItemToolTip = mBrowser.getItemToolTipByHandle(mTrigger.mResetItemHandle); } radioButton_SR.Checked = mTrigger.SR_RS; radioButton_RS.Checked = mTrigger.SR_RS == false; }
public SetupForm(Generator aGenerator, IItemBrowser aBrowser) { mGenerator = aGenerator; mBrowser = aBrowser; InitializeComponent(); if (mGenerator.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mGenerator.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mGenerator.mOnItemHandle); } if (mGenerator.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mGenerator.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mGenerator.mValueItemHandle); } comboBox_Signal.Items.AddRange(Enum.GetNames(typeof(ESignals))); comboBox_Signal.SelectedIndex = mGenerator.SignalIndex; spinEdit_Bias.Value = (decimal)mGenerator.Bias; spinEdit_Amplitude.Value = (decimal)mGenerator.Amplitude; spinEdit_PeriodMS.Value = mGenerator.PeriodMS; spinEdit_TurnMS.Value = mGenerator.TurnMS; spinEdit_StartMS.Value = mGenerator.StartMS; }
public SetupForm(Logic aLogic, IItemBrowser aBrowser) { mLogic = aLogic; mBrowser = aBrowser; InitializeComponent(); if (mLogic.mInput1ItemHandle != -1) { itemEditBox_In1.ItemName = mBrowser.getItemNameByHandle(mLogic.mInput1ItemHandle); itemEditBox_In1.ItemToolTip = mBrowser.getItemToolTipByHandle(mLogic.mInput1ItemHandle); } checkBox_In1Inverse.Checked = mLogic.Input1Inverse; if (mLogic.mInput2ItemHandle != -1) { itemEditBox_In2.ItemName = mBrowser.getItemNameByHandle(mLogic.mInput2ItemHandle); itemEditBox_In2.ItemToolTip = mBrowser.getItemToolTipByHandle(mLogic.mInput2ItemHandle); } checkBox_In2Inverse.Checked = mLogic.Input2Inverse; if (mLogic.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mLogic.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mLogic.mValueItemHandle); } comboBox_Operator.Items.AddRange(Enum.GetNames(typeof(EOperators))); comboBox_Operator.SelectedIndex = mLogic.OperatorIndex; }
public SetupForm(Generator aGenerator, IItemBrowser aBrowser) { mGenerator = aGenerator; mBrowser = aBrowser; InitializeComponent(); if (mGenerator.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mGenerator.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mGenerator.mOnItemHandle); } if (mGenerator.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mGenerator.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mGenerator.mValueItemHandle); } comboBox_Signal.Items.AddRange(Generator.Signals); comboBox_Signal.SelectedIndex = mGenerator.SignalIndex; spinEdit_Bias.Value = (decimal)mGenerator.Bias; spinEdit_Amplitude.Value = (decimal)mGenerator.Amplitude; spinEdit_PeriodMS.Value = mGenerator.PeriodMS; spinEdit_TurnMS.Value = mGenerator.TurnMS; }
public SetupForm(Move aMove, IItemBrowser aBrowser) { mMove = aMove; mBrowser = aBrowser; InitializeComponent(); if (mMove.mXValueItemHandle != -1) { itemEditBox_X.ItemName = mBrowser.getItemNameByHandle(mMove.mXValueItemHandle); itemEditBox_X.ItemToolTip = mBrowser.getItemToolTipByHandle(mMove.mXValueItemHandle); } if (mMove.mYValueItemHandle != -1) { itemEditBox_Y.ItemName = mBrowser.getItemNameByHandle(mMove.mYValueItemHandle); itemEditBox_Y.ItemToolTip = mBrowser.getItemToolTipByHandle(mMove.mYValueItemHandle); } if (mMove.mVisibleItemHandle != -1) { itemEditBox_Visible.ItemName = mBrowser.getItemNameByHandle(mMove.mVisibleItemHandle); itemEditBox_Visible.ItemToolTip = mBrowser.getItemToolTipByHandle(mMove.mVisibleItemHandle); } if (mMove.mBmp != null) { mImgMemStrm = mMove.mImgMemStrm; mBmp = mMove.mBmp; pictureBox.Image = mMove.mBmp; } }
public SetupForm(OneOfTwo aOneOfTwo, IItemBrowser aBrowser) { mOneOfTwo = aOneOfTwo; mBrowser = aBrowser; InitializeComponent(); if (mOneOfTwo.mSwitchItemHandle != -1) { itemEditBox_Switch.ItemName = mBrowser.getItemNameByHandle(mOneOfTwo.mSwitchItemHandle); itemEditBox_Switch.ItemToolTip = mBrowser.getItemToolTipByHandle(mOneOfTwo.mSwitchItemHandle); } if (mOneOfTwo.mInput1ItemHandle != -1) { itemEditBox_In1.ItemName = mBrowser.getItemNameByHandle(mOneOfTwo.mInput1ItemHandle); itemEditBox_In1.ItemToolTip = mBrowser.getItemToolTipByHandle(mOneOfTwo.mInput1ItemHandle); } if (mOneOfTwo.mInput2ItemHandle != -1) { itemEditBox_In2.ItemName = mBrowser.getItemNameByHandle(mOneOfTwo.mInput2ItemHandle); itemEditBox_In2.ItemToolTip = mBrowser.getItemToolTipByHandle(mOneOfTwo.mInput2ItemHandle); } if (mOneOfTwo.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mOneOfTwo.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mOneOfTwo.mValueItemHandle); } spinEdit_In1ToIn2MS.Value = mOneOfTwo.In1ToIn2MS; spinEdit_In2ToIn1MS.Value = mOneOfTwo.In2ToIn1MS; }
public SetupForm(Delay aDelay, IItemBrowser aBrowser) { mDelay = aDelay; mBrowser = aBrowser; InitializeComponent(); if (mDelay.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mDelay.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mOnItemHandle); } if (mDelay.mInValueItemHandle != -1) { itemEditBox_In.ItemName = mBrowser.getItemNameByHandle(mDelay.mInValueItemHandle); itemEditBox_In.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mInValueItemHandle); } if (mDelay.mOutValueItemHandle != -1) { itemEditBox_Out.ItemName = mBrowser.getItemNameByHandle(mDelay.mOutValueItemHandle); itemEditBox_Out.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mOutValueItemHandle); } spinEdit_Delay.Value = (decimal)mDelay.DelayMS; }
private void ItemButtonClick(object aSender, EventArgs aEventArgs) { var lItemEditBox = (ItemEditBox)aSender; int lHandle = mBrowser.getItemHandleByForm(mBrowser.getItemHandleByName(lItemEditBox.ItemName), this); lItemEditBox.ItemName = mBrowser.getItemNameByHandle(lHandle); lItemEditBox.ItemToolTip = mBrowser.getItemToolTipByHandle(lHandle); }
public SetupForm(AnalogSensor aAnalogSensor, IItemBrowser aBrowser) { mAnalogSensor = aAnalogSensor; mBrowser = aBrowser; InitializeComponent(); comboBox_Operation.Items.AddRange(ValuesCompare.Operations); if (mAnalogSensor.mValueItemHandle != -1) { itemEditBox_Item.ItemName = mBrowser.getItemNameByHandle(mAnalogSensor.mValueItemHandle); itemEditBox_Item.ItemToolTip = mBrowser.getItemToolTipByHandle(mAnalogSensor.mValueItemHandle); } textBox_Units.Text = mAnalogSensor.Units; textBox_RawMin.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.InMin); textBox_RawMax.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.InMax); checkBox_Fault.Checked = mAnalogSensor.mFault; textBox_FValue.Text = StringUtils.ObjectToString(mAnalogSensor.mFaultValue); textBox_PMin.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.OutMin); textBox_PMax.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.OutMax); for (int i = 0; i < mAnalogSensor.mThdItemHandles.Length; i++) { dataGridView_Thd.Rows.Add(mAnalogSensor.mThdOperations[i].OperationName, StringUtils.ObjectToString(mAnalogSensor.Thresholds[i]), mBrowser.getItemNameByHandle(mAnalogSensor.mThdItemHandles[i])); } if (dataGridView_Thd.RowCount == 0) { button_Delete.Enabled = false; button_Modify.Enabled = false; } }
public SetupForm(Splitter aSplitter, IItemBrowser aBrowser) { mSplitter = aSplitter; mBrowser = aBrowser; InitializeComponent(); if (mSplitter.mBitsValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mSplitter.mBitsValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mSplitter.mBitsValueItemHandle); } switch (mSplitter.mDataFlow) { case EDataFlow.FROM: comboBox_DataFlow.SelectedIndex = 0; break; case EDataFlow.TO: comboBox_DataFlow.SelectedIndex = 1; break; case EDataFlow.BOTH: comboBox_DataFlow.SelectedIndex = 2; break; } for (int i = 0; i < mSplitter.mBitItemHandles.Length; i++) { if (mSplitter.mBitItemHandles[i] != -1) { dataGridView_Bit.Rows.Add((decimal)i, mBrowser.getItemNameByHandle(mSplitter.mBitItemHandles[i])); } } if (dataGridView_Bit.RowCount == 0) { button_Delete.Enabled = false; button_Modify.Enabled = false; } }
public SetupForm(WriteToFile aWriteToFile, IItemBrowser aBrowser) { mWriteToFile = aWriteToFile; mBrowser = aBrowser; InitializeComponent(); if (mWriteToFile.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mWriteToFile.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mWriteToFile.mOnItemHandle); } buttonEdit_Path.Text = mWriteToFile.mPath; textBox_FileName.Text = mWriteToFile.mFileName; checkBox_WriteChanges.Checked = mWriteToFile.mWriteChangesOnly; textBox_Delimiter.Text = mWriteToFile.mDelimiter; spinEdit_Timeout.Properties.MinValue = MiscUtils.TimeSlice; spinEdit_Timeout.Value = mWriteToFile.RateMS; for (int i = 0; i < mWriteToFile.mItems.Length; i++) { mCloneItems.Add(mWriteToFile.mItems[i]); } updateTable(); updateButtons(); }
public SetupForm(AnalogSensor aAnalogSensor, IItemBrowser aBrowser) { mAnalogSensor = aAnalogSensor; mBrowser = aBrowser; InitializeComponent(); comboBox_Operation.Items.AddRange(ValuesCompare.Operations); if (mAnalogSensor.mValueItemHandle != -1) { itemEditBox_Item.ItemName = mBrowser.getItemNameByHandle(mAnalogSensor.mValueItemHandle); itemEditBox_Item.ItemToolTip = mBrowser.getItemToolTipByHandle(mAnalogSensor.mValueItemHandle); } textBox_Units.Text = mAnalogSensor.Units; textBox_RawMin.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.InMin); textBox_RawMax.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.InMax); checkBox_Fault.Checked = mAnalogSensor.mFault; textBox_FValue.Text = StringUtils.ObjectToString(mAnalogSensor.mFaultValue); textBox_PMin.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.OutMin); textBox_PMax.Text = StringUtils.ObjectToString(mAnalogSensor.mValueScale.OutMax); for (int i = 0; i < mAnalogSensor.mThdItemHandles.Length; i++) { dataGridView_Thd.Rows.Add(mAnalogSensor.mThdOperations[i].OperationName, StringUtils.ObjectToString(mAnalogSensor.Thresholds[i]), mBrowser.getItemNameByHandle(mAnalogSensor.mThdItemHandles[i])); } if (dataGridView_Thd.RowCount == 0) { button_Delete.Enabled = false; button_Modify.Enabled = false; } }
public SetupForm(Splitter aSplitter, IItemBrowser aBrowser) { mSplitter = aSplitter; mBrowser = aBrowser; InitializeComponent(); if (mSplitter.mBitsValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mSplitter.mBitsValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mSplitter.mBitsValueItemHandle); } switch (mSplitter.mDataFlow) { case EDataFlow.FROM: comboBox_DataFlow.SelectedIndex = 0; break; case EDataFlow.TO: comboBox_DataFlow.SelectedIndex = 1; break; case EDataFlow.BOTH: comboBox_DataFlow.SelectedIndex = 2; break; } for (int i = 0; i < mSplitter.mBitItemHandles.Length; i++) { if (mSplitter.mBitItemHandles[i] != -1) { dataGridView_Bit.Rows.Add((decimal)i, mBrowser.getItemNameByHandle(mSplitter.mBitItemHandles[i])); } } if (dataGridView_Bit.RowCount == 0) { button_Delete.Enabled = false; button_Modify.Enabled = false; } }
public SetupForm(Robot aRobot, IItemBrowser aBrowser) { mRobot = aRobot; mBrowser = aBrowser; InitializeComponent(); mSP = new ItemEditBox[6] { itemEditBox_SP1, itemEditBox_SP2, itemEditBox_SP3, itemEditBox_SP4, itemEditBox_SP5, itemEditBox_SP6 }; mAngle = new ItemEditBox[6] { itemEditBox_Angle1, itemEditBox_Angle2, itemEditBox_Angle3, itemEditBox_Angle4, itemEditBox_Angle5, itemEditBox_Angle6 }; mMaxSpeed = new TextBox[6] { textBox_MaxSpeed1, textBox_MaxSpeed2, textBox_MaxSpeed3, textBox_MaxSpeed4, textBox_MaxSpeed5, textBox_MaxSpeed6 }; mMaxAngle = new TextBox[6] { textBox_MaxAngle1, textBox_MaxAngle2, textBox_MaxAngle3, textBox_MaxAngle4, textBox_MaxAngle5, textBox_MaxAngle6 }; mMinAngle = new TextBox[6] { textBox_MinAngle1, textBox_MinAngle2, textBox_MinAngle3, textBox_MinAngle4, textBox_MinAngle5, textBox_MinAngle6 }; for (int i = 0; i < 6; i++) { if (mRobot.mAxisSPItemHandle[i] != -1) { mSP[i].ItemName = mBrowser.getItemNameByHandle(mRobot.mAxisSPItemHandle[i]); mSP[i].ItemToolTip = mBrowser.getItemToolTipByHandle(mRobot.mAxisSPItemHandle[i]); } if (mRobot.mAxisAngleItemHandle[i] != -1) { mAngle[i].ItemName = mBrowser.getItemNameByHandle(mRobot.mAxisAngleItemHandle[i]); mAngle[i].ItemToolTip = mBrowser.getItemToolTipByHandle(mRobot.mAxisAngleItemHandle[i]); } mMaxSpeed[i].Text = StringUtils.ObjectToString(mRobot.mMaxSpeed[i]); mMaxAngle[i].Text = StringUtils.ObjectToString(mRobot.mMaxAngle[i]); mMinAngle[i].Text = StringUtils.ObjectToString(mRobot.mMinAngle[i]); } checkBox_Send.Checked = mRobot.SendData; spinEdit_Update.Value = mRobot.UpdateRoKiSimMS; }
public SetupForm(Counter aCounter, IItemBrowser aBrowser) { mCounter = aCounter; mBrowser = aBrowser; InitializeComponent(); if (mCounter.mInValueItemHandle != -1) { itemEditBox_Input.ItemName = mBrowser.getItemNameByHandle(mCounter.mInValueItemHandle); itemEditBox_Input.ItemToolTip = mBrowser.getItemToolTipByHandle(mCounter.mInValueItemHandle); } if (mCounter.mOutValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mCounter.mOutValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mCounter.mOutValueItemHandle); } comboBox_Front.Items.AddRange(Enum.GetNames(typeof(EFront))); comboBox_Front.SelectedIndex = (int)mCounter.Front; if (mCounter.PositiveInc) { comboBox_P.SelectedIndex = 0; } else { comboBox_P.SelectedIndex = 1; } if (mCounter.NegativeInc) { comboBox_N.SelectedIndex = 0; } else { comboBox_N.SelectedIndex = 1; } checkBox_ReadOutput.Checked = mCounter.mReadOutput; }
public SetupForm(Lag aLag, IItemBrowser aBrowser) { mLag = aLag; mBrowser = aBrowser; InitializeComponent(); if (mLag.mInputItemHandle != -1) { itemEditBox_Input.ItemName = mBrowser.getItemNameByHandle(mLag.mInputItemHandle); itemEditBox_Input.ItemToolTip = mBrowser.getItemToolTipByHandle(mLag.mInputItemHandle); } if (mLag.mValueItemHandle != -1) { itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mLag.mValueItemHandle); itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mLag.mValueItemHandle); } spinEdit_Gain.Value = (decimal)mLag.Gain; spinEdit_LagMS.Value = mLag.LagMS; }
public SetupForm(Delay aDelay, IItemBrowser aBrowser) { mDelay = aDelay; mBrowser = aBrowser; InitializeComponent(); if (mDelay.mInValueItemHandle != -1) { itemEditBox_In.ItemName = mBrowser.getItemNameByHandle(mDelay.mInValueItemHandle); itemEditBox_In.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mInValueItemHandle); } if (mDelay.mOutValueItemHandle != -1) { itemEditBox_Out.ItemName = mBrowser.getItemNameByHandle(mDelay.mOutValueItemHandle); itemEditBox_Out.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mOutValueItemHandle); } checkBox_Inverse.Checked = mDelay.Inverse; spinEdit_On.Value = mDelay.OnDelayMS; spinEdit_Off.Value = mDelay.OffDelayMS; }
public SetupForm(Delay aDelay, IItemBrowser aBrowser) { mDelay = aDelay; mBrowser = aBrowser; InitializeComponent(); if (mDelay.mInValueItemHandle != -1) { itemEditBox_In.ItemName = mBrowser.getItemNameByHandle(mDelay.mInValueItemHandle); itemEditBox_In.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mInValueItemHandle); } if (mDelay.mOutValueItemHandle != -1) { itemEditBox_Out.ItemName = mBrowser.getItemNameByHandle(mDelay.mOutValueItemHandle); itemEditBox_Out.ItemToolTip = mBrowser.getItemToolTipByHandle(mDelay.mOutValueItemHandle); } checkBox_Inverse.Checked = mDelay.Inverse; spinEdit_On.Value = mDelay.OnDelayMS; spinEdit_Off.Value = mDelay.OffDelayMS; }
public SetupForm(XYDependency aXYDependency, IItemBrowser aBrowser) { mXYDependency = aXYDependency; mBrowser = aBrowser; mPoints = mXYDependency.Points; InitializeComponent(); if (mXYDependency.mInputItemHandle != -1) { itemEditBox_X.ItemName = mBrowser.getItemNameByHandle(mXYDependency.mInputItemHandle); itemEditBox_X.ItemToolTip = mBrowser.getItemToolTipByHandle(mXYDependency.mInputItemHandle); } if (mXYDependency.mValueItemHandle != -1) { itemEditBox_Y.ItemName = mBrowser.getItemNameByHandle(mXYDependency.mValueItemHandle); itemEditBox_Y.ItemToolTip = mBrowser.getItemToolTipByHandle(mXYDependency.mValueItemHandle); } updateChart(); updatePoints(); updateButtons(); }
private void dataGridViewItems_CellToolTipTextNeeded(object aSender, DataGridViewCellToolTipTextNeededEventArgs aEventArgs) { if (aEventArgs.RowIndex == -1) { return; } string lItem = mDataTable.Rows[aEventArgs.RowIndex][aEventArgs.ColumnIndex].ToString(); if (String.IsNullOrWhiteSpace(lItem) == false) { aEventArgs.ToolTipText = mBrowser.getItemToolTipByHandle(mBrowser.getItemHandleByName(lItem)); } }
private void fastColoredTextBox_Code_ToolTipNeeded(object aSender, ToolTipNeededEventArgs aEventArgs) { var lRange = new Range(aSender as FastColoredTextBox, aEventArgs.Place, aEventArgs.Place); try { int lHandle = mBrowser.getItemHandleByName(lRange.GetFragment("[^\n ']").Text); if (lHandle != -1) { aEventArgs.ToolTipText = mBrowser.getItemToolTipByHandle(lHandle); } } catch { } }
public SetupForm(ScaleReal aScaleReal, IItemBrowser aBrowser) { mScaleReal = aScaleReal; mBrowser = aBrowser; InitializeComponent(); if (aScaleReal.mInValueItemHandle != -1) { itemEditBox_Input.ItemName = mBrowser.getItemNameByHandle(aScaleReal.mInValueItemHandle); itemEditBox_Input.ItemToolTip = mBrowser.getItemToolTipByHandle(aScaleReal.mInValueItemHandle); } if (aScaleReal.mOutValueItemHandle != -1) { itemEditBox_Output.ItemName = mBrowser.getItemNameByHandle(aScaleReal.mOutValueItemHandle); itemEditBox_Output.ItemToolTip = mBrowser.getItemToolTipByHandle(aScaleReal.mOutValueItemHandle); } textBox_InMax.Text = StringUtils.ObjectToString(aScaleReal.mValueScale.InMax); textBox_InMin.Text = StringUtils.ObjectToString(aScaleReal.mValueScale.InMin); textBox_OutMax.Text = StringUtils.ObjectToString(aScaleReal.mValueScale.OutMax); textBox_OutMin.Text = StringUtils.ObjectToString(aScaleReal.mValueScale.OutMin); }
public AddEditRecordForm(IItemBrowser aBrowser, int aItemHandle, object aValue) { mBrowser = aBrowser; mItemHandle = aItemHandle; mValue = aValue; InitializeComponent(); if (mItemHandle != -1) { itemEditBox_Item.ItemName = mBrowser.getItemNameByHandle(mItemHandle); itemEditBox_Item.ItemToolTip = mBrowser.getItemToolTipByHandle(mItemHandle); } buttonEdit_Value.Text = StringUtils.ObjectToString(mValue); }
public OptionsForm(SetupForm aSetupForm, IItemBrowser aBrowser) { mSetupForm = aSetupForm; mBrowser = aBrowser; InitializeComponent(); if (mSetupForm.OnItemHandle != -1) { itemEditBox_OnItem.ItemName = mBrowser.getItemNameByHandle(mSetupForm.OnItemHandle); itemEditBox_OnItem.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.OnItemHandle); } spinEdit_Trigger.Value = mSetupForm.TriggerTimeMS; spinEdit_Watchdog.Value = mSetupForm.WatchdogMS; }
public SetupForm(Move aMove, IItemBrowser aBrowser) { mMove = aMove; mBrowser = aBrowser; InitializeComponent(); if (mMove.mXValueItemHandle != -1) { itemEditBox_X.ItemName = mBrowser.getItemNameByHandle(mMove.mXValueItemHandle); itemEditBox_X.ItemToolTip = mBrowser.getItemToolTipByHandle(mMove.mXValueItemHandle); } if (mMove.mYValueItemHandle != -1) { itemEditBox_Y.ItemName = mBrowser.getItemNameByHandle(mMove.mYValueItemHandle); itemEditBox_Y.ItemToolTip = mBrowser.getItemToolTipByHandle(mMove.mYValueItemHandle); } mVisibleItemHandle = mMove.mVisibleItemHandle; mMovingByUserItemHandle = mMove.mMovingByUserItemHandle; mUserMove = mMove.mUserCanMove; mWidthItemHandle = mMove.mWidthItemHandle; mHeightItemHandle = mMove.mHeightItemHandle; mLabelItemHandle = mMove.mLabelItemHandle; mLabelFont = mMove.mLabelFont; mLabelColor = mMove.mLabelColor; mRotateItemHandle = mMove.mRotateItemHandle; if (mMove.mBmp != null) { mImgMemStrm = mMove.mImgMemStrm; mBmp = mMove.mBmp; } updateForm(); }
public SetupForm(Command aCommand, IItemBrowser aBrowser) { mCommand = aCommand; mBrowser = aBrowser; InitializeComponent(); comboBox_Lang.Items.AddRange(mCommand.Languages); if (String.IsNullOrWhiteSpace(mCommand.Language) == false) { comboBox_Lang.SelectedItem = mCommand.Language; } if (mCommand.mValueItemHandle != -1) { itemEditBox.ItemName = mBrowser.getItemNameByHandle(mCommand.mValueItemHandle); itemEditBox.ItemToolTip = mBrowser.getItemToolTipByHandle(mCommand.mValueItemHandle); } mHolder = mCommand.mHolder.clone(); }
public SetupForm(DiscreteSensor aDiscreteSensor, IItemBrowser aBrowser) { mDiscreteSensor = aDiscreteSensor; mBrowser = aBrowser; InitializeComponent(); if (mDiscreteSensor.mValueItemHandle != -1) { itemEditBox.ItemName = mBrowser.getItemNameByHandle(mDiscreteSensor.mValueItemHandle); itemEditBox.ItemToolTip = mBrowser.getItemToolTipByHandle(mDiscreteSensor.mValueItemHandle); } textBox_True.Text = mDiscreteSensor.TrueSpeech; textBox_False.Text = mDiscreteSensor.FalseSpeech; checkBox_TellTrue.Checked = mDiscreteSensor.TellTrue; checkBox_TellFalse.Checked = mDiscreteSensor.TellFalse; checkBox_LogTrue.Checked = mDiscreteSensor.LogTrue; checkBox_LogFalse.Checked = mDiscreteSensor.LogFalse; }
public OptionsForm(SetupForm aSetupForm, IItemBrowser aBrowser) { mSetupForm = aSetupForm; mBrowser = aBrowser; InitializeComponent(); if (mSetupForm.mVisibleItemHandle != -1) { itemEditBox_Visible.ItemName = mBrowser.getItemNameByHandle(mSetupForm.mVisibleItemHandle); itemEditBox_Visible.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.mVisibleItemHandle); } if (mSetupForm.mWidthItemHandle != -1) { itemEditBox_Width.ItemName = mBrowser.getItemNameByHandle(mSetupForm.mWidthItemHandle); itemEditBox_Width.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.mWidthItemHandle); } if (mSetupForm.mHeightItemHandle != -1) { itemEditBox_Height.ItemName = mBrowser.getItemNameByHandle(mSetupForm.mHeightItemHandle); itemEditBox_Height.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.mHeightItemHandle); } if (mSetupForm.mLabelItemHandle != -1) { itemEditBox_Label.ItemName = mBrowser.getItemNameByHandle(mSetupForm.mLabelItemHandle); itemEditBox_Label.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.mLabelItemHandle); } buttonEdit_Font.Text = StringUtils.ObjectToString(mSetupForm.mLabelFont); colorEdit_Color.Color = mSetupForm.mLabelColor; if (mSetupForm.mRotateItemHandle != -1) { itemEditBox_Rotate.ItemName = mBrowser.getItemNameByHandle(mSetupForm.mRotateItemHandle); itemEditBox_Rotate.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.mRotateItemHandle); } checkBox_UserMove.Checked = mSetupForm.mUserMove; if (mSetupForm.mUserMove && mSetupForm.mMovingByUserItemHandle != -1) { itemEditBox_Moving.ItemName = mBrowser.getItemNameByHandle(mSetupForm.mMovingByUserItemHandle); itemEditBox_Moving.ItemToolTip = mBrowser.getItemToolTipByHandle(mSetupForm.mMovingByUserItemHandle); } }
public SetupForm(TimeLine aTimeLine, IItemBrowser aBrowser) { mTimeLine = aTimeLine; mBrowser = aBrowser; InitializeComponent(); if (mTimeLine.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mTimeLine.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mTimeLine.mOnItemHandle); } checkBox_Loop.Checked = mTimeLine.Loop; foreach (Tuple <long, Snapshot> lSection in mTimeLine.mSections) { mCloneSections.Add(new Tuple <long, Snapshot>(lSection.Item1, lSection.Item2.Clone)); } updateTable(); updateButtons(); }
public SetupForm(Pump aPump, IItemBrowser aBrowser) { mPump = aPump; mBrowser = aBrowser; InitializeComponent(); checkBox_IgnoreCommands.Checked = mPump.IgnoreCommands; if (mPump.mOnCMDItemHandle != -1) { itemEditBox_OnCMD.ItemName = mBrowser.getItemNameByHandle(mPump.mOnCMDItemHandle); itemEditBox_OnCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOnCMDItemHandle); } checkBox_UseOneCommand.Checked = mPump.UseOneCommand; if (mPump.mOffCMDItemHandle != -1) { itemEditBox_OffCMD.ItemName = mBrowser.getItemNameByHandle(mPump.mOffCMDItemHandle); itemEditBox_OffCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOffCMDItemHandle); } if (mPump.mEsdCMDItemHandle != -1) { itemEditBox_EsdCMD.ItemName = mBrowser.getItemNameByHandle(mPump.mEsdCMDItemHandle); itemEditBox_EsdCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mEsdCMDItemHandle); } spinEdit_On.Value = mPump.OnMS; spinEdit_Off.Value = mPump.OffMS; if (mPump.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mPump.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOnItemHandle); } if (mPump.mAlarmItemHandle != -1) { itemEditBox_Alarm.ItemName = mBrowser.getItemNameByHandle(mPump.mAlarmItemHandle); itemEditBox_Alarm.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mAlarmItemHandle); } if (mPump.mPowerItemHandle != -1) { itemEditBox_Power.ItemName = mBrowser.getItemNameByHandle(mPump.mPowerItemHandle); itemEditBox_Power.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mPowerItemHandle); } if (mPump.mRemoteItemHandle != -1) { itemEditBox_Remote.ItemName = mBrowser.getItemNameByHandle(mPump.mRemoteItemHandle); itemEditBox_Remote.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mRemoteItemHandle); } if (mPump.mOnBtnItemHandle != -1) { itemEditBox_OnBtn.ItemName = mBrowser.getItemNameByHandle(mPump.mOnBtnItemHandle); itemEditBox_OnBtn.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOnBtnItemHandle); } if (mPump.mOffBtnItemHandle != -1) { itemEditBox_OffBtn.ItemName = mBrowser.getItemNameByHandle(mPump.mOffBtnItemHandle); itemEditBox_OffBtn.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOffBtnItemHandle); } }
public SetupForm(Valve aValve, IItemBrowser aBrowser) { mValve = aValve; mBrowser = aBrowser; InitializeComponent(); if (mValve.mRemoteItemHandle != -1) { itemEditBox_Remote.ItemName = mBrowser.getItemNameByHandle(mValve.mRemoteItemHandle); itemEditBox_Remote.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mRemoteItemHandle); } spinEdit_LimitMS.Value = mValve.LimitSwitchMS; spinEdit_TravelMS.Value = mValve.TravelMS; if (mValve.mAnalogCtrl) { tabControl_Control.SelectedIndex = 1; } else { tabControl_Control.SelectedIndex = 0; } if (mValve.mPositionCMDItemHandle != -1) { itemEditBox_PositionCMD.ItemName = mBrowser.getItemNameByHandle(mValve.mPositionCMDItemHandle); itemEditBox_PositionCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mPositionCMDItemHandle); } textBox_PositionCMDMax.Text = StringUtils.ObjectToString(mValve.mPositionCMDScale.InMax); textBox_PositionCMDMin.Text = StringUtils.ObjectToString(mValve.mPositionCMDScale.InMin); if (mValve.mOpenCMDItemHandle != -1) { itemEditBox_OpenCMD.ItemName = mBrowser.getItemNameByHandle(mValve.mOpenCMDItemHandle); itemEditBox_OpenCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mOpenCMDItemHandle); } checkBox_UseOneCommand.Checked = mValve.UseOneCommand; if (mValve.mCloseCMDItemHandle != -1) { itemEditBox_CloseCMD.ItemName = mBrowser.getItemNameByHandle(mValve.mCloseCMDItemHandle); itemEditBox_CloseCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mCloseCMDItemHandle); } if (mValve.mStopCMDItemHandle != -1) { itemEditBox_StopCMD.ItemName = mBrowser.getItemNameByHandle(mValve.mStopCMDItemHandle); itemEditBox_StopCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mStopCMDItemHandle); } checkBox_ImpCtrl.Checked = mValve.mImpulseCtrl; if (mValve.mEsdCMDItemHandle != -1) { itemEditBox_EsdCMD.ItemName = mBrowser.getItemNameByHandle(mValve.mEsdCMDItemHandle); itemEditBox_EsdCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mEsdCMDItemHandle); } checkBox_EsdOpen.Checked = mValve.mEsdOpen; if (mValve.mOpenLimitItemHandle != -1) { itemEditBox_OpenLimit.ItemName = mBrowser.getItemNameByHandle(mValve.mOpenLimitItemHandle); itemEditBox_OpenLimit.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mOpenLimitItemHandle); } if (mValve.mOpensItemHandle != -1) { itemEditBox_Opens.ItemName = mBrowser.getItemNameByHandle(mValve.mOpensItemHandle); itemEditBox_Opens.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mOpensItemHandle); } if (mValve.mClosedLimitItemHandle != -1) { itemEditBox_ClosedLimit.ItemName = mBrowser.getItemNameByHandle(mValve.mClosedLimitItemHandle); itemEditBox_ClosedLimit.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mClosedLimitItemHandle); } if (mValve.mClosesItemHandle != -1) { itemEditBox_Closes.ItemName = mBrowser.getItemNameByHandle(mValve.mClosesItemHandle); itemEditBox_Closes.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mClosesItemHandle); } if (mValve.mRotationItemHandle != -1) { itemEditBox_Rotation.ItemName = mBrowser.getItemNameByHandle(mValve.mRotationItemHandle); itemEditBox_Rotation.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mRotationItemHandle); } if (mValve.mPositionItemHandle != -1) { itemEditBox_Position.ItemName = mBrowser.getItemNameByHandle(mValve.mPositionItemHandle); itemEditBox_Position.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mPositionItemHandle); } textBox_PositionMax.Text = StringUtils.ObjectToString(mValve.mPositionScale.InMax); textBox_PositionMin.Text = StringUtils.ObjectToString(mValve.mPositionScale.InMin); if (mValve.mAlarm1ItemHandle != -1) { itemEditBox_Alarm1.ItemName = mBrowser.getItemNameByHandle(mValve.mAlarm1ItemHandle); itemEditBox_Alarm1.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mAlarm1ItemHandle); } if (mValve.mAlarm2ItemHandle != -1) { itemEditBox_Alarm2.ItemName = mBrowser.getItemNameByHandle(mValve.mAlarm2ItemHandle); itemEditBox_Alarm2.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mAlarm2ItemHandle); } if (mValve.mPowerItemHandle != -1) { itemEditBox_Power.ItemName = mBrowser.getItemNameByHandle(mValve.mPowerItemHandle); itemEditBox_Power.ItemToolTip = mBrowser.getItemToolTipByHandle(mValve.mPowerItemHandle); } checkBox_IgnoreCommands.Checked = mValve.IgnoreCommands; checkBox_ForceLimSwitches.Checked = mValve.ForseLimSwitches; checkBox_PositionF.Checked = mValve.PositionFault; textBox_FValue.Text = StringUtils.ObjectToString(mValve.mFaultValue); }
public SetupForm(Pump aPump, IItemBrowser aBrowser) { mPump = aPump; mBrowser = aBrowser; InitializeComponent(); checkBox_IgnoreCommands.Checked = mPump.IgnoreCommands; if (mPump.mOnCMDItemHandle != -1) { itemEditBox_OnCMD.ItemName = mBrowser.getItemNameByHandle(mPump.mOnCMDItemHandle); itemEditBox_OnCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOnCMDItemHandle); } if (mPump.mOffCMDItemHandle != -1) { itemEditBox_OffCMD.ItemName = mBrowser.getItemNameByHandle(mPump.mOffCMDItemHandle); itemEditBox_OffCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOffCMDItemHandle); } if (mPump.mEsdCMDItemHandle != -1) { itemEditBox_EsdCMD.ItemName = mBrowser.getItemNameByHandle(mPump.mEsdCMDItemHandle); itemEditBox_EsdCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mEsdCMDItemHandle); } spinEdit_On.Value = mPump.OnMS; spinEdit_Off.Value = mPump.OffMS; if (mPump.mOnItemHandle != -1) { itemEditBox_On.ItemName = mBrowser.getItemNameByHandle(mPump.mOnItemHandle); itemEditBox_On.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOnItemHandle); } if (mPump.mAlarmItemHandle != -1) { itemEditBox_Alarm.ItemName = mBrowser.getItemNameByHandle(mPump.mAlarmItemHandle); itemEditBox_Alarm.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mAlarmItemHandle); } if (mPump.mPowerItemHandle != -1) { itemEditBox_Power.ItemName = mBrowser.getItemNameByHandle(mPump.mPowerItemHandle); itemEditBox_Power.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mPowerItemHandle); } if (mPump.mRemoteItemHandle != -1) { itemEditBox_Remote.ItemName = mBrowser.getItemNameByHandle(mPump.mRemoteItemHandle); itemEditBox_Remote.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mRemoteItemHandle); } if (mPump.mOnBtnItemHandle != -1) { itemEditBox_OnBtn.ItemName = mBrowser.getItemNameByHandle(mPump.mOnBtnItemHandle); itemEditBox_OnBtn.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOnBtnItemHandle); } if (mPump.mOffBtnItemHandle != -1) { itemEditBox_OffBtn.ItemName = mBrowser.getItemNameByHandle(mPump.mOffBtnItemHandle); itemEditBox_OffBtn.ItemToolTip = mBrowser.getItemToolTipByHandle(mPump.mOffBtnItemHandle); } }
public SetupForm(Conveyor aConveyor, IItemBrowser aBrowser) { mConveyor = aConveyor; mBrowser = aBrowser; InitializeComponent(); checkBox_IgnoreCommands.Checked = mConveyor.IgnoreCommands; if (mConveyor.mStartCMDItemHandle != -1) { itemEditBox_StartCMD.ItemName = mBrowser.getItemNameByHandle(mConveyor.mStartCMDItemHandle); itemEditBox_StartCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mStartCMDItemHandle); } checkBox_UseOneCommand.Checked = mConveyor.UseOneCommand; if (mConveyor.mStopCMDItemHandle != -1) { itemEditBox_StopCMD.ItemName = mBrowser.getItemNameByHandle(mConveyor.mStopCMDItemHandle); itemEditBox_StopCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mStopCMDItemHandle); } spinEdit_StartMS.Value = mConveyor.StartMS; spinEdit_StopMS.Value = mConveyor.StopMS; if (mConveyor.mSpeedCMDItemHandle != -1) { itemEditBox_SpeedCMD.ItemName = mBrowser.getItemNameByHandle(mConveyor.mSpeedCMDItemHandle); itemEditBox_SpeedCMD.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mSpeedCMDItemHandle); } textBox_SpeedCMDMax.Text = StringUtils.ObjectToString(mConveyor.mSpeedCMDScale.InMax); textBox_SpeedCMDMin.Text = StringUtils.ObjectToString(mConveyor.mSpeedCMDScale.InMin); if (mConveyor.mMovingItemHandle != -1) { itemEditBox_Moving.ItemName = mBrowser.getItemNameByHandle(mConveyor.mMovingItemHandle); itemEditBox_Moving.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mMovingItemHandle); } if (mConveyor.mAlarmItemHandle != -1) { itemEditBox_Alarm.ItemName = mBrowser.getItemNameByHandle(mConveyor.mAlarmItemHandle); itemEditBox_Alarm.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mAlarmItemHandle); } if (mConveyor.mReverseItemHandle != -1) { itemEditBox_Reverse.ItemName = mBrowser.getItemNameByHandle(mConveyor.mReverseItemHandle); itemEditBox_Reverse.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mReverseItemHandle); } if (mConveyor.mAccelerationItemHandle != -1) { itemEditBox_Acceleration.ItemName = mBrowser.getItemNameByHandle(mConveyor.mAccelerationItemHandle); itemEditBox_Acceleration.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mAccelerationItemHandle); } if (mConveyor.mBrakingItemHandle != -1) { itemEditBox_Braking.ItemName = mBrowser.getItemNameByHandle(mConveyor.mBrakingItemHandle); itemEditBox_Braking.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mBrakingItemHandle); } if (mConveyor.mSpeedItemHandle != -1) { itemEditBox_Speed.ItemName = mBrowser.getItemNameByHandle(mConveyor.mSpeedItemHandle); itemEditBox_Speed.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mSpeedItemHandle); } textBox_SpeedMax.Text = StringUtils.ObjectToString(mConveyor.mSpeedScale.InMax); textBox_SpeedMin.Text = StringUtils.ObjectToString(mConveyor.mSpeedScale.InMin); if (mConveyor.mForwardItemHandle != -1) { itemEditBox_Forward.ItemName = mBrowser.getItemNameByHandle(mConveyor.mForwardItemHandle); itemEditBox_Forward.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mForwardItemHandle); } if (mConveyor.mBackwardItemHandle != -1) { itemEditBox_Backward.ItemName = mBrowser.getItemNameByHandle(mConveyor.mBackwardItemHandle); itemEditBox_Backward.ItemToolTip = mBrowser.getItemToolTipByHandle(mConveyor.mBackwardItemHandle); } }