protected override bool RunDialog(IntPtr hwndOwner) { using (DonateListForm frm = new DonateListForm()) { frm.ShowDonateList(DanateData); frm.ShowDialog(); } return(true); }
protected override bool RunDialog(IntPtr hwndOwner) { using (DonateListForm frm = new DonateListForm()) { frm.ShowDonateList(DanateData); MainForm mainForm = (MainForm)Control.FromHandle(hwndOwner); frm.Left = mainForm.Left + (mainForm.Width + mainForm.GetSideBarWidth() - frm.Width) / 2; frm.Top = mainForm.Top + 150.DpiZoom(); frm.ShowDialog(); } return(true); }