private void button1_Click(object sender, EventArgs e) { frmSyncEclock sync = new frmSyncEclock(); sync.ClubName = ClubName; sync.DateRelease = DateRelease; sync.ActionType = ActionType; sync.ShowDialog(); if (ActionType == "ENTRYDB") { ReadEntryLogs(); } else if (ActionType == "RESULTDB") { ReadResultLogs(); } if (dtList.Rows.Count == 0) { MessageBox.Show("Eclock " + ActionTypeDescription + " sync to database successfully.", "Sync All"); } else { MessageBox.Show("Eclock " + ActionTypeDescription + " sync to database error detected.", "Sync All Error"); } }
private void button1_Click(object sender, EventArgs e) { frmSyncEclock sync = new frmSyncEclock(); sync.ClubName = ClubName; sync.MemberID = txtMemberID.Text; sync.DateRelease = this.dateTimePicker1.Value; sync.ActionType = "RESULTTRAINING"; sync.ShowDialog(); GetPigeonList(this.txtMemberID.Text); }
private void button9_Click(object sender, EventArgs e) { DataTable dt = new DataTable(); dt = (DataTable)this.dtList.DataSource; frmSyncEclock sync = new frmSyncEclock(); sync.DataList = dt; sync.ClubName = ClubName; sync.ActionType = "RESET"; sync.ShowDialog(); }
private void button5_Click(object sender, EventArgs e) { //DataTable dt = new DataTable(); //dt = (DataTable)this.dtList.DataSource; frmSyncEclock sync = new frmSyncEclock(); //sync.DataList = dt; //sync.ClubName = ClubName; //sync.DataStartIndex = ; //sync.DataEndtIndex = dt.Rows.Count; sync.ActionType = "UPLOADPROGRAM"; sync.ShowDialog(); }
private void button1_Click_1(object sender, EventArgs e) { try { DataTable dt = new DataTable(); dt = (DataTable)this.dtList.DataSource; frmSyncEclock sync = new frmSyncEclock(); sync.DataList = dt; sync.ClubName = ClubName; sync.ActionType = "UNLOCK"; sync.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } }
private void button6_Click(object sender, EventArgs e) { try { DataTable dt = new DataTable(); dt = (DataTable)this.dtList.DataSource; frmSyncEclock sync = new frmSyncEclock(); sync.DataList = dt; sync.ClubName = ClubName; sync.DataStartIndex = 1; sync.DataEndtIndex = dt.Rows.Count; sync.ActionType = "BANDED"; sync.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } }