-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml.cs
40 lines (38 loc) · 1.03 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace NFC_Reader_WPF
{
/// <summary>
/// App.xaml の相互作用ロジック
/// </summary>
public partial class App : Application
{
private void Mainn(object sender, StartupEventArgs e)
{
MessageBox.Show("hello");
startApp();
string a = QRcodeRead();
string b = NFCcodeRead();
//((MainWindow)Current.MainWindow).txtQRcode.Text = a;
//((MainWindow)Current.MainWindow).txtNFC_Code.Text = b;
}
protected void startApp ()
{
this.InitializeComponent();
this.StartupUri = new Uri("MainWindow.xaml", UriKind.Relative);
}
private string QRcodeRead()
{
return "3004K";
}
private string NFCcodeRead()
{
return "04-15-91-3A-2B-00-20-90-00";
}
}
}