Пример #1
0
 public FormBaseConocimiento()
 {
     InitializeComponent();
     ListPeliculas = CRUDPeliculas.GetListPeliculas();
     LoadGrid();
     SetBtnSaveGreen();
 }
Пример #2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (CRUDPeliculas.SaveFile(ListPeliculas))
         {
             SetBtnSaveGreen();
         }
         else
         {
             SetBtnSaveRed();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #3
0
        private void LoadComboAtributos()
        {
            ListPeliculas = CRUDPeliculas.GetListPeliculas();
            if (ListAtributos == null)
            {
                ListAtributos = new List <StringValue>();
                foreach (var item in ListPeliculas)
                {
                    foreach (var item2 in item.Atributos)
                    {
                        if (ListAtributos.FindIndex(x => x.Value == item2.Value) == -1)
                        {
                            ListAtributos.Add(item2);
                        }
                    }
                }
            }

            cmbAtributos.DataSource = ListAtributos;
        }