2024-10-08 09:53:24 +03:00
|
|
|
|
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
|
|
|
|
|
{
|
2024-10-08 11:44:50 +03:00
|
|
|
|
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(); }
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-08 15:14:10 +03:00
|
|
|
|
public ContextMenuStrip MenuStrip
|
|
|
|
|
{
|
|
|
|
|
get { return ContextMenuStrip; }
|
|
|
|
|
set { ContextMenuStrip = value; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-08 09:53:24 +03:00
|
|
|
|
public ParameterControl(string name, string text = "")
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
Label.Text = name + ':';
|
|
|
|
|
Textbox.Text = text;
|
|
|
|
|
}
|
2024-10-08 11:44:50 +03:00
|
|
|
|
|
|
|
|
|
public ParameterControl()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
Label.Text = "";
|
|
|
|
|
Textbox.Text = "";
|
|
|
|
|
}
|
2024-10-08 09:53:24 +03:00
|
|
|
|
}
|
|
|
|
|
}
|