コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }