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(); }
public static void AjouterParametre(Window w) { ConfigModule Cfg = new ConfigModule(DimEcran); Cfg.AjouterP <Double>(w.Name + "_Left", w.Left, ""); Cfg.AjouterP <Double>(w.Name + "_Top", w.Top, ""); Cfg.AjouterP <Double>(w.Name + "_Width", w.Width, ""); Cfg.AjouterP <Double>(w.Name + "_Height", w.Height, ""); Cfg.Sauver(); }