Page 638 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 638

(아)  Safe  Connector.cs  –  C#과  MySQL을  이용하여  Raspberry  Pi의  서버와  연동시킨  프로그램입

             니다.


             Form1.cs



             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;
             using  MetroFramework.Forms;

             using  System.Diagnostics;
             using  System.IO;


             /*  3-3-2  Smart  Connector  in  Windows

              * Using  .Net  4.5  ver. */


             namespace  db_test
             {

                  public  partial  class  Form1  :  MetroForm        //MetroUI 적용
                  {
                        private  static string  strCnn;
                             private  static  MySqlConnection  oCnn  =  null;



                             private  const  string  select  =  "select  *  from  work;";


                        //Main  Form  초기  속성
                        public  Form1()

                        {
                             InitializeComponent();







                                                         -  631  -
   633   634   635   636   637   638   639   640   641   642   643