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;
            }
        }
 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();
 }
        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();
        }
 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");
     }
 }
 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
    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
        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;
            }
        }
        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();
 }
 public void Search(string textToType)
 {
     SearchBox.Text = textToType;
     GoButton.Click();
 }
示例#28
0
 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));
 }