Ejemplo n.º 1
0
        private void MethodLoadArea()
        {
            PropertyVisibilityCheckBoxAllTables = ESGR_Mesa.Opcion == "C" ? Visibility.Visible : Visibility.Collapsed;
            PropertyVisibilityCerrar            = ESGR_Mesa.Opcion == "C" ? Visibility.Visible : Visibility.Collapsed;
            PropertyVisibilityAnular            = ESGR_Mesa.Opcion == "A" ? Visibility.Visible : Visibility.Collapsed;
            PropertyVisibilityAbrir             = ESGR_Mesa.Opcion == "A" ? Visibility.Visible : Visibility.Collapsed;

            CollectionESGR_MesaArea.Source = new BSGR_MesaArea().GetCollectionMesaArea();
            SelectedESGR_MesaArea          = CollectionESGR_MesaArea.FirstOrDefault();
        }
 private async void MethodLoadArea()
 {
     await Task.Factory.StartNew(() =>
     {
         try
         {
             CollectionESGR_MesaArea.Source = new BSGR_MesaArea().GetCollectionMesaArea();
             SelectedESGR_MesaArea          = CollectionESGR_MesaArea.FirstOrDefault();
         }
         catch (Exception ex)
         {
             CmpMessageBox.Show(SGRMessage.BusquedaMesaDisponible, ex.Message, CmpButton.Aceptar);
         }
     });
 }
 private void MethodLoadArea()
 {
     CollectionESGR_MesaArea.Source = new BSGR_MesaArea().GetCollectionMesaArea();
     SelectedESGR_MesaArea          = CollectionESGR_MesaArea.FirstOrDefault();
 }