2047-11-2 第三次上课
1.讲了mysql怎么跟C#连接,可以通过使用button按钮进行连接,具体实现的代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
string connstring = textBox1.Text;
MySqlConnection myCon = new MySqlConnection(connstring);
try
{
myCon.Open();
if (myCon.State == ConnectionState.Open)
{
MessageBox.Show("连接成功");
}
myCon.Close();
}
catch (Exception)
{
MessageBox.Show("链接失败");
}
}
}
}
实现以后的效果图如下:

2.讲了AR的使用跟实现的过程,包括了高通AR还有其他几个AR的区别,并且做了自己的第一个AR的例子。

浙公网安备 33010602011771号