using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace GtaVUsersInfo.Controls { public partial class ParameterControl : UserControl { public string ParamName { get { return Label.Text.TrimEnd(':'); } set { Label.Text = value + ':'; } } public int ParamText { get { return int.Parse(Textbox.Text); } set { Textbox.Text = value.ToString(); } } public ContextMenuStrip MenuStrip { get { return ContextMenuStrip; } set { ContextMenuStrip = value; } } public ParameterControl(string name, string text = "") { InitializeComponent(); Label.Text = name + ':'; Textbox.Text = text; } public ParameterControl() { InitializeComponent(); Label.Text = ""; Textbox.Text = ""; } } }