Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            App.mainWindow.Hide();
            ReceiptDetail x = new ReceiptDetail();

            x.Show();
        }
Example #2
0
        private void btnExport_Click(object sender, RoutedEventArgs e)
        {
            if (dgReceipt.SelectedIndex == -1)
            {
                MessageBox.Show("Please select a Receipt!");
            }
            else
            {
                SharedData.CurrentReceipt = (ReceiptRow)dgReceipt.Items[dgReceipt.SelectedIndex];

                App.mainWindow.Hide();
                ReceiptDetail x = new ReceiptDetail();
                x.Show();
            }
        }