コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CheckCtl.insert_record(record_id, this.txtInfo.Text, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));

            I_event_handler event_handler = (I_event_handler)(new StudentCheck(record_id));

            event_handler.prepare_handler();
            this.Close();
        }
コード例 #2
0
        public frmSelectCheckRecord(frmCheckInit frmCheckInit)
        {
            InitializeComponent();
            this.frmCheckInit = frmCheckInit;
            try
            {
                DataTable dt = CheckCtl.getAllCheckRecord();
                this.dgv1.DataSource = dt;

                this.format_dgv(this.dgv1);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }

            this.dgv1.CellClick += dgv1_CellClick;
        }