示例#1
0
        private void viewpa_Click(object sender, EventArgs e)
        {
            viewPay frm2 = new viewPay();

            this.Visible = false;
            frm2.ShowDialog();
            this.Close();
        }
示例#2
0
        private void RefreshGrid()
        {
            // string samId = viewSgrid.SelectedRows[0].Cells["Sample ID"].Value.ToString();

            viewPay frm = new viewPay();

            this.Visible = false;
            frm.ShowDialog();
            this.Close();
        }
示例#3
0
        private void delete_btn_Click(object sender, EventArgs e)
        {
            if (viewPgrid.SelectedRows.Count == 0)
            {
                MessageBox.Show("Please select a row");
            }
            else
            {
                string pId = viewPgrid.SelectedRows[0].Cells["Payment ID"].Value.ToString();
                Delete(pId);

                viewPay frm = new viewPay();
                this.Visible = false;
                frm.ShowDialog();
                this.Close();
            }
        }