I tried to understand how it works but i am very slow with this(( so i decided ti ask here. In my prohramm i have static public class with different variables arrays, tabControls, Sizes, Pens an so on. But i need to set and get values of the variables from different threads how could i do it?
i have a class
public static class GLOBAL_STATIC_DATA
{
//.....
private static Size _get_Active_Project_ViewPort_Size()
{
//.....
}
public static Size Active_Project_ViewPort_Size
{
get
{
return _get_Active_Project_ViewPort_Size();
}
}
public static int Get_Panorama_Original_Image_Width()
{
}
public static TabControl MainTab = new TabContol();
public static int someInt = 100;
}
I need to write and to read all of that from different threads, could somebody help how shoud i change this static class to be able do that.