예제 #1
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            OfficePay officePayVoucher = new OfficePay();

            officePayVoucher.dateTimePicker1.Text = listView1.SelectedItems[0].SubItems[0].Text;
            officePayVoucher.payer.Text           = listView1.SelectedItems[0].SubItems[1].Text;
            officePayVoucher.fileno.Text          = listView1.SelectedItems[0].SubItems[2].Text;
            officePayVoucher.titleBox.Text        = listView1.SelectedItems[0].SubItems[3].Text;
            officePayVoucher.slipno.Text          = listView1.SelectedItems[0].SubItems[4].Text;
            officePayVoucher.remarks.Text         = listView1.SelectedItems[0].SubItems[5].Text;
            officePayVoucher.amount.Text          = listView1.SelectedItems[0].SubItems[6].Text;
            officePayVoucher.receive.Text         = listView1.SelectedItems[0].SubItems[7].Text;

            officePayVoucher.isUpdate = true;

            officePayVoucher.ShowDialog();
        }
예제 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            OfficePay officepay = new OfficePay();

            officepay.Show();
        }