Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            String   noteid, title, information;
            DateTime notetime;

            noteid      = textBox1.Text;
            title       = textBox2.Text;
            information = textBox3.Text;
            notetime    = DateTime.Now;
            chloe_control_all chloe_obj = new chloe_control_all("Data Source=DESKTOP-O4C25KM;Initial Catalog=场馆预约系统;Integrated Security=True");

            chloe_obj.inser_yardcontent(int.Parse(noteid), title, information, notetime);
        }