GtaVUsersInfo/Parameter.cs

23 lines
570 B
C#
Raw Permalink Normal View History

using GtaVUsersInfo.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace GtaVUsersInfo
{
public class Parameter
{
public string Name { get; set; }
public string Text { get; set; }
public static List<Parameter> ConvertToParameterList(List<ParameterControl> parameter)
{
return parameter.Select(param => new Parameter
{
Name = param.ParamName,
Text = param.ParamText
}).ToList();
}
}
}