Ejemplo n.º 1
0
        private void btnDieuChinhLuong_Click(object sender, EventArgs e)
        {
            frm_42_DieuChinhLuongThangTruoc frm = new frm_42_DieuChinhLuongThangTruoc()
            {
                thang = dtpThang.Value.AddMonths(-1)
            };

            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void SubMenu_DieuChinhLuong_Click(object sender, EventArgs e)
        {
            frm_42_DieuChinhLuongThangTruoc frm1 = new frm_42_DieuChinhLuongThangTruoc();
            int indexForm = LayVitriForm(this, frm1.GetType());

            if (indexForm != -1)
            {
                frm1 = this.MdiChildren[indexForm] as frm_42_DieuChinhLuongThangTruoc;
                frm1.BringToFront();
            }
            else
            {
                frm1.MdiParent   = this;
                frm1.WindowState = FormWindowState.Normal;
                frm1.Show();
            }
        }