private void BtnPrintSlip(object sender, RoutedEventArgs e) { if (BuyFinished) { da.CreateDocument(txtTotVatInc.Text, txtAmout.Text, txtChange.Text); MessageBox.Show("Slip Printed"); } else { MessageBox.Show("First finish buying process"); } }