من یک کلاس تعریف کردم برای ذخیره ویژگی های کلاسم ه این شکل
namespace vars
{
class var
{
public static bool button_hidden= true;
public static string my_text= ""; //
public static string color= ""; //
}
}
و توی فرم میخوام به این شکل ازش استفاده کنم ولی اروور میده
namespace TextFinder
{
public partial class Form1: Form
{
public Transposer()
{
var.button_hidden= false;
var.my_text= textBox1.Text;
InitializeComponent();
}
}
مشکل چیه ؟!!