void loadForm(string start, string end) { panelLoad.Controls.Clear(); if (loaiForm == 0) { LichSuGiaoDich fr = new LichSuGiaoDich(IDUser, IDWallet, start, end) { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; panelLoad.Controls.Add(fr); fr.FormBorderStyle = FormBorderStyle.None; fr.Dock = DockStyle.Fill; fr.Show(); } else { BaoCao fr = new BaoCao(IDUser, IDWallet, start, end) { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; panelLoad.Controls.Add(fr); fr.FormBorderStyle = FormBorderStyle.None; fr.Dock = DockStyle.Fill; fr.Show(); } }
public UserControlTranHistory(LichSuGiaoDich father) { InitializeComponent(); root = father; }