Example #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     try
     {
         string filePath;
         string FileName = "ParqueDados.bin";
         filePath = AppDomain.CurrentDomain.BaseDirectory;
         var nParque = Enum.GetValues(typeof(Sector));
         foreach (var sect in nParque)
         {
             comboBox1.Items.Add(sect.ToString());
         }
         // Abre o ficheiro caso exista
         Regras.GetDados(@filePath, FileName);
         Capacidade();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }