ZForge.Configuration.ConfigHelper.Load C# (CSharp) Method

Load() public static method

public static Load ( IConfigSetting s, System f ) : void
s IConfigSetting
f System
return void
        public static void Load(IConfigSetting s, System.Windows.Forms.Form f)
        {
            int w = s["w"].intValue;
            int h = s["h"].intValue;
            int l = s["l"].intValue;
            int t = s["t"].intValue;

            if (w > 0) f.Width = w;
            if (h > 0) f.Height = h;
            if (s["l"].Exists) f.Left = l;
            if (s["t"].Exists) f.Top = t;
        }
ConfigHelper