Beispiel #1
0
        public MenuMontre(FenJeuMontre parent)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //

            this.parent       = parent;
            this.folderSnake  = parent.getFolderSnake();
            this.folderConfig = parent.getFolderConfig();
            this.filsConfig   = parent.getFilsConfig();

            if (parent.verifExistFile(filsConfig))
            {
                using (StreamReader strmReader = new StreamReader(filsConfig)) {
                    String   ligne = strmReader.ReadLine();
                    String[] tabConfig;

                    if (ligne != null)
                    {
                        tabConfig = ligne.Split(';');

                        saisieHauteJeu.Text = tabConfig[0];
                        saisieLargJeu.Text  = tabConfig[1];
                        saisieTempsJeu.Text = tabConfig[2];
                        saisieVit.Text      = tabConfig[3];
                    }
                }
            }
        }
        public StatistiqueMontre(FenJeuMontre parent)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //

            this.parent      = parent;
            this.folderSnake = parent.getFolderSnake();
            this.filsSave    = parent.getFilsSave();

            lireRecordMontres();
        }