Пример #1
0
 private void Init()
 {
     if (thu == true)
     {
         Text = "Thu Tiền";
         this.IconOptions.Image = global::DAQLBH_Devexpress.Properties.Resources.Finance_sponsor_investment_loan_money_512;
         btnPhieuThu.Caption    = "Phiếu Danh Sách Phiếu Thu";
         fPhieuThu pt = new fPhieuThu();
         pt.MdiParent = this;
         pt.Show();
     }
     else
     {
         Text = "Trả Tiền";
         this.IconOptions.Image = global::DAQLBH_Devexpress.Properties.Resources.Finance_cash_cash_payment_512;
         btnPhieuThu.Caption    = "Phiếu Danh Sách Phiếu Chi";
         fPhieuThu pc = new fPhieuThu(false);
         pc.MdiParent = this;
         pc.Show();
     }
 }
Пример #2
0
        private void btnPhieuThu_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(fPhieuThu));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                if (thu == true)
                {
                    fPhieuThu pt = new fPhieuThu();
                    pt.MdiParent = this;
                    pt.Show();
                }
                else
                {
                    fPhieuThu pc = new fPhieuThu(false);
                    pc.MdiParent = this;
                    pc.Show();
                }
            }
        }