private void BtnInvoiceNumber_Click(object sender, RoutedEventArgs e) { TaxInvoice invoiceToPrint = ((Button)sender).Tag as TaxInvoice; CreateInvoice invoice = new CreateInvoice(invoiceToPrint); invoice.ShowDialog(); }
private void MenuGenerateBill_Click(object sender, RoutedEventArgs e) { CreateInvoice createInvoice = new CreateInvoice(); createInvoice.Show(); }