コード例 #1
0
 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());
     }
 }
コード例 #2
0
 private void buttonExit_Click(object sender, RoutedEventArgs e)
 {
     this.Close();
     LocalParameters.RestoreParameters();
 }