Пример #1
0
        private void btn_delete(object sender, RoutedEventArgs e)
        {
            DataRowView dataRowView = (DataRowView)((Button)e.Source).DataContext;
            String      invoice     = dataRowView["invoice_num"].ToString();

            popup.view_purchase view = new popup.view_purchase(this, invoice, 0);
            view.ShowDialog();
        }
Пример #2
0
        private void btn_view(object sender, RoutedEventArgs e)
        {
            Forms.Reports forms       = new Forms.Reports();
            DataRowView   dataRowView = (DataRowView)((Button)e.Source).DataContext;
            String        invoice     = dataRowView["invoice_num"].ToString();

            popup.view_purchase view = new popup.view_purchase(forms, invoice, 1);
            view.ShowDialog();
        }