public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.RefVariable_returnValue serial_RefVariable_returnValue = serial_Class as FpmlSerializedCSharp.RefVariable_returnValue; FpmlSerializedCSharp.VariableInfo serial_variableInfo = serial_RefVariable_returnValue.VariableInfo_; string variableInfotype = serial_variableInfo.Type_.ValueStr; this.variableInfoViewModel_ = VariableInfoViewModel.CreateVariableInfo(variableInfotype); this.variableInfoViewModel_.setFromSerial(serial_variableInfo); //this.view_ = new RefVariable_returnValueView(); this.view_.DataContext = this; }
public static VariableInfoViewModel CreateVariableInfo(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.VariableInfo serial_VariableInfo = serial_Class as FpmlSerializedCSharp.VariableInfo; string typeStr = serial_VariableInfo.Type_.ValueStr; return VariableInfoViewModel.CreateVariableInfo(typeStr); }