public GenereazaPostare(string connectionString)
        {
            InitializeComponent();
            MaximizeBox = false;
            MinimizeBox = false;

            this.connectionString = connectionString;

            locations = DataAcces.GetLocations();
            comboBox1.Items.AddRange(locations.Select(x => x.Localitate).ToArray());
        }
        public VizualizareExcursie(string connectionString)
        {
            this.connectionString = connectionString;
            InitializeComponent();

            MaximizeBox = false;
            MinimizeBox = false;

            dateTimePicker1.Value = DateTime.ParseExact("05.19.2017", "MM.dd.yyyy", null);
            dateTimePicker2.Value = DateTime.ParseExact("07.27.2017", "MM.dd.yyyy", null);

            timer.Interval = 2000;
            timer.Tick    += new EventHandler(timer_Tick);

            locations = DataAcces.GetLocations();
        }