private void PenalizariApartamButton_Click(object sender, EventArgs e)
        {
            data2 = new DataTable();

            data2.Columns.Add(new DataColumn("Apartament", typeof(int)));
            data2.Columns.Add(new DataColumn("Nume titular", typeof(string)));
            data2.Columns.Add(new DataColumn("Scara", typeof(string)));
            data2.Columns.Add(new DataColumn("Restante debit chelt", typeof(int)));
            data2.Columns.Add(new DataColumn("Restante debit fond reparatii", typeof(int)));
            data2.Columns.Add(new DataColumn("Restante debit fond rulment", typeof(int)));
            data2.Columns.Add(new DataColumn("Restante debit fonduri speciale", typeof(int)));
            data2.Columns.Add(new DataColumn("Total restante", typeof(int)));
            data2.Columns.Add(new DataColumn("Penalizari neachitate la zi", typeof(int)));
            data2.Columns.Add(new DataColumn("Penalizare in luna", typeof(int)));
            ColectChelSiRepartDataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

            ColectChelSiRepartDataGridView.DataSource = data2;

            AdaugareButton.Hide();
            StergereButton.Hide();
            RepartizareButton.Hide();
            NCColectButton.Hide();
            NCRepartButton.Hide();
            TiparireButton.Hide();



            RecalculeazaButton.Hide();
            RecapitulatieButton.Hide();

            DeschidereButton.Show();
            DeschidereButton.Location = AdaugareButton.Location;
            NCPenalizariApartamenteButton.Show();
            NCPenalizariApartamenteButton.Location = NCColectButton.Location;
        }
        public DeschidereListedePlataLunare()
        {
            InitializeComponent();

            deschidereInitialLocation = DeschidereButton.Location;
            RecalculeazaButton.Hide();
            RecapitulatieButton.Hide();
            NCPenalizariApartamenteButton.Hide();
            TiparireButton.Hide();



            SetData();
        }
        private void ColectCheltsiRepartButton_Click(object sender, EventArgs e)
        {
            ColectChelSiRepartDataGridView.DataSource = data1;

            AdaugareButton.Show();
            StergereButton.Show();
            RepartizareButton.Show();
            NCColectButton.Show();
            NCRepartButton.Show();
            RecapitulatieButton.Hide();
            RecalculeazaButton.Hide();
            NCPenalizariApartamenteButton.Hide();
            TiparireButton.Hide();


            DeschidereButton.Show();
            DeschidereButton.Location = deschidereInitialLocation;
        }