private void buttonSave_Click(object sender, RoutedEventArgs e) { try { this.Close(); LocalParameters.username = txtBoxName.Text; PDFPrinter pdfPrint = new PDFPrinter(); pdfPrint.PrintPDF(); localCon.LocalAddRecord(); LocalParameters.RestoreParameters(); LogWriter.LogWrite("Added to SQLite DB."); } catch (Exception g) { MessageBox.Show(g.Message); LogWriter.LogWrite(g.ToString()); } }
private void buttonExit_Click(object sender, RoutedEventArgs e) { this.Close(); LocalParameters.RestoreParameters(); }