Exemplo n.º 1
0
        private void ConfigForm_Load(object sender, EventArgs e)
        {
            _confiStream = new ConfigStream("UnITTT.Screensaver", ".ini");
            try
            {
                _config = (Config)_confiStream.Read();

                trackBar1.Value = _config.PlayVelocity;
                trackBar2.Value = _config.MoveVelocity;
            }
            catch
            {
                _config = new Config();
            }
        }
Exemplo n.º 2
0
 private void LoadConfig()
 {
     _confiStream = new ConfigStream("UniTTT.Screensaver", ".ini");
     try
     {
         _config = (Config)_confiStream.Read();
         if (_config == null)
         {
             _config = new Config();
             _config.PlayVelocity = 1;
             _config.MoveVelocity = 1;
         }
     }
     catch
     {
         _config = new Config();
         _config.PlayVelocity = 1;
         _config.MoveVelocity = 1;
     }
 }