예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MHHopDong hd = new MHHopDong();

            hd.tb = HopDongBUS.Instance.HienThi();
            //  this.Hide();
            hd.Show();
        }
예제 #2
0
        private void MHDoiTac_FormClosing(object sender, FormClosingEventArgs e)
        {
            MHHopDong hd = new MHHopDong();

            hd.tb = HopDongBUS.Instance.HienThi();
            hd.ShowDialog();
            hd.cb_DoiTac_Load(sender, e);
        }
예제 #3
0
        private void btn_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty((sender as Button).Text) || (sender as Button).BackColor != Color.Red)
            {
                return;
            }

            Ngay = Int32.Parse((sender as Button).Text);

            Thang = Int32.Parse(dtpkDate.Value.Month.ToString());
            Nam   = Int32.Parse(dtpkDate.Value.Year.ToString());

            MHHopDong hd = new MHHopDong();

            hd.tb = HopDongBUS.Instance.TimHopDongTheoThoiHan(Ngay, Thang, Nam);
            hd.ShowDialog();
        }