Beispiel #1
0
 public void RefreshTpsControl(string strTaskName, string strModuleName, string strDataName, TpsControl tpsControl)
 {
     if (tpsControl is NumEditor)
     {
         ABB.Robotics.Controllers.RapidDomain.RapidData rapidData = this.controller.Rapid.GetRapidData(strTaskName, strModuleName, strDataName);
         ABB.Robotics.Controllers.RapidDomain.Num       number    = new ABB.Robotics.Controllers.RapidDomain.Num();
         number.FillFromString(rapidData.Value.ToString());
         ((NumEditor)tpsControl).Value = Convert.ToDecimal(number);
         rapidData.Dispose();
     }
 }
Beispiel #2
0
 public void ApplyTpsControl(string strTaskName, string strModuleName, string strDataName, TpsControl tpsControl)
 {
     if (tpsControl is NumEditor)
     {
         ABB.Robotics.Controllers.RapidDomain.RapidData rapidData = this.controller.Rapid.GetRapidData(strTaskName, strModuleName, strDataName);
         ABB.Robotics.Controllers.RapidDomain.Num       number    = new ABB.Robotics.Controllers.RapidDomain.Num(Convert.ToDouble(((NumEditor)tpsControl).Value));
         rapidData.Value = number;
         rapidData.Dispose();
     }
 }