private void InitializeDialogPositions() { Window.Center(); var windowFrame = Window.Frame; CGRect connectBtnFrame = __MainViewController.GetConnectButtonViewRect(); CGRect serversSelectionFrame = __MainViewController.GetServerSelectionViewRect(); CGRect firewallFrame = __MainViewController.GetFirewallControlViewRect(); // Welcome var frame = GuiIntroductionPanelWelcome.Frame; var x = windowFrame.X + windowFrame.Width / 2 - frame.Width / 2; var y = windowFrame.Y + windowFrame.Height / 2 - frame.Height / 2; GuiIntroductionPanelWelcome.SetFrameOrigin(new CGPoint(x, y)); // Connect button frame = GuiIntroductionPanelConnectBtn.Frame; x = windowFrame.X - frame.Width + connectBtnFrame.X - 10; y = windowFrame.Y + connectBtnFrame.Y + connectBtnFrame.Height / 2 - frame.Height / 2; GuiIntroductionPanelConnectBtn.SetFrameOrigin(new CGPoint(x, y)); // Firewall frame = GuiIntroductionPanelFirewall.Frame; x = windowFrame.X + firewallFrame.X + firewallFrame.Width - 5; y = windowFrame.Y + firewallFrame.Y - frame.Height - 10; GuiIntroductionPanelFirewall.SetFrameOrigin(new CGPoint(x, y)); // Servers frame = GuiIntroductionPanelServers.Frame; x = windowFrame.X + windowFrame.Width - 50; y = windowFrame.Y + serversSelectionFrame.Height + 10; GuiIntroductionPanelServers.SetFrameOrigin(new CGPoint(x, y)); }
void ReleaseDesignerOutlets() { if (diagnosticsSendButton != null) { diagnosticsSendButton.Dispose(); diagnosticsSendButton = null; } if (diagnosticsSheet != null) { diagnosticsSheet.Dispose(); diagnosticsSheet = null; } if (diagnosticsTextView != null) { diagnosticsTextView.Dispose(); diagnosticsTextView = null; } if (diagnosticsTextViewUserComments != null) { diagnosticsTextViewUserComments.Dispose(); diagnosticsTextViewUserComments = null; } if (FastestServerConfigPageView != null) { FastestServerConfigPageView.Dispose(); FastestServerConfigPageView = null; } if (GuiIntroLogoImage != null) { GuiIntroLogoImage.Dispose(); GuiIntroLogoImage = null; } if (GuiIntroBtnConnect != null) { GuiIntroBtnConnect.Dispose(); GuiIntroBtnConnect = null; } if (GuiIntroBtnFirewallClose != null) { GuiIntroBtnFirewallClose.Dispose(); GuiIntroBtnFirewallClose = null; } if (GuiIntroBtnFirewallContinue != null) { GuiIntroBtnFirewallContinue.Dispose(); GuiIntroBtnFirewallContinue = null; } if (GuiIntroBtnServersClose != null) { GuiIntroBtnServersClose.Dispose(); GuiIntroBtnServersClose = null; } if (GuiIntroBtnServersConnect != null) { GuiIntroBtnServersConnect.Dispose(); GuiIntroBtnServersConnect = null; } if (GuiIntroBtnWelcomeShowMe != null) { GuiIntroBtnWelcomeShowMe.Dispose(); GuiIntroBtnWelcomeShowMe = null; } if (GuiIntroductionPanelConnectBtn != null) { GuiIntroductionPanelConnectBtn.Dispose(); GuiIntroductionPanelConnectBtn = null; } if (GuiIntroductionPanelFirewall != null) { GuiIntroductionPanelFirewall.Dispose(); GuiIntroductionPanelFirewall = null; } if (GuiIntroductionPanelServers != null) { GuiIntroductionPanelServers.Dispose(); GuiIntroductionPanelServers = null; } if (GuiIntroductionPanelWelcome != null) { GuiIntroductionPanelWelcome.Dispose(); GuiIntroductionPanelWelcome = null; } if (GuiIntroLabelConnectText != null) { GuiIntroLabelConnectText.Dispose(); GuiIntroLabelConnectText = null; } if (GuiIntroLabelConnectTitle != null) { GuiIntroLabelConnectTitle.Dispose(); GuiIntroLabelConnectTitle = null; } if (GuiIntroLabelFirewallText != null) { GuiIntroLabelFirewallText.Dispose(); GuiIntroLabelFirewallText = null; } if (GuiIntroLabelFirewallTitle != null) { GuiIntroLabelFirewallTitle.Dispose(); GuiIntroLabelFirewallTitle = null; } if (GuiIntroLabelServersText != null) { GuiIntroLabelServersText.Dispose(); GuiIntroLabelServersText = null; } if (GuiIntroLabelServersTitle != null) { GuiIntroLabelServersTitle.Dispose(); GuiIntroLabelServersTitle = null; } if (GuiIntroLabelWelcome != null) { GuiIntroLabelWelcome.Dispose(); GuiIntroLabelWelcome = null; } if (GuiToolBar != null) { GuiToolBar.Dispose(); GuiToolBar = null; } if (GuiToolBarItemBackButton != null) { GuiToolBarItemBackButton.Dispose(); GuiToolBarItemBackButton = null; } if (GuiToolbarItemConfigureButton != null) { GuiToolbarItemConfigureButton.Dispose(); GuiToolbarItemConfigureButton = null; } if (GuiToolBarItemFlexibleSpace != null) { GuiToolBarItemFlexibleSpace.Dispose(); GuiToolBarItemFlexibleSpace = null; } if (GuiToolBarItemLogo != null) { GuiToolBarItemLogo.Dispose(); GuiToolBarItemLogo = null; } if (GuiToolBarItemMenu != null) { GuiToolBarItemMenu.Dispose(); GuiToolBarItemMenu = null; } if (GuiToolBarItemSpace != null) { GuiToolBarItemSpace.Dispose(); GuiToolBarItemSpace = null; } if (GuiToolBarMenu != null) { GuiToolBarMenu.Dispose(); GuiToolBarMenu = null; } if (GuiTopTransparentView != null) { GuiTopTransparentView.Dispose(); GuiTopTransparentView = null; } if (InitPageView != null) { InitPageView.Dispose(); InitPageView = null; } if (LogInPageView != null) { LogInPageView.Dispose(); LogInPageView = null; } if (LogOutPageView != null) { LogOutPageView.Dispose(); LogOutPageView = null; } if (SessionLimitPageView != null) { SessionLimitPageView.Dispose(); SessionLimitPageView = null; } if (MainPageView != null) { MainPageView.Dispose(); MainPageView = null; } if (ResetPasswordPageView != null) { ResetPasswordPageView.Dispose(); ResetPasswordPageView = null; } if (ServersPageView != null) { ServersPageView.Dispose(); ServersPageView = null; } if (SignUpPageView != null) { SignUpPageView.Dispose(); SignUpPageView = null; } if (WindowView != null) { WindowView.Dispose(); WindowView = null; } }
partial void OnIntroBtnWelcomePressed(Foundation.NSObject sender) { GuiIntroductionPanelWelcome.Close(); }