void ReleaseDesignerOutlets() { if (VolunteerButton != null) { VolunteerButton.Dispose(); VolunteerButton = null; } if (UpcomingButton != null) { UpcomingButton.Dispose(); UpcomingButton = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (LogoffButton != null) { LogoffButton.Dispose(); LogoffButton = null; } }
public Menu() { InitializeComponent(); SettingsButton.Text("Settings"); HistoryButton.Text("History"); BookmarksButton.Text("Bookmarks"); DownloadsButton.Text("Downloads"); ExtensionsButton.Text("Extensions"); WindowButton.Text("New window"); FullscreenButton.Text("Fullscreen"); ScreenButton.Text("Take screenshot"); DevButton.Text("Developer tools"); IncognitoButton.Text("Incognito"); SettingsButton.ImageSource("settings.png"); HistoryButton.ImageSource("history.png"); BookmarksButton.ImageSource("bookmarks.png"); DownloadsButton.ImageSource("download.png"); ExtensionsButton.ImageSource("extension.png"); WindowButton.ImageSource(("window.png")); FullscreenButton.ImageSource("fullscreen.png"); ScreenButton.ImageSource("screen.png"); DevButton.ImageSource("dev.png"); IncognitoButton.ImageSource("privacy.png"); }
void ReleaseDesignerOutlets() { if (CallButton != null) { CallButton.Dispose(); CallButton = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (PhonewordText != null) { PhonewordText.Dispose(); PhonewordText = null; } if (TranslateButton != null) { TranslateButton.Dispose(); TranslateButton = null; } }
//OnAdd private void OnAdd(HistoryActionContainer actionContainer) { HistoryButton button = Instantiate(buttonPrefab, content); button.Init(actionContainer); undoLookUp.Add(actionContainer, button); button.actionContainer = actionContainer; }
void ReleaseDesignerOutlets() { if (AboutButton != null) { AboutButton.Dispose(); AboutButton = null; } if (FahrenheitField != null) { FahrenheitField.Dispose(); FahrenheitField = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (HumidityField != null) { HumidityField.Dispose(); HumidityField = null; } if (HumiditySwitch != null) { HumiditySwitch.Dispose(); HumiditySwitch = null; } if (ImageView1 != null) { ImageView1.Dispose(); ImageView1 = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (WindSlider != null) { WindSlider.Dispose(); WindSlider = null; } if (WindSpeedLabel != null) { WindSpeedLabel.Dispose(); WindSpeedLabel = null; } }
void HistoryFlyout_Closed(object sender, object args) { // Ideally, this would be renamed in the Closing event because the Closed event is too late. // Closing is not available until RS1+ so we set the name again here for TH2 support. AutomationProperties.SetName(HistoryButton, m_openHistoryFlyoutAutomationName); m_fIsHistoryFlyoutOpen = false; EnableControls(true); if (HistoryButton.IsEnabled && HistoryButton.Visibility == Visibility.Visible) { HistoryButton.Focus(FocusState.Programmatic); } FullscreenFlyoutClosed(); }
public ConsoleControl() { InitializeComponent(); InputPanel.PlaceFocus = SetFocus; InputPanel.Insert = InsertText; InputPanel.Delete = Backspace; _currentHistory = new String[0]; CommandHistory.Add(String.Empty); Console.OnQueryEntered += OnQueryEntered; Console.OnHistoryDown += OnHistoryDown; Console.OnHistoryUp += OnHistoryUp; var binding = new Binding("Count"); binding.Source = CommandHistory; binding.Converter = new CountConverter(); HistoryButton.SetBinding(Button.IsEnabledProperty, binding); EvaluateButton.Click += EvaluateClick; AutocompleteButton.Click += AutocompleteClick; HistoryButton.Click += HistoryClick; CommandHistoryList.ItemsSource = CommandHistory; InputPanelButton.Click += InputPanelClick; EditorButton.Click += EditorClick; CollapseButton.Click += CollapseButtonClick; ExpandButton.Click += ExpandButtonClick; StopButton.Click += StopButtonClick; _autoComplete = new AutocompletePopup(this); _mipw = new MathInputPanelWrapper(Messages.DrawExpression); if (!_mipw.IsAvailable) { MathInputButton.IsEnabled = false; } else { MathInputButton.Click += (s, ev) => _mipw.Open(); } }
void ReleaseDesignerOutlets() { if (EditAnnotationButton != null) { EditAnnotationButton.Dispose(); EditAnnotationButton = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (InfoButton != null) { InfoButton.Dispose(); InfoButton = null; } if (MainView != null) { MainView.Dispose(); MainView = null; } if (MainWindow != null) { MainWindow.Dispose(); MainWindow = null; } if (SearchField != null) { SearchField.Dispose(); SearchField = null; } if (SegmentContol != null) { SegmentContol.Dispose(); SegmentContol = null; } if (ShareButton != null) { ShareButton.Dispose(); ShareButton = null; } if (SplitSwithButton != null) { SplitSwithButton.Dispose(); SplitSwithButton = null; } if (TitleTField != null) { TitleTField.Dispose(); TitleTField = null; } if (ShareCustomMenu != null) { ShareCustomMenu.Dispose(); ShareCustomMenu = null; } }
public HistoryFavouritePage SwitchToHistory() { HistoryButton.Click(); return(this); }
void ReleaseDesignerOutlets() { if (AboutButton != null) { AboutButton.Dispose(); AboutButton = null; } if (Button1 != null) { Button1.Dispose(); Button1 = null; } if (Button2 != null) { Button2.Dispose(); Button2 = null; } if (Button3 != null) { Button3.Dispose(); Button3 = null; } if (Button4 != null) { Button4.Dispose(); Button4 = null; } if (Button5 != null) { Button5.Dispose(); Button5 = null; } if (Button6 != null) { Button6.Dispose(); Button6 = null; } if (Button7 != null) { Button7.Dispose(); Button7 = null; } if (Button8 != null) { Button8.Dispose(); Button8 = null; } if (Button9 != null) { Button9.Dispose(); Button9 = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (ResetButton != null) { ResetButton.Dispose(); ResetButton = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
IEnumerator Init() { yield return(new WaitForEndOfFrame()); // init SetPagePositions(); SetPage(startingPage); InitPageSelection(); SetPageSelection(startingPage); // prev and next buttons if (nextButton) { nextButton.GetComponent <Button>().onClick.AddListener(() => { NextScreen(); }); } if (prevButton) { prevButton.GetComponent <Button>().onClick.AddListener(() => { PreviousScreen(); }); } if (nextIbanButton) { nextIbanButton.GetComponent <Button>().onClick.AddListener(() => { NextScreen(); }); } if (prevIbanButton) { prevIbanButton.GetComponent <Button>().onClick.AddListener(() => { PreviousScreen(); }); } if (prevIbanButton) { prevIdentityButton.GetComponent <Button>().onClick.AddListener(() => { PreviousScreen(); }); } //IdProof if (AddressButton) { AddressButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(2); }); } if (IdButton) { IdButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); }); } //Goto Pages if (WalletButton) { WalletButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(2); ShowScene("Wallet"); //Age.SetActive(true); }); } if (CompteButton) { CompteButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(1); ShowScene("Compte"); }); } if (HistoryButton) { HistoryButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(4); ShowScene("History"); }); } if (WithdrawButton) { WithdrawButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(3); ShowScene("Withdraw"); }); } if (ProfilButton) { ProfilButton.GetComponent <Button>().onClick.AddListener(() => { ProfilLastResultListController.profileSceneOpened = false; LerpToPage(3); ShowScene("ProfilePresenter"); }); } if (SponsorButton) { SponsorButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(4); ShowScene("SponsorFriend"); }); } if (HelpCenterButton) { HelpCenterButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(4); ShowScene("HelpCenter"); }); } if (BackToMenuButton) { BackToMenuButton.GetComponent <Button>().onClick.AddListener(() => { SceneManager.LoadScene(0); }); } //PreviousToSetting if (WalletBackButton) { WalletBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); BottomMenuController.Get.selectSettings(); ViewsEvents.Get.SettingsClick(); //Age.SetActive(false); }); } if (CompteBackButton) { CompteBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); BottomMenuController.Get.selectSettings(); ViewsEvents.Get.SettingsClick(); ShowScene("Settings"); }); } if (ProfilBackButton) { ProfilBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (SponsorBackButton) { SponsorBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (HelpCenterBackButton) { HelpCenterBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); BottomMenuController.Get.selectSettings(); ViewsEvents.Get.SettingsClick(); }); } if (HistoryBackButton) { HistoryBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); BottomMenuController.Get.selectSettings(); ViewsEvents.Get.SettingsClick(); }); } if (WithdrawBackButton) { WithdrawBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); BottomMenuController.Get.selectSettings(); ViewsEvents.Get.SettingsClick(); }); } if (Signin_SendEmail) { Signin_SendEmail.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(2); }); } if (Signin_SubmitCode) { Signin_SubmitCode.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(3); }); } try { if (Signin_Resend.Length > 0) { foreach (GameObject resend in Signin_Resend) { resend.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(1); }); } } } catch (NullReferenceException) { } try { if (Signin_Done.Length > 0) { foreach (GameObject done in Signin_Done) { done.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); }); } } } catch (NullReferenceException) { } }
void Start() { _scrollRectComponent = GetComponent <ScrollRect>(); _scrollRectRect = GetComponent <RectTransform>(); _container = _scrollRectComponent.content; _pageCount = _container.childCount; // is it horizontal or vertical scrollrect if (_scrollRectComponent.horizontal && !_scrollRectComponent.vertical) { _horizontal = true; } else if (!_scrollRectComponent.horizontal && _scrollRectComponent.vertical) { _horizontal = false; } else { //Debug.LogWarning("Confusing setting of horizontal/vertical direction. Default set to horizontal."); _horizontal = true; } _lerp = false; // init SetPagePositions(); SetPage(startingPage); InitPageSelection(); SetPageSelection(startingPage); // prev and next buttons if (nextButton) { nextButton.GetComponent <Button>().onClick.AddListener(() => { NextScreen(); }); } if (prevButton) { prevButton.GetComponent <Button>().onClick.AddListener(() => { PreviousScreen(); }); } if (nextIbanButton) { nextIbanButton.GetComponent <Button>().onClick.AddListener(() => { NextScreen(); }); } if (prevIbanButton) { prevIbanButton.GetComponent <Button>().onClick.AddListener(() => { PreviousScreen(); }); } if (prevIbanButton) { prevIdentityButton.GetComponent <Button>().onClick.AddListener(() => { PreviousScreen(); }); } //IdProof if (AddressButton) { AddressButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(2); }); } if (IdButton) { IdButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); }); } //Goto Pages if (WalletButton) { WalletButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(2); ShowScene("Wallet"); Age.SetActive(true); }); } if (CompteButton) { CompteButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(1); ShowScene("Compte"); }); } if (HistoryButton) { HistoryButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(4); ShowScene("History"); }); } if (WithdrawButton) { WithdrawButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(3); ShowScene("Withdraw"); }); } if (ProfilButton) { ProfilButton.GetComponent <Button>().onClick.AddListener(() => { ProfilLastResultListController.profileSceneOpened = false; LerpToPage(3); ShowScene("Profile"); }); } if (SponsorButton) { SponsorButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(4); ShowScene("SponsorFriend"); }); } if (HelpCenterButton) { HelpCenterButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(4); ShowScene("HelpCenter"); }); } if (BackToMenuButton) { BackToMenuButton.GetComponent <Button>().onClick.AddListener(() => { SceneManager.LoadScene("FirstScene"); }); } //PreviousToSetting if (WalletBackButton) { WalletBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); Age.SetActive(false); }); } if (CompteBackButton) { CompteBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (ProfilBackButton) { ProfilBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (SponsorBackButton) { SponsorBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (HelpCenterBackButton) { HelpCenterBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (HistoryBackButton) { HistoryBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (WithdrawBackButton) { WithdrawBackButton.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); ShowScene("Settings"); }); } if (Signin_SendEmail) { Signin_SendEmail.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(2); }); } if (Signin_SubmitCode) { Signin_SubmitCode.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(3); }); } try{ foreach (GameObject resend in Signin_Resend) { resend.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(1); }); } }catch (NullReferenceException ex) { } try{ foreach (GameObject done in Signin_Done) { done.GetComponent <Button>().onClick.AddListener(() => { LerpToPage(0); }); } }catch (NullReferenceException ex) { } }
void ReleaseDesignerOutlets() { if (AnnotationButton != null) { AnnotationButton.Dispose(); AnnotationButton = null; } if (AnnotationView != null) { AnnotationView.Dispose(); AnnotationView = null; } if (BackgroudView != null) { BackgroudView.Dispose(); BackgroudView = null; } if (BookContentView != null) { BookContentView.Dispose(); BookContentView = null; } if (ContentButton != null) { ContentButton.Dispose(); ContentButton = null; } if (FunctionButtonView != null) { FunctionButtonView.Dispose(); FunctionButtonView = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (IndexButton != null) { IndexButton.Dispose(); IndexButton = null; } if (IndexCustomView != null) { IndexCustomView.Dispose(); IndexCustomView = null; } if (IndexViewController != null) { IndexViewController.Dispose(); IndexViewController = null; } if (InfoButton != null) { InfoButton.Dispose(); InfoButton = null; } if (LeftButton != null) { LeftButton.Dispose(); LeftButton = null; } if (PageNumber != null) { PageNumber.Dispose(); PageNumber = null; } if (PageViewController != null) { PageViewController.Dispose(); PageViewController = null; } if (RightButton != null) { RightButton.Dispose(); RightButton = null; } if (SearchField != null) { SearchField.Dispose(); SearchField = null; } if (SegmentContol != null) { SegmentContol.Dispose(); SegmentContol = null; } if (ShareButton != null) { ShareButton.Dispose(); ShareButton = null; } if (SplitSwithButton != null) { SplitSwithButton.Dispose(); SplitSwithButton = null; } if (TitleTField != null) { TitleTField.Dispose(); TitleTField = null; } if (TocCustomView != null) { TocCustomView.Dispose(); TocCustomView = null; } if (TOCViewController != null) { TOCViewController.Dispose(); TOCViewController = null; } if (GotoButton != null) { GotoButton.Dispose(); GotoButton = null; } }