I have a browser that I am launching in Epicor. When the user closes I would like a Data View to refresh. Any ideas how to make this work. below is my code to launch the browser.
//Launch Epicor URL - Any Area
private void LaunchURL(string url, string title = "", int padding = 65)
{
Ice.Lib.Customization.CustomWebBrowserDialog uiWebBrowser = new Ice.Lib.Customization.CustomWebBrowserDialog();
Ice.Lib.Framework.EpiBaseForm f = (Ice.Lib.Framework.EpiBaseForm)csm.PersonalizeCustomizeManager.TopControl.FindForm();
uiWebBrowser.Width = f.Width - padding;
uiWebBrowser.Height = f.Height - padding;
uiWebBrowser.Text = title;
uiWebBrowser.HomeURL = url;
uiWebBrowser.StartPosition = FormStartPosition.CenterScreen; // If you don't center you can use .Top and .Left
uiWebBrowser.Show();
uiWebBrowser.OnRefresh(); // Loads URL
// if (uiWebBrowser.Close)
// {
// RefreshAfterClose();
//}
//
//}
//
////Order - Refresh After Close
//private void RefreshAfterClose()
//{
//MessageBox.Show("Window Closed");
//}