void ReleaseDesignerOutlets() { if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } if (Header != null) { Header.Dispose(); Header = null; } if (Outline != null) { Outline.Dispose(); Outline = null; } if (SideSplashView != null) { SideSplashView.Dispose(); SideSplashView = null; } }
private void UpdateFinishButton() { UserInformationFirstLineLabel.Visible = false; UserInformationSecondLineLabel.Visible = false; FinishButton.Visible = true; FinishButton.Refresh(); }
public void UpdateWizardState() { if (SelectedIndex == 0) { BackButton.Enabled = false; } else { BackButton.Enabled = true; } if (SelectedIndex == this.Pages.Count - 1) { NextButton.Enabled = false; FinishButton.Enabled = true; FinishButton.Focus(); } else { StiCanNextEventArgs e = new StiCanNextEventArgs(); InvokeOnCanNext(e); NextButton.Enabled = e.CanNext; StiCanFinishEventArgs ee = new StiCanFinishEventArgs(); InvokeOnCanFinish(ee); FinishButton.Enabled = ee.CanFinish; } }
public void Action_finish() { screenshot screens = new screenshot(); FinishButton.Click(); screens.Takescreenshot9("filename"); }
void ReleaseDesignerOutlets() { if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } if (HeaderDescription != null) { HeaderDescription.Dispose(); HeaderDescription = null; } if (HeaderImage != null) { HeaderImage.Dispose(); HeaderImage = null; } if (HeaderTitle != null) { HeaderTitle.Dispose(); HeaderTitle = null; } }
void ReleaseDesignerOutlets() { if (TutorialText != null) { TutorialText.Dispose(); TutorialText = null; } if (TutorialView != null) { TutorialView.Dispose(); TutorialView = null; } if (StartCheck != null) { StartCheck.Dispose(); StartCheck = null; } if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } }
void ReleaseDesignerOutlets() { if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } if (TableColumnProgress != null) { TableColumnProgress.Dispose(); TableColumnProgress = null; } if (TableRowContextMenu != null) { TableRowContextMenu.Dispose(); TableRowContextMenu = null; } if (TableRowMenuOpen != null) { TableRowMenuOpen.Dispose(); TableRowMenuOpen = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } }
void ReleaseDesignerOutlets() { if (TaskTypeIcon != null) { TaskTypeIcon.Dispose(); TaskTypeIcon = null; } if (TaskTypeName != null) { TaskTypeName.Dispose(); TaskTypeName = null; } if (TaskDescription != null) { TaskDescription.Dispose(); TaskDescription = null; } if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } }
private void NotifyFeatureCommandsCollectionFinish(object sender, NotifyFeatureCommandsCollectionFinishEventArgs e) { if (e.Result.Success) { YesNo autoClose = Launcher.AutoClose; if (autoClose == YesNo.Yes) { CloseForm(); } if (UserInformationFirstLineLabel.InvokeRequired) { var d = new SafeUpdateFinishButtonDelegate(UpdateFinishButton); FeatureLabel.Invoke(d); } else { UserInformationFirstLineLabel.Visible = false; UserInformationSecondLineLabel.Visible = false; FinishButton.Visible = true; FinishButton.Refresh(); } } else { MessageBox.Show(e.Result.Errors.AsMessages().ToStringBuilder().ToString(), @"Error", MessageBoxButtons.OK); CloseForm(); } }
protected override void InitBindings() { ViewPager.Adapter = new WelcomePagerAdapter(ChildFragmentManager, ViewModel.WelcomeTabEntries); DotsLayout.SetupWithViewPager(ViewPager); ViewPager.PageSelected += ViewPagerOnPageSelected; FinishButton.Visibility = ViewStates.Gone; FinishButton.SetOnClickCommand(ViewModel.FinishCommand); SkipButton.SetOnClickCommand(ViewModel.FinishCommand); }
internal void Finish() { FinishButton.Click(); Execute(() => { // Wait for the wizard to close properly max 10 seconds int i = 0; while (wiz.IsActive && i < 100) { SleepWithDoEvents(100); i++; } }); }
void ReleaseDesignerOutlets() { if (headerLabel != null) { headerLabel.Dispose(); headerLabel = null; } if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } }
void ReleaseDesignerOutlets() { if (OpenButton != null) { OpenButton.Dispose(); OpenButton = null; } if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } }
public override void ViewWillAppear(bool animated) { base.ViewDidAppear(animated); if (thisTask.ChildTasks == null || !thisTask.ChildTasks.Any()) { FinishButton.SetTitle("Add follow-up tasks by tapping +!", UIControlState.Normal); } else { FinishButton.SetTitle("Save and Return", UIControlState.Normal); TableView.Source = new CreateViewSource(thisTask.ChildTasks.ToList(), EditTask, null, false); } }
private void skillsCertificationButton_Click(object sender, EventArgs e) { if (Conversions.ToBoolean(db.userExists(firstNameTextBox.Text, lastNameTextBox.Text, aliasTextBox.Text))) { db.updateSkillsOrCertifications(); if (skillsCertificationButton.Text.Equals("Save and Continue")) { if (!firstAidCheckBox.Checked) { newEmployeeTabControl.TabPages.Add(cardIDTabPage); newEmployeeTabControl.SelectTab(2); FinishButton.Show(); } else if (firstAidCheckBox.Checked & firstAidComboBox.SelectedIndex != -1) { newEmployeeTabControl.TabPages.Add(cardIDTabPage); newEmployeeTabControl.SelectTab(2); FinishButton.Show(); } else { titleSkillsAndCertificationLabel.BackColor = Color.Firebrick; titleSkillsAndCertificationLabel.Text = "Please, select the level of the first aid certificate"; } } else if (!firstAidCheckBox.Checked) { Close(); } else if (firstAidCheckBox.Checked & firstAidComboBox.SelectedIndex != -1) { } // EmployeeOptionsTabControl.SelectTab(1) else { titleSkillsAndCertificationLabel.BackColor = Color.Firebrick; titleSkillsAndCertificationLabel.Text = "Please, select the level of the first aid certificate"; } } }
protected void ShowHideButtons() { if (PageIndex > 0) { PreviousButton.Show(); } else { PreviousButton.Hide(); } if (PageIndex < (Pages.Count - 1)) { NextButton.Show(); FinishButton.Hide(); } else { NextButton.Hide(); FinishButton.Show(); } }
public int ShakeCount = 0; //地震発生のカメラ振動を捕える補数。初期値0 // Start is called before the first frame update void Start() { // オープニング GameOpening(); SinarioFlag = 0; MapDisplayFlag = 0; ShakeCount = 0; Efect.SetActive(false); Siya.SetActive(false); StartCamera.SetActive(true); OtherCamara.SetActive(false); //Trajectory.SetActive(false); ResultCamera.SetActive(false); //NPC.SetActive(false); Wave.GetComponent <WaveController>().enabled = false; Player.gameObject.GetComponent <UnityChanControlScriptWithRgidBody>().enabled = false; //GetComponent<NPCControl>().enabled = false; ControllText.SetActive(false); audioSource.SetActive(false); MapDisplay.SetActive(false); HinanArea.SetActive(false); Notification.SetActive(false); Atari = GameObject.Find("Atari"); atari = Atari.GetComponent <Atari>(); AreaCount = GameObject.Find("hinanarea (2)"); HinanCount = AreaCount.GetComponent <HinanAreaCount>(); HighCount = GameObject.Find("hinanarea (1)"); HighHinan = HighCount.GetComponent <HighHinanAreaCount>(); //HighCount = GameObject.Find("hinanarea (1)"); //HighhinanCount = HighCount.GetComponent<HinanareaCount>(); //Changer = GameObject.Find("MainCamera"); Camerachanger = OtherCamara.GetComponent <CameraChanger>(); if (HinanCount.AreaCount == 0) { FinishButton.SetActive(false); } }
private void SetMaximumButton_Click(object sender, RoutedEventArgs e) { double num; //read Loadcell to get Raw Maximum Value if (SetMaximumTextBox.Text == "") { errorMessageShow("Please enter weight value, then press Calibrate button"); return; } if (!double.TryParse(SetMaximumTextBox.Text, out num)) { errorMessageShow("Please enter numeric value for weight value"); return; } _UserMaximumValue = Convert.ToDecimal(SetMaximumTextBox.Text); //Capture User Maximum //_MaximumValue = Convert.ToDecimal(SetMaximumTextBox.Text); //Capture User Minimum _RawMaximumValue = GpioUtility.ReadData(); string message = "Wieght value set. Press Finish button to complete calibration."; successMessageShow(message); SetMaximumButton.IsEnabled = false; FinishButton.Focus(FocusState.Programmatic); }
void ReleaseDesignerOutlets() { if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (AddressText != null) { AddressText.Dispose(); AddressText = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CredentialsTab != null) { CredentialsTab.Dispose(); CredentialsTab = null; } if (FinishButton != null) { FinishButton.Dispose(); FinishButton = null; } if (FolderTab != null) { FolderTab.Dispose(); FolderTab = null; } if (Header != null) { Header.Dispose(); Header = null; } if (LoginStatusLabel != null) { LoginStatusLabel.Dispose(); LoginStatusLabel = null; } if (LoginStatusProgress != null) { LoginStatusProgress.Dispose(); LoginStatusProgress = null; } if (Outline != null) { Outline.Dispose(); Outline = null; } if (PasswordLabel != null) { PasswordLabel.Dispose(); PasswordLabel = null; } if (PasswordText != null) { PasswordText.Dispose(); PasswordText = null; } if (SideSplashView != null) { SideSplashView.Dispose(); SideSplashView = null; } if (TabView != null) { TabView.Dispose(); TabView = null; } if (UserLabel != null) { UserLabel.Dispose(); UserLabel = null; } if (UserText != null) { UserText.Dispose(); UserText = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); InitKeyboardHandling(); DismissKeyboardOnBackgroundTap(); if (thisActivity == null) { NavigationController.PopViewController(true); return; } if (thisActivity.LearningTasks == null) { thisActivity.LearningTasks = new List <LearningTask>(); } // check if we're editing an existing task if (thisActivity.LearningTasks.ToList().Count > parentTaskIndex) { if (childTaskIndex != null) { var parent = thisActivity.LearningTasks.ToList()[parentTaskIndex]; if (parent.ChildTasks != null & parent.ChildTasks.Count() > childTaskIndex) { thisTask = parent.ChildTasks.ToList()[(int)childTaskIndex]; thisTaskType = thisTask.TaskType; } } else { thisTask = thisActivity.LearningTasks.ToList()[parentTaskIndex]; thisTaskType = thisTask.TaskType; } UIBarButtonItem customButton = new UIBarButtonItem( UIImage.FromFile("ic_delete"), UIBarButtonItemStyle.Plain, (s, e) => { ConfirmDelete(); } ); NavigationItem.RightBarButtonItem = customButton; } if (thisTaskType == null) { NavigationController.PopViewController(true); } NavigationItem.Title = thisTaskType.DisplayName; ImageService.Instance.LoadUrl(thisTaskType.IconUrl).Into(TaskTypeIcon); FinishButton.TouchUpInside += FinishButton_TouchUpInside; // style the text view to look like a text field - why the hell are they different? TaskDescription.Layer.BorderColor = UIColor.Gray.ColorWithAlpha(0.5f).CGColor; TaskDescription.Layer.BorderWidth = 2; TaskDescription.Layer.CornerRadius = 5; TaskDescription.ClipsToBounds = true; if (thisTask != null) { TaskDescription.Text = thisTask.Description; FinishButton.SetTitle("Save Changes", UIControlState.Normal); } else { // Add placeholder text TaskDescription.Delegate = new TextViewPlaceholderDelegate(TaskDescription, placeholderText); } }
// Update is called once per frame void Update() { //Debug.Log(Time.time + ": Flag :" +SinarioFlag); Vector3 Ppos = Player.transform.position; if (SinarioFlag == 0) { StartCamera.SetActive(true); OtherCamara.SetActive(false); ControllText.SetActive(false); //Trajectory.GetComponent<Material>().color = new Color(1.0f, 1.0f, 1.0f, 0.0f); } if (SinarioFlag == 1) { //audioSource.Play(); audioSource.SetActive(true); StartCamera.SetActive(false); OtherCamara.SetActive(true); ControllText.SetActive(true); Player.gameObject.GetComponent <UnityChanControlScriptWithRgidBody>().enabled = true; if (Input.GetKey(KeyCode.UpArrow) || Input.GetKey(KeyCode.W)) { Text.SetActive(false); } if (atari.AtariFlag == 1) { Notification.SetActive(true); } } else { Notification.SetActive(false); } if (SinarioFlag == 2) { Invoke("StopShake", 10); } if (SinarioFlag == 3) { if (Input.GetKeyUp(KeyCode.UpArrow)) { if (ShakeCount <= 2) { ShakeCount = 1; Debug.Log("ShakeCount : " + ShakeCount); } } if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.RightArrow)) { if (ShakeCount == 0) { ShakeCount = 2; Debug.Log("ShakeCount : " + ShakeCount); } } if (Input.GetKey(KeyCode.C)) { ShakeCount = 3; Debug.Log("ShakeCount : " + ShakeCount); } } if (SinarioFlag == 4) { Debug.Log("シナリオ4です。"); } if (SinarioFlag == 5) { Player.gameObject.GetComponent <UnityChanControlScriptWithRgidBody>().enabled = false; OtherCamara.SetActive(false); GameOverCamera.SetActive(false); ResultCamera.SetActive(true); audioSource.SetActive(false); if (HinanCount.AreaCount == 1) { FinishButton.SetActive(true); } if (HighHinan.HighHinanCount == 1) { FinishButton2.SetActive(true); } if (Camerachanger.ChangerCount == 0) { ResultText1.SetActive(false); ResultText2.SetActive(true); } else if (Camerachanger.ChangerCount == 1) { ResultText1.SetActive(true); ResultText2.SetActive(false); } //Wave.GetComponent<WaveController>().enabled = false; //Trajectory.GetComponent<Material>().color = new Color(1.0f, 1.0f, 1.0f, 1.0f); //Trajectory.SetActive(true); } if (SinarioFlag == 6) { Start(); } if (SinarioFlag == 1 || SinarioFlag == 2 || SinarioFlag == 3 || SinarioFlag == 4) { if (MapDisplayFlag == 0) { if (Input.GetKeyDown(KeyCode.M)) { MapDisplay.SetActive(true); MapDisplayFlag = 1; Debug.Log("Mapを表示"); if (SinarioFlag == 3) { HinanArea.SetActive(true); } } } else { if (Input.GetKeyDown(KeyCode.M)) { MapDisplay.SetActive(false); MapDisplayFlag = 0; Debug.Log("Mapを非表示"); if (SinarioFlag == 3) { HinanArea.SetActive(false); } } } } }