예제 #1
0
        private void 进出记录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InOutRecordWindow IORWin = new InOutRecordWindow();

            IORWin.StartPosition = FormStartPosition.CenterParent;
            IORWin.ShowDialog();
        }
예제 #2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == dataGridView1.CurrentCell.RowIndex)//当前行的索引是否是是当前选择的行的索引
     {
         string            IDCard = dataGridView1.Rows[e.RowIndex].Cells["IDCard"].Value.PaseToString();
         string            Name   = dataGridView1.Rows[e.RowIndex].Cells["CNName"].Value.PaseToString();
         InOutRecordWindow IORWin = new InOutRecordWindow();
         IORWin.WL_IDCard = IDCard;
         IORWin.WL_Name   = Name;
         IORWin.ShowDialog();
     }
 }
예제 #3
0
        private void 进出记录ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            InOutRecordWindow IORWin = new InOutRecordWindow();

            IORWin.ShowDialog();
        }