Ejemplo n.º 1
0
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            GlobalData.madh = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
            CTPhieuTraGop f = new CTPhieuTraGop(sess);

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Ejemplo n.º 2
0
        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            GlobalData.madh = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
            string url = "http://apidnh.somee.com/api/HDTG/TraGop?maphieu=" + GlobalData.madh;

            Services.POST(url, sess.token);
            CTPhieuTraGop f = new CTPhieuTraGop(sess);

            this.Hide();
            f.ShowDialog();
            this.Show();
            loadData();
        }