Пример #1
0
        private void btnVendorPayment_Click(object sender, RoutedEventArgs e)
        {
            VendorPurchases.vendorName = null;
            VendorPayment vp = new VendorPayment();

            vp.ShowDialog();
        }
        private void paymentButton_Click(object sender, RoutedEventArgs e)
        {
            vendorName = textBlockVName.Text;
            VendorPayment vp = new VendorPayment();

            vp.InputChanged                 += OnDialogInputChanged;
            vp.lblHeading.Visibility         = Visibility.Collapsed;
            vp.comboBoxVendorName.Visibility = Visibility.Collapsed;
            vp.lblName.Visibility            = Visibility.Visible;
            vp.labelVendorName.Visibility    = Visibility.Visible;
            vp.Show();
        }