예제 #1
0
 private void Add_New_User_Button_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     rowToDel = Add_New_User_Button.Rows[e.RowIndex].Cells[4].Value.ToString();
     Debug.WriteLine(rowToDel);
     Requests_Handler.Complete_Request(rowToDel, "NEWVisitorSignIn");
     Requests_Handler.Show_Visitors();
     Add_New_User_Button.DataSource = Requests_Handler.DataTable1;
     MessageBox.Show("Thanks for visiting!");
 }
예제 #2
0
        public Visitor_Signin(List_Of_Requests _list, Mysql_Connect _mysql, Form1 _form1)
        {
            InitializeComponent();
            list  = _list;
            mysql = _mysql;
            form1 = _form1;

            Requests_Handler.Show_Visitors();
            Add_New_User_Button.DataSource = Requests_Handler.DataTable1;
        }
예제 #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     Requests_Handler.Add_Visitor(_FirstName, _LastName, _PersonVisiting, DateTime.Now.ToString("hh:mm:ss tt"));
     Requests_Handler.Show_Visitors();
     Add_New_User_Button.DataSource = Requests_Handler.DataTable1;
 }