public static string ToNative(this StructuralBridgeVehicle assembly) { return(new GSABridgeVehicle() { Value = assembly }.SetGWACommand()); }
public static string ToNative(this StructuralBridgeVehicle assembly) { return(SchemaConversion.Helper.ToNativeTryCatch(assembly, () => new GSABridgeVehicle() { Value = assembly }.SetGWACommand())); }
public void ParseGWACommand() { if (this.GWACommand == null) { return; } var obj = new StructuralBridgeVehicle(); var pieces = this.GWACommand.ListSplit("\t"); var counter = 1; // Skip identifier this.GSAId = Convert.ToInt32(pieces[counter++]); obj.ApplicationId = HelperClass.GetApplicationId(this.GetGSAKeyword(), this.GSAId); obj.Name = pieces[counter++].Trim(new char[] { '"' }); //TO DO : replace these defaults with the real thing obj.Width = 0; this.Value = obj; }