public static void RestaurerParametre(Window w) { ConfigModule Cfg = new ConfigModule(DimEcran); w.Left = Cfg.GetP <Double>(w.Name + "_Left").GetValeur <Double>(); w.Top = Cfg.GetP <Double>(w.Name + "_Top").GetValeur <Double>(); w.Width = Cfg.GetP <Double>(w.Name + "_Width").GetValeur <Double>(); w.Height = Cfg.GetP <Double>(w.Name + "_Height").GetValeur <Double>(); }
public static void SauverParametre(Window w) { ConfigModule Cfg = new ConfigModule(DimEcran); Cfg.GetP <Double>(w.Name + "_Left").SetValeur <Double>(w.Left); Cfg.GetP <Double>(w.Name + "_Top").SetValeur <Double>(w.Top); Cfg.GetP <Double>(w.Name + "_Width").SetValeur <Double>(w.Width); Cfg.GetP <Double>(w.Name + "_Height").SetValeur <Double>(w.Height); Cfg.Sauver(); }