void ReleaseDesignerOutlets()
        {
            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }

            if (StopButton != null)
            {
                StopButton.Dispose();
                StopButton = null;
            }

            if (UrlField != null)
            {
                UrlField.Dispose();
                UrlField = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }

            if (StatusLabel != null)
            {
                StatusLabel.Dispose();
                StatusLabel = null;
            }
        }
コード例 #2
0
 void ReleaseDesignerOutlets()
 {
     if (BusyText != null)
     {
         BusyText.Dispose();
         BusyText = null;
     }
     if (GoButton != null)
     {
         GoButton.Dispose();
         GoButton = null;
     }
     if (Handoff != null)
     {
         Handoff.Dispose();
         Handoff = null;
     }
     if (URL != null)
     {
         URL.Dispose();
         URL = null;
     }
     if (WebView != null)
     {
         WebView.Dispose();
         WebView = null;
     }
 }
コード例 #3
0
 public void Calculate(decimal firstNumber, decimal secondNumber, string selectedOperator)
 {
     FirstValue.SendKeys(firstNumber.ToString());
     SecondValue.SendKeys(secondNumber.ToString());
     Operator.SendKeys(selectedOperator.ToString());
     GoButton.Click();
 }
コード例 #4
0
 public void Search(string textToType)
 {
     // It is going to be implemented in the next article.
     ////this.SearchBox.Clear();
     ////this.SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
コード例 #5
0
        void ReleaseDesignerOutlets()
        {
            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }

            if (LeftButton != null)
            {
                LeftButton.Dispose();
                LeftButton = null;
            }

            if (RightButton != null)
            {
                RightButton.Dispose();
                RightButton = null;
            }

            if (StopButton != null)
            {
                StopButton.Dispose();
                StopButton = null;
            }

            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }
        }
コード例 #6
0
 private void Url_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         GoButton.PerformClick();
     }
 }
コード例 #7
0
 public BingMainPage Search(string textToType)
 {
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
     return(this);
 }
コード例 #8
0
 private void SoundFilePicker_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == '\r' || e.KeyChar == '\n')
     {
         GoButton.Focus();
         GoButton_Click(null, null);
     }
 }
コード例 #9
0
 private void AlarmType_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == '\r' || e.KeyChar == '\n')
     {
         GoButton.Focus();
         GoButton_Click(null, null);
     }
 }
コード例 #10
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     GoButton.BackgroundColor = UIColor.FromRGB(0x29, 0x80, 0xb9);
     GoButton.SetTitleColor(UIColor.White, UIControlState.Normal);
     GoButton.Layer.CornerRadius = 6f;
     OnActivation(d => d(GoButton.GetClickedObservable().Subscribe(_ => WantsToDimiss?.Invoke())));
 }
コード例 #11
0
        public AboutPage()
        {
            InitializeComponent();

            ViewModel = BindingContext as AboutViewModel;

            GoButton.SetBinding(Button.CommandProperty, nameof(ViewModel.GoOneLevelDeeperCommand));
            GoWithCodeBehind.SetBinding(Button.CommandProperty, nameof(ViewModel.GoOneLevelDeeperWithPageCommand));
        }
コード例 #12
0
 public void CompleteTask()
 {
     if (task.TaskCompleted)
     {
         DoneImageSprite.SetActive(task.TaskCompleted);
         GoButton.SetActive(!task.TaskCompleted);
         QuestManager.Instance.ChangeStatus();
     }
 }
コード例 #13
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            GoButton.BackgroundColor = UIColor.FromRGB(0x29, 0x80, 0xb9);
            GoButton.SetTitleColor(UIColor.White, UIControlState.Normal);
            GoButton.Layer.CornerRadius = 6f;
            GoButton.TouchUpInside     += (sender, e) => OnWantsToDismiss();
        }
