public static void ShowBigPointLogin(string url, string urlFirst, ProfileLoginWindow parent, BigPointEventHandler loginCallback) { if (instance != null) { try { instance.Close(); instance = null; } catch (Exception) { } } vidLoaded = false; BigPointWindow window = new BigPointWindow(); m_parent = parent; Point point = new Point(parent.Location.X + ((parent.Width - window.Width) / 2), parent.Location.Y + ((parent.Height - window.Height) / 2)); window.closeCallback = new MyFormBase.MFBClose(BigPointWindow.closing); window.Location = point; window.Show(parent); instance = window; instance.login = (BigPointEventHandler) Delegate.Combine(instance.login, loginCallback); while (!vidLoaded) { Thread.Sleep(100); Application.DoEvents(); } Thread.Sleep(500); if (urlFirst.Length > 0) { futureURL = url; url = urlFirst; } window.webBrowser1.Navigate(url); }
public static void closing() { if (m_parent != null) { m_parent.bigpointClose(); } instance = null; }
private void bigpointLogin(string userGuid) { if (m_parent != null) { m_parent.bigpointLogin(userGuid, ""); } base.Close(); instance = null; }
public static void ShowBigPointLogin(string url, string urlFirst, ProfileLoginWindow parent, BigPointEventHandler loginCallback) { if (instance != null) { try { instance.Close(); instance = null; } catch (Exception) { } } vidLoaded = false; BigPointWindow window = new BigPointWindow(); m_parent = parent; Point point = new Point(parent.Location.X + ((parent.Width - window.Width) / 2), parent.Location.Y + ((parent.Height - window.Height) / 2)); window.closeCallback = new MyFormBase.MFBClose(BigPointWindow.closing); window.Location = point; window.Show(parent); instance = window; instance.login = (BigPointEventHandler)Delegate.Combine(instance.login, loginCallback); while (!vidLoaded) { Thread.Sleep(100); Application.DoEvents(); } Thread.Sleep(500); if (urlFirst.Length > 0) { futureURL = url; url = urlFirst; } window.webBrowser1.Navigate(url); }