public void LoadUI()
        {
            main_window = new UI_Window(this);
            {
                treballs_text = new UI_Text(new Point(20, 10), 30, 100, "Treball:");
                treballs_text.SetFont("Courier New", 8.5f);
                main_window.AddElement(treballs_text);

                treballs_combobox = new UI_ComboBox(new Point(25, 30), 180, 40);
                treballs_combobox.SetFont("Courier New", 8.5f);
                main_window.AddElement(treballs_combobox);

                data_text = new UI_Text(new Point(240, 10), 30, 100, "Data:");
                data_text.SetFont("Courier New", 8.5f);
                main_window.AddElement(data_text);

                data_dataselect = new UI_DateSelect(new Point(242, 30), 200, 100);
                data_dataselect.SetFont("Courier New", 8.5f);
                main_window.AddElement(data_dataselect);

                estat_panel = new UI_Panel(new Point(25, 60), 380, 40);
                main_window.AddElement(estat_panel);

                pendent_check = new UI_RadioButton(new Point(0, 0), "Pendent");
                pendent_check.SetFont("Courier New", 8.5f);
                estat_panel.AddElement(pendent_check);
                proces_check = new UI_RadioButton(new Point(120, 0), "Procés");
                proces_check.SetFont("Courier New", 8.5f);
                estat_panel.AddElement(proces_check);
                acabat_check = new UI_RadioButton(new Point(240, 0), "Acabat");
                acabat_check.SetFont("Courier New", 8.5f);
                estat_panel.AddElement(acabat_check);


                descripcio_text = new UI_Text(new Point(20, 100), 100, 30, "Descripció:");
                descripcio_text.SetFont("Courier New", 8.5f);
                main_window.AddElement(descripcio_text);

                descripcio_text_input = new UI_TextInput(new Point(22, 120), 421, 70);
                descripcio_text_input.SetFont("Courier New", 8.5f);
                main_window.AddElement(descripcio_text_input);

                add_treball_button = new UI_Button(new Point(463, 120), 30, 30, "+");
                add_treball_button.SetFont("Courier New", 8.5f);
                add_treball_button.GetElement().Click += new System.EventHandler(this.AfegeigParte);
                main_window.AddElement(add_treball_button);

                remove_treball_button = new UI_Button(new Point(463, 160), 30, 30, "-");
                remove_treball_button.SetFont("Courier New", 8.5f);
                remove_treball_button.GetElement().Click += new System.EventHandler(this.EliminaParte);
                main_window.AddElement(remove_treball_button);

                grid = new UI_Grid(new Point(22, 210), 970, 350);

                List <object> unitats    = new List <object>();
                List <object> maquinaria = new List <object>();
                List <object> aplicadors = new List <object>();
                List <object> adobs      = new List <object>();

                for (int i = 0; i < propietaris_manager.GetUnitatsMetriques().Count; i++)
                {
                    unitats.Add(propietaris_manager.GetUnitatsMetriques()[i]);
                }

                for (int i = 0; i < propietaris_manager.GetMaquinaria().Count; i++)
                {
                    maquinaria.Add(propietaris_manager.GetMaquinaria()[i]);
                }

                for (int i = 0; i < propietaris_manager.GetPersonal().Count; i++)
                {
                    aplicadors.Add(propietaris_manager.GetPersonal()[i]);
                }

                for (int i = 0; i < propietaris_manager.GetAdobs().Count; i++)
                {
                    adobs.Add(propietaris_manager.GetAdobs()[i]);
                }

                grid.AddColumn("Treball", 50, true); grid.AddColumn("Descripció", 500); grid.AddColumn("Unitats", 130, false); grid.AddColumn("tblLinea", 0, true, false);
                grid.AddComboBoxColumn("Unitat Metrica", 130, unitats); grid.AddColumn("Parcela viti", 100, true); grid.AddColumn("Ha", 60, true);
                grid.AddCheckBoxColumn("Fertirrigació", 100, false); grid.AddComboBoxColumn("Eficacia tractament", 150, false, "0", "1", "2", "3");
                grid.AddComboBoxColumn("Aplicador", 100, aplicadors); grid.AddComboBoxColumn("Maquinaria", 100, maquinaria);
                grid.AddComboBoxColumn("Adob", 100, adobs);
                grid.SetFont("Courier New", 8.5f);
                main_window.AddElement(grid);

                accepta_button = new UI_Button(new Point(20, 575), 150, 25, "Desa i surt");
                accepta_button.GetElement().Click += new System.EventHandler(this.Accepta);
                accepta_button.AddImage(principal.imageList1, 2);
                accepta_button.SetFont("Courier New", 8.5f);
                accepta_button.SetColor(Color.Cornsilk);
                main_window.AddElement(accepta_button);
            }
        }