コード例 #14
0
 public void Search(string textToType)
 {
     if (string.IsNullOrEmpty(textToType))
     {
         throw new ArgumentException(nameof(textToType) + "cannot be null or empty.");
     }
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
コード例 #15
0
    void Start()
    {
        transform.GetChild(0).GetComponent <Text> ().text = task.TaskName;
        transform.GetChild(1).GetChild(0).GetComponent <Image> ().sprite = task.TaskIcon;
        transform.GetChild(4).GetComponent <Image> ().sprite             = DoneImage;

        DoneImageSprite.SetActive(task.TaskCompleted);
        GoButton.SetActive(!task.TaskCompleted);
        GoButton.GetComponent <Button> ().onClick.AddListener(() => SelectTask());
    }
コード例 #16
0
 public void ClickOnGoButton()
 {
     if (GoButton.Displayed)
     {
         GoButton.Click();
     }
     else
     {
         throw new Exception("Element is not found or not clickable");
     }
 }
コード例 #17
0
 public void ClickOnGoButton()
 {
     if (GoButton.Displayed)
     {
         GoButton.Click();
     }
     else
     {
         Exception e;
     }
 }
コード例 #18
0
ファイル: Form1.cs プロジェクト: koonath/mwp
 private void HideMergeItems()
 {
     InstructionsLabel1.Hide();
     InstructionsLabel2.Hide();
     FileNameBox.Hide();
     PathsListBox.Hide();
     DestinationFilePathTextBox.Hide();
     RemoveButton.Hide();
     RemoveAllButton.Hide();
     GoButton.Hide();
     HidePathsButton.Hide();
 }
コード例 #19
0
ファイル: Manager.cs プロジェクト: MarwenBahri/MazeGenerator
    public void clearwalls()
    {
        #region
        foreach (Transform child in maze)
        {
            Destroy(child.gameObject);
        }
        foreach (Transform child in upperWall)
        {
            Destroy(child.gameObject);
        }
        foreach (Transform child in lowerWall)
        {
            Destroy(child.gameObject);
        }
        foreach (Transform child in leftWall)
        {
            Destroy(child.gameObject);
        }
        foreach (Transform child in rightWall)
        {
            Destroy(child.gameObject);
        }
        #endregion

        generatebutton.interactable = true;
        GoButton.GetComponent <Button>().interactable = true;
        GoButton.SetActive(false);
        SpawnButton.interactable = false;
        PlayerPrefab.SetActive(false);
        FollowButton.interactable = false;
        followtext1.text          = "Follow";
        followtext1.color         = new Color(255f, 255f, 255f, 10f);


        CharacterMovement.won = false;
        if (CameraMovement.startfollowing || followed)
        {
            CameraMovement.startfollowing = false;
            Vector3 oldrot = GetComponent <CameraMovement>().oldrotation;
            //Vector3 oldpos = GetComponent<CameraMovement>().oldpos;
            CameraMovement.unfollow = true;
            // Vector3 smoothed = Vector3.Lerp(transform.position, oldpos, 0.125f);
            // Camera.main.transform.position = smoothed;
            Camera.main.transform.rotation = Quaternion.Euler(oldrot);
            followed = false;
        }
    }
コード例 #20
0
ファイル: Form1.cs プロジェクト: koonath/mwp
 private void ShowMergeItems()
 {
     InstructionsLabel1.Show();
     InstructionsLabel1.Text = "Drag and drop PDF files to merge, into the box below:";
     InstructionsLabel2.Show();
     InstructionsLabel2.Text = "Full file path for merged file:";
     FileNameBox.Show();
     PathsListBox.Show();
     DestinationFilePathTextBox.Show();
     DestinationFilePathTextBox.Text = destinationFilePath;
     RemoveButton.Show();
     RemoveAllButton.Show();
     GoButton.Show();
     GoButton.Text = "Merge";
     HidePathsButton.Show();
     HidePathsButton.Text = "Hide Paths";
 }
コード例 #21
0
ファイル: Form1.cs プロジェクト: koonath/mwp
 private void ShowExplodeItems()
 {
     InstructionsLabel1.Show();
     InstructionsLabel1.Text = "Drag and drop PDF files to explode, into the box below:";
     //InstructionsLabel2.Show();
     //InstructionsLabel2.Text = "Full file path for exploded pages";
     FileNameBox.Show();
     PathsListBox.Show();
     //DestinationFilePathTextBox.Show();
     //DestinationFilePathTextBox.Text = destinationFilePath;
     RemoveButton.Show();
     RemoveAllButton.Show();
     GoButton.Show();
     GoButton.Text = "Kaboom!";
     HidePathsButton.Show();
     HidePathsButton.Text = "Hide Paths";
 }
コード例 #22
0
ファイル: WelcomeView.designer.cs プロジェクト: ratka6/Beers
        void ReleaseDesignerOutlets()
        {
            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }
        }
コード例 #23
0
ファイル: Form1.cs プロジェクト: koonath/mwp
 private void ShowStampItems()
 {
     InstructionsLabel1.Show();
     InstructionsLabel1.Text = "Drag and drop PDF files that need stamping, into the box below:";
     InstructionsLabel2.Show();
     InstructionsLabel2.Text = "Drag and drop image/PDF into the box:";
     FileNameBox.Show();
     PathsListBox.Show();
     StampFileBox.Show();
     RemoveButton.Show();
     RemoveAllButton.Show();
     RemoveImageButton.Show();
     GoButton.Show();
     GoButton.Text = "Stamp";
     HidePathsButton.Show();
     HidePathsButton.Text = "Hide Paths";
     StampAllButton.Show();
     StampAllButton.Checked = true;
     StampLastPageButton.Show();
 }
コード例 #24
0
        void ReleaseDesignerOutlets()
        {
            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }

            if (Label != null)
            {
                Label.Dispose();
                Label = null;
            }

            if (TextField != null)
            {
                TextField.Dispose();
                TextField = null;
            }
        }
コード例 #25
0
        void ReleaseDesignerOutlets()
        {
            if (FromLabel != null)
            {
                FromLabel.Dispose();
                FromLabel = null;
            }

            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }

            if (Map != null)
            {
                Map.Dispose();
                Map = null;
            }

            if (ToLabel != null)
            {
                ToLabel.Dispose();
                ToLabel = null;
            }

            if (ZoomInButton != null)
            {
                ZoomInButton.Dispose();
                ZoomInButton = null;
            }

            if (ZoomOutButton != null)
            {
                ZoomOutButton.Dispose();
                ZoomOutButton = null;
            }
        }
コード例 #26
0
 public void Search(string textToType)
 {
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
コード例 #27
0
 public void Search(string textToType)
 {
     SearchBox.Text = textToType;
     GoButton.Click();
 }
コード例 #28
0
ファイル: BasketPage.cs プロジェクト: maksymPanov/maksym
 public void InputBasketAddPosition(string text)
 {
     InputBasketAddCard.SendKeys(text);
     GoButton.Click();
 }
コード例 #29
0
        void ReleaseDesignerOutlets()
        {
            if (ActivityIndicator != null)
            {
                ActivityIndicator.Dispose();
                ActivityIndicator = null;
            }

            if (BackgroundImageView != null)
            {
                BackgroundImageView.Dispose();
                BackgroundImageView = null;
            }

            if (FacebookButton != null)
            {
                FacebookButton.Dispose();
                FacebookButton = null;
            }

            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }

            if (GoButtonBottomConstraint != null)
            {
                GoButtonBottomConstraint.Dispose();
                GoButtonBottomConstraint = null;
            }

            if (SubtitleLabel != null)
            {
                SubtitleLabel.Dispose();
                SubtitleLabel = null;
            }

            if (TitleImageView != null)
            {
                TitleImageView.Dispose();
                TitleImageView = null;
            }

            if (TitleImageViewTopConstraint != null)
            {
                TitleImageViewTopConstraint.Dispose();
                TitleImageViewTopConstraint = null;
            }

            if (TwitterButton != null)
            {
                TwitterButton.Dispose();
                TwitterButton = null;
            }

            if (FacebookButtonCenterYConstraint != null)
            {
                FacebookButtonCenterYConstraint.Dispose();
                FacebookButtonCenterYConstraint = null;
            }

            if (TwitterButtonCenterYConstraint != null)
            {
                TwitterButtonCenterYConstraint.Dispose();
                TwitterButtonCenterYConstraint = null;
            }
        }
コード例 #30
0
 public QuestionPage ClickGoButton()
 {
     GoButton.Click();
     return(new QuestionPage(_driver));
 }