public void init(ProfileLoginWindow parentForm) { this.m_parentForm = parentForm; base.clearControls(); this.BackColor = ARGBColors.White; this.headingLabel.Text = SK.Text("BIGPOINT_PleaseLogin", "Please Log into Bigpoint in your Browser"); this.headingLabel.Position = new Point(0, 10); this.headingLabel.Size = new Size(600, 30); this.headingLabel.Color = ARGBColors.Black; this.headingLabel.Font = FontManager.GetFont("Arial", 11f, FontStyle.Bold); this.headingLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; base.addControl(this.headingLabel); this.bodyLabel.Text = SK.Text("BIGPOINT_ClickHere", "Click here once you have completed your Login"); this.bodyLabel.Position = new Point(0, 80); this.bodyLabel.Size = new Size(600, 30); this.bodyLabel.Color = ARGBColors.Black; this.bodyLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Bold); this.bodyLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; this.bodyLabel.Visible = false; base.addControl(this.bodyLabel); this.closeButton.ImageNorm = this.CloseImage; this.closeButton.ImageOver = this.CloseImageOver; this.closeButton.Position = new Point(370, 160); this.closeButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.closeClick), "WorldSelectPopupPanel_close"); base.addControl(this.closeButton); this.completeButton.ImageNorm = this.CompleteImage; this.completeButton.ImageOver = this.CompleteImageOver; this.completeButton.Position = new Point(100, 100); this.completeButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.completeClick), "WorldSelectPopupPanel_close"); this.completeButton.Visible = false; base.addControl(this.completeButton); this.startedTime = DateTime.Now; this.firstAttemptTried = false; }
public static void ShowFacebookLogin(string url, string urlFirst, Form parent) { if (instance != null) { try { instance.Close(); instance = null; } catch (Exception) { } } vidLoaded = false; FacebookWindow window = new FacebookWindow(); m_parent = null; Point point = new Point(parent.Location.X + ((parent.Width - window.Width) / 2), parent.Location.Y + ((parent.Height - window.Height) / 2)); window.Location = point; window.Show(parent); instance = window; 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 ShowFacebookLogin(string url, string urlFirst, ProfileLoginWindow parent, FacebookEventHandler loginCallback) { if (instance != null) { try { instance.Close(); instance = null; } catch (Exception) { } } vidLoaded = false; FacebookWindow window = new FacebookWindow(); 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(FacebookWindow.closing); window.Location = point; window.Show(parent); instance = window; if (loginCallback != null) { instance.login = (FacebookEventHandler)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 void init(ProfileLoginWindow parent) { this.createPopupPanel.init(parent); }