Пример #1
0
        private void BtnAddPhotographer_Click(object sender, RoutedEventArgs e)
        {
            selectedShow = (Show)((FrameworkElement)e.OriginalSource).DataContext;
            CloureParam cloureParam = new CloureParam("miembros", "1");

            CloureManager.Navigate(typeof(UsersSelectionPage), cloureParam);
        }
Пример #2
0
        private void MenuFlyoutItem_Click(object sender, RoutedEventArgs e)
        {
            MenuFlyoutItem menuFlyoutItem = (MenuFlyoutItem)sender;
            User           item           = (User)menuFlyoutItem.Tag;

            if (menuFlyoutItem.Name == "edit")
            {
                edit(item.id);
            }
            if (menuFlyoutItem.Name == "delete")
            {
                DisplayDeleteDialog(item);
            }
            if (menuFlyoutItem.Name == "add_payment")
            {
                CloureManager.Navigate(typeof(UserAddPaymentPage), item.id);
            }
            if (menuFlyoutItem.Name == "account_summary")
            {
                CloureManager.Navigate(typeof(UserCCPage), item.id);
            }
            if (menuFlyoutItem.Name == "generate_random_pass")
            {
                DisplayRegenatePass(item);
            }
        }
        private async void finalizar()
        {
            if (btnAceptar.IsEnabled)
            {
                receipt.cartItems       = carrito;
                receipt.CustomerId      = CustomerId;
                receipt.CompanyBranchId = (int)txtSucursal.SelectedValue;
                receipt.TypeId          = (int)txtComprobante.SelectedValue;

                if (receipt.cartItems.Count == 0)
                {
                    var dialog = new MessageDialog("Debes agregar items al carrito");
                    await dialog.ShowAsync();
                }
                else if (receipt.CustomerId == 0)
                {
                    var dialog = new MessageDialog("Debes agregar un cliente al comprobante");
                    await dialog.ShowAsync();
                }
                else
                {
                    CloureManager.Navigate(typeof(InvoicingFinishPage), receipt);
                }
            }
        }
Пример #4
0
        private void GlobalCommand_Click(object sender, RoutedEventArgs e)
        {
            Button globalCommand = (Button)sender;

            if (globalCommand.Name == "add")
            {
                CloureManager.Navigate(typeof(UserAddPage));
            }
        }
 private void btnAddEntity_Click(object sender, RoutedEventArgs e)
 {
     if (SelectedPaymentMethodId == 5 || SelectedPaymentMethodId == 7)
     {
         CloureManager.Navigate(typeof(BankAddPage));
     }
     if (SelectedPaymentMethodId == 2)
     {
         CloureManager.Navigate(typeof(DebitCardAddPage));
     }
     if (SelectedPaymentMethodId == 3)
     {
         CloureManager.Navigate(typeof(CreditCardAddPage));
     }
 }
 private void product_selected(ProductService product)
 {
     lstProductos.Visibility = Visibility.Collapsed;
     txtProducto.Text        = product.Id.ToString();
     if (product.MeasureUnitId == 3)
     {
         CloureManager.Navigate(typeof(SetUnitsByMeasurePage), product);
     }
     else
     {
         CartItem cartItem = new CartItem();
         double   cant     = 0;
         double.TryParse(txtProductoCantidad.Text, out cant);
         cartItem.ImagenPath  = product.ImagePath;
         cartItem.Cantidad    = cant;
         cartItem.ProductoId  = product.Id;
         cartItem.Descripcion = product.Title;
         cartItem.Importe     = product.Importe;
         cartItem.Total       = product.Importe * cant;
         addProductToCarrito(cartItem);
     }
 }
 void edit(int message_id)
 {
     CloureManager.Navigate(typeof(MessageDetailPage), message_id);
 }
 void edit(int id)
 {
     CloureManager.Navigate(typeof(ProductServiceCategoryAddPage), id);
 }
Пример #9
0
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(PlacesPage));
 }
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(TransportsPage));
 }
 private void edit(string id)
 {
     CloureManager.Navigate(typeof(UserGroupAddPage), id);
 }
Пример #12
0
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(DebitCardsPage));
 }
 private void edit(int PropertyId)
 {
     CloureManager.Navigate(typeof(PropertiesAddPage), PropertyId);
 }
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(ShowsPersonalHistoryPage));
 }
Пример #15
0
 void edit(CreditCard bank)
 {
     CloureManager.Navigate(typeof(CreditCardAddPage), bank);
 }
Пример #16
0
 private void BtnAddMultiple_Click(object sender, RoutedEventArgs e)
 {
     CloureManager.Navigate(typeof(ShowsAddMultiplePage));
 }
Пример #17
0
 private void BtnLiquidar_Click(object sender, RoutedEventArgs e)
 {
     CloureManager.Navigate(typeof(ShowAgregarLiquidacion));
 }
 void edit(Bank bank)
 {
     CloureManager.Navigate(typeof(BankAddPage), bank);
 }
 private void HyperlinkPedido_Click(Hyperlink sender, HyperlinkClickEventArgs args)
 {
     finishedDialog.Hide();
     CloureManager.Navigate(typeof(ReceiptDetails), receipt.Id);
     //throw new NotImplementedException();
 }
Пример #20
0
 private void btnBuyStock_Click(object sender, RoutedEventArgs e)
 {
     CloureManager.Navigate(typeof(ProductsServicesBuyStockPage));
 }
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(LinkedAccountsPage));
 }
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(UsersGroupsPage));
 }
Пример #23
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     CloureManager.Navigate(typeof(UserAddPage));
 }
Пример #24
0
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(InvoicingPage));
 }
Пример #25
0
 void edit(int user_id)
 {
     CloureManager.Navigate(typeof(UserAddPage), user_id);
 }
Пример #26
0
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(BandsArtistsPage));
 }
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     CloureManager.Navigate(typeof(ProductServiceCategoryAddPage));
 }
Пример #28
0
 void edit(int id)
 {
     CloureManager.Navigate(typeof(ShowAddPage), id);
 }
Пример #29
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     CloureManager.Navigate(typeof(BankCheckAdd));
 }
 public override void OnModuleCreated()
 {
     CloureManager.Navigate(typeof(CompanyBranchesPage));
 }