RuntimeManagerConvertValueToString Method |
Namespace: OpenTestSystem.Otx.Runtime.Api
static class Program { static void Main() { RuntimeManager rt = new RuntimeManager(); rt.Load("C:\\Sample.ptx"); IProcedure procedure = rt.GetMainProcedure(); foreach (IParameter param in procedure.Parameters) { if (param is InParameter) { System.Windows.Forms.MessageBox.Show(rt.ConvertValueToString((param as IInParameter).Value)); } else if (param is InOutParameter) { System.Windows.Forms.MessageBox.Show(rt.ConvertValueToString((param as IInOutParameter).Value)); } else if (param is OutParameter) { System.Windows.Forms.MessageBox.Show(rt.ConvertValueToString((param as IOutParameter).Value)); } } } }