Exemplo n.º 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            VatViewModel Vat = new VatViewModel();

            Vat.Identifier = Guid.NewGuid();

            Vat_AddEdit addEditForm = new Vat_AddEdit(Vat, true);

            addEditForm.VatCreatedUpdated += new VatHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, (string)Application.Current.FindResource("Podaci_o_PDV_u"), 95, addEditForm);
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentVat == null)
            {
                MainWindow.WarningMessage = (string)Application.Current.FindResource("Morate_izabrati_stavku");
                return;
            }

            Vat_AddEdit addEditForm = new Vat_AddEdit(CurrentVat, false);

            addEditForm.VatCreatedUpdated += new VatHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, (string)Application.Current.FindResource("Podaci_o_PDV_u"), 95, addEditForm);
        }