예제 #1
0
 //セルクリック
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0 && e.RowIndex >= 0) //ボタン行
     {
         int         id   = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().Substring(1));
         ReceiptForm form = new ReceiptForm(id);
         form.Show();
     }
 }
예제 #2
0
        private void button_receipt_Click(object sender, EventArgs e)
        {
            ReceiptForm form = new ReceiptForm();

            form.Show();
        }