Beispiel #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            InputInvoiceViewModel inputInvoice = new InputInvoiceViewModel();

            inputInvoice.Identifier  = Guid.NewGuid();
            inputInvoice.InvoiceDate = DateTime.Now;

            InputInvoiceAddEdit addEditForm = new InputInvoiceAddEdit(inputInvoice, true, false);

            addEditForm.InputInvoiceCreatedUpdated += new InputInvoiceHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("ULAZNE_FAKTURE")), 95, addEditForm);
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentInputInvoice == null)
            {
                MainWindow.WarningMessage = ((string)Application.Current.FindResource("Nije_moguće_menjati_ulayne_faktureUzvičnik"));
                return;
            }

            InputInvoiceAddEdit InputInvoiceAddEditForm = new InputInvoiceAddEdit(CurrentInputInvoice, false);

            InputInvoiceAddEditForm.InputInvoiceCreatedUpdated += new InputInvoiceHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("ULAZNE_FAKTURE")), 95, InputInvoiceAddEditForm);
        }