private void deleteVirtualDiskToolStripMenuItem_Click(object sender, EventArgs e) { if (RemoveButton.Enabled) { RemoveButton.PerformClick(); } }
public void HomePageActionWithDeleteitem() { screenshot screens = new screenshot(); BackPackImg.Click(); screens.Takescreenshot3("filename"); ImgBackButton.Click(); screens.Takescreenshot3("filename"); ImgADDTOCARTButton.Click(); screens.Takescreenshot3("filename"); CartImg.Click(); screens.Takescreenshot3("filename"); RemoveButton.Click(); screens.Takescreenshot3("filename"); ConitnueShoppingButton.Click(); screens.Takescreenshot3("filename"); CartImg.Click(); screens.Takescreenshot3("filename"); }
public TodoItemComponent() { InitializeComponent(); // Observe UI events CompleteButton.Events().Click .Subscribe(_ => Store.Dispatch(new CompleteTodoItemAction { Id = TodoItem.Id })); RevertCompleteButton.Events().Click .Subscribe(_ => Store.Dispatch(new RevertCompleteTodoItemAction { Id = TodoItem.Id })); RemoveButton.Events().Click .Subscribe(_ => Store.Dispatch(new RemoveTodoItemAction { Id = TodoItem.Id })); TextBox.Events().LostFocus .Subscribe(e => Store.Dispatch(new UpdateTodoItemAction { Id = TodoItem.Id, Content = TextBox.Text })); }
protected virtual void Start() { LockingEventsCache.Instance.OnObjectLockingEvent += OnObjectLockingEvent; SceneManager.Instance.OnRobotSelected += OnRobotSelected; if (MoveButton != null && MoveButton2 != null) { MoveButton.SetDescription(MOVE_BTN_LABEL); MoveButton2.SetDescription(MOVE_BTN_LABEL); } if (RemoveButton != null) { RemoveButton.SetDescription(REMOVE_BTN_LABEL); } if (RenameButton != null) { RenameButton.SetDescription(RENAME_BTN_LABEL); } if (CalibrationButton != null) { CalibrationButton.SetDescription(CALIBRATION_BTN_LABEL); } if (OpenMenuButton != null) { OpenMenuButton.SetDescription(OPEN_MENU_BTN_LABEL); } if (RobotSteppingButton != null) { RobotSteppingButton.SetDescription(ROBOT_STEPPING_MENU_BTN_LABEL); } if (RobotSelectorButton != null) { RobotSelectorButton.SetDescription(ROBOT_SELECTOR_MENU_BTN_LABEL); } }
private void RefreshRemoveButton() { var visibleFlag = false; var current = package.Current; // Show only if there is a current package installed if (current != null) { visibleFlag = current.CanBeRemoved && !package.IsPackageManagerUI; var action = current.IsBuiltIn ? PackageAction.Disable : PackageAction.Remove; var inprogress = package.RemoveSignal.Operation != null; var enableButton = visibleFlag && !EditorApplication.isCompiling && !inprogress && !Package.AddRemoveOperationInProgress; if (EditorApplication.isCompiling) { EditorApplication.update -= CheckCompilationStatus; EditorApplication.update += CheckCompilationStatus; } RemoveButton.SetEnabled(enableButton); RemoveButton.text = GetButtonText(action, inprogress); } UIUtils.SetElementDisplay(RemoveButton, visibleFlag); }
private void GestureView_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { RemoveButton.PerformClick(); } }
//adds UI buttons respective listeners void InitializeButtonListeners() { AddButton.GetComponent <Button>().onClick.AddListener(AddButtonClicked); RemoveButton.GetComponent <Button>().onClick.AddListener(RemoveButtonClicked); UndoButton.GetComponent <Button>().onClick.AddListener(UndoButtonClicked); DoneButton.GetComponent <Button>().onClick.AddListener(DoneButtonClicked); return; }
public KVID6Panel(RemoveButton removeButton, Cell code, Cell x, Cell y, Cell z) { RemoveButton = removeButton; Code = code; X = x; Y = y; Z = z; }
public KVID8Tab0Panel(RemoveButton removeButton, Cell id, Cell maxVoltage, Cell frequencyMin, Cell frequencyMax) { RemoveButton = removeButton; ID = id; MaxVoltage = maxVoltage; FrequencyMin = frequencyMin; FrequencyMax = frequencyMax; }
private void RemoveButton_Clicked(RemoveButton removeButton, Panel panel) { var kvid6Panel = (KVID6Panel)panel; GetComponentInParent <KVID6View>().OnPanelDeleted((kvid6Panel.Code.StringValue, new Vector3(kvid6Panel.X.FloatValue, kvid6Panel.Y.FloatValue, kvid6Panel.Z.FloatValue))); Remove(panel); Destroy(removeButton.gameObject); }
private void RemoveButton_Clicked(RemoveButton removeButton, Panel panel) { if (_kvid2Panels.Count == 2) { return; } Remove(panel); Destroy(removeButton.gameObject); }
private void editModeToolStripMenuItem_Click(object sender, EventArgs e) { editModeToolStripMenuItem.Checked = true; practiceModeToolStripMenuItem.Checked = false; TranslationGridView.Show(); AddButton.Show(); RemoveButton.Show(); PracticeButton.Show(); }
private void RemoveButton_Clicked(RemoveButton removeButton, Panel panel) { if (_kvid3Panels.Count == 2) { return; } Remove(panel); }
public KVID3Panel(RemoveButton removeButton, Cell xs, Cell ys, Cell sz, Cell metallizations1, Cell metallizations2) { RemoveButton = removeButton; X = xs; Y = ys; Z = sz; Metallization1 = metallizations1; Metallization2 = metallizations2; }
void ReleaseDesignerOutlets() { if (AddButton != null) { AddButton.Dispose(); AddButton = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (ColumnComboBox != null) { ColumnComboBox.Dispose(); ColumnComboBox = null; } if (FilterTableView != null) { FilterTableView.Dispose(); FilterTableView = null; } if (OperatorComboBox != null) { OperatorComboBox.Dispose(); OperatorComboBox = null; } if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } if (ValueTextField != null) { ValueTextField.Dispose(); ValueTextField = null; } if (UpdateButton != null) { UpdateButton.Dispose(); UpdateButton = null; } }
/// <summary> /// Removes a trial. /// </summary> /// <param name="contextTrialTitle">The context trial title.</param> public void RemoveATrial(string contextTrialTitle) { MySiteTrialsSearch.Clear(); MySiteTrialsSearch.SendKeys(contextTrialTitle); ActionDropDown.Click(); RemoveButton.Click(); PageHelper.WaitForElement(Driver, RemoveTrialPopUp); RemoveTrialMessage.Text.Should().BeEquivalentTo(ErrorMessages.RemoveTrial_MySiteTrial); ConfirmRemoveButton.Click(); }
private void RemoveButton_Clicked(RemoveButton removeButton, Panel panel) { if (TableDataManager.Instance.IsUsableKVID5Row(((KVID5Panel)panel).Code.StringValue)) { ErrorDialog.Instance.ShowWarningInMainThread("Невозможно удалить строку так как на нее имеется ссылка из таблицы КВИД 3.", "").WrapErrors(); return; } Remove(panel); Destroy(removeButton.gameObject); }
protected async virtual Task UpdateBtns(InteractiveObject obj) { if (CanvasGroup.alpha == 0) { return; } UpdateRobotSelectorAndSteppingButtons(); if (requestingObject || obj == null) { SelectedObjectText.text = ""; MoveButton.SetInteractivity(false, $"{MOVE_BTN_LABEL}\n(no object selected)"); MoveButton2.SetInteractivity(false, $"{MOVE_BTN_LABEL}\n(no object selected)"); RemoveButton.SetInteractivity(false, $"{REMOVE_BTN_LABEL}\n(no object selected)"); RenameButton.SetInteractivity(false, $"{RENAME_BTN_LABEL}\n(no object selected)"); CalibrationButton.SetInteractivity(false, $"{CALIBRATION_BTN_LABEL}\n(no object selected)"); OpenMenuButton.SetInteractivity(false, $"{OPEN_MENU_BTN_LABEL}\n(no object selected)"); } else if (obj.IsLocked && obj.LockOwner != LandingScreen.Instance.GetUsername()) { SelectedObjectText.text = obj.GetName() + "\n" + obj.GetObjectTypeName(); MoveButton.SetInteractivity(false, $"{MOVE_BTN_LABEL}\n(object is used by {obj.LockOwner})"); MoveButton2.SetInteractivity(false, $"{MOVE_BTN_LABEL}\n(object is used by {obj.LockOwner})"); RemoveButton.SetInteractivity(false, $"{REMOVE_BTN_LABEL}\n(object is used by {obj.LockOwner})"); RenameButton.SetInteractivity(false, $"{RENAME_BTN_LABEL}\n(object is used by {obj.LockOwner})"); CalibrationButton.SetInteractivity(false, $"{CALIBRATION_BTN_LABEL}\n(object is used by {obj.LockOwner})"); OpenMenuButton.SetInteractivity(false, $"{OPEN_MENU_BTN_LABEL}\n(object is used by {obj.LockOwner})"); } else { SelectedObjectText.text = obj.GetName() + "\n" + obj.GetObjectTypeName(); MoveButton.SetInteractivity(false, $"{MOVE_BTN_LABEL}\n(loading...)"); MoveButton2.SetInteractivity(false, $"{MOVE_BTN_LABEL}\n(loading...)"); RemoveButton.SetInteractivity(false, $"{REMOVE_BTN_LABEL}\n(loading...)"); Task <RequestResult> tMove = Task.Run(() => obj.Movable()); Task <RequestResult> tRemove = Task.Run(() => obj.Removable()); UpdateMoveAndRemoveBtns(selectedObject.GetId(), tMove, tRemove); RenameButton.SetInteractivity(obj.GetType() == typeof(ActionPoint3D) || obj.GetType() == typeof(Action3D) || (obj.GetType().IsSubclassOf(typeof(ActionObject)) && !SceneManager.Instance.SceneStarted && GameManager.Instance.GetGameState() == GameStateEnum.SceneEditor) || obj.GetType() == typeof(APOrientation), $"{RENAME_BTN_LABEL}\n(selected object could not be renamed)"); CalibrationButton.SetInteractivity(obj.GetType() == typeof(Recalibrate) || obj.GetType() == typeof(CreateAnchor) || obj.GetType() == typeof(RecalibrateUsingServer), $"{CALIBRATION_BTN_LABEL}\n(selected object is not calibration cube)"); if (obj is Action3D action) { OpenMenuButton.SetInteractivity(action.Parameters.Count > 0, "Open action parameters menu\n(action has no parameters)"); } else { OpenMenuButton.SetInteractivity(obj.HasMenu(), $"{OPEN_MENU_BTN_LABEL}\n(selected object has no menu)"); } } }
private void HideMergeItems() { InstructionsLabel1.Hide(); InstructionsLabel2.Hide(); FileNameBox.Hide(); PathsListBox.Hide(); DestinationFilePathTextBox.Hide(); RemoveButton.Hide(); RemoveAllButton.Hide(); GoButton.Hide(); HidePathsButton.Hide(); }
private async void UpdateMoveAndRemoveBtns(string objId, Task <RequestResult> movable, Task <RequestResult> removable) { RequestResult move = await movable; RequestResult remove = await removable; if (selectedObject != null && objId != selectedObject.GetId()) // selected object was updated in the meantime { return; } MoveButton.SetInteractivity(move.Success, $"{MOVE_BTN_LABEL}\n({move.Message})"); MoveButton2.SetInteractivity(move.Success, $"{MOVE_BTN_LABEL}\n({move.Message})"); RemoveButton.SetInteractivity(remove.Success, $"{REMOVE_BTN_LABEL}\n({remove.Message})"); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); _longPressedSubject.Dispose(); _onTagSelectedSubject.Dispose(); _onTappedSubject.Dispose(); _onRemoveButtonTappedSubject.Dispose(); RemoveGestureRecognizer(_longPressGestureRecognizer); _longPressGestureRecognizer.Dispose(); RemoveButton.Dispose(); Disposables.Dispose(); }
private void PracticeButton_Click(object sender, EventArgs e) { PracticeControl practiceControl = new PracticeControl(); Controls.Add(practiceControl); practiceControl.Dock = DockStyle.Fill; practiceControl.Show(); TranslationGridView.Hide(); AddButton.Hide(); RemoveButton.Hide(); PracticeButton.Hide(); practiceModeToolStripMenuItem.Checked = true; editModeToolStripMenuItem.Checked = false; }
public KVID5Panel(RemoveButton removeButton, Cell code, Cell x, Cell y, Cell z, Cell t, Cell iR, Cell oV, Cell oF, ReferenceCell bBA, Cell connectorType) { RemoveButton = removeButton; Code = code; X = x; Y = y; Z = z; Type = t; InnerResist = iR; OperatingVoltage = oV; OperatingFrequensy = oF; BlockBA = bBA; ConnectorType = connectorType; }
void ReleaseDesignerOutlets() { if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } if (AddButton != null) { AddButton.Dispose(); AddButton = null; } if (RemoveAllButton != null) { RemoveAllButton.Dispose(); RemoveAllButton = null; } if (AllReturnAttrCheckBox != null) { AllReturnAttrCheckBox.Dispose(); AllReturnAttrCheckBox = null; } if (AttributeToExportComboBox != null) { AttributeToExportComboBox.Dispose(); AttributeToExportComboBox = null; } if (AttributeToExportTableView != null) { AttributeToExportTableView.Dispose(); AttributeToExportTableView = null; } if (FormatComboBox != null) { FormatComboBox.Dispose(); FormatComboBox = null; } if (ScopeComboBox != null) { ScopeComboBox.Dispose(); ScopeComboBox = null; } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Lists); // Create the adapter using the default CachingViewHolder _adapter = Vm.Items.GetRecyclerAdapter( BindViewHolder, Resource.Layout.ItemTemplate, OnItemClick); MyRecycler.SetLayoutManager(new LinearLayoutManager(this)); MyRecycler.SetAdapter(_adapter); _bindings.Add( this.SetBinding( () => _adapter.SelectedItem.Name, () => SelectedItemNameText.Text, fallbackValue: "Nothing selected")); _bindings.Add( this.SetBinding( () => Vm.ToggledItems, () => ToggledItemsText.Text)); AddButton.SetCommand(Vm.AddCommand); var selectedItemBinding = this.SetBinding(() => _adapter.SelectedItem); _bindings.Add(selectedItemBinding); RemoveButton.SetCommand(Vm.DeleteCommand, selectedItemBinding); // Subscribing to events to avoid linker issues in release mode --------------------------------- // This "fools" the linker into believing that the events are used. // In fact we don't even subscribe to them. // See https://developer.xamarin.com/guides/android/advanced_topics/linking/ if (_falseFlag) { AddButton.Click += (s, e) => { }; RemoveButton.Click += (s, e) => { }; } }
private void setActiveWordListToolStripMenuItem_Click(object sender, EventArgs e) { using (SelectWordList selectWordList = new SelectWordList()) { selectWordList.SelectHandler += MyListFormSelectedHandler; selectWordList.ShowDialog(); selectWordList.StartPosition = FormStartPosition.CenterParent; TranslationGridView.Show(); editModeToolStripMenuItem.Checked = true; practiceModeToolStripMenuItem.Checked = false; AddButton.Show(); RemoveButton.Show(); PracticeButton.Show(); } }
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"; }
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"; }
public static void RemoveButtons() { int i = 5; LeadsPage.ClickNameLink(); ClickEditLayoutLink(); Boolean isPresent = Driver.Instance.FindElements(By.Id(Button.ReturnId("Opt-out for Text Messages"))).Count > 0; ReturnToHomePage(); while (isPresent && i > 0) { RemoveButton.OptOut(); ClickEditLayoutLink(); isPresent = Driver.Instance.FindElements(By.Id(Button.ReturnId("Opt-out for Text Messages"))).Count > 0; ReturnToHomePage(); i--; } ClickEditLayoutLink(); isPresent = Driver.Instance.FindElements(By.Id(Button.ReturnId("Opt-in for Text Messages"))).Count > 0; ReturnToHomePage(); while (isPresent && i > 0) { RemoveButton.OptIn(); ClickEditLayoutLink(); isPresent = Driver.Instance.FindElements(By.Id(Button.ReturnId("Opt-in for Text Messages"))).Count > 0; ReturnToHomePage(); i--; } ClickEditLayoutLink(); isPresent = Driver.Instance.FindElements(By.Id(Button.ReturnId("Send Text Message"))).Count > 0; ReturnToHomePage(); while (isPresent && i > 0) { RemoveButton.SendText(); ClickEditLayoutLink(); isPresent = Driver.Instance.FindElements(By.Id(Button.ReturnId("Send Text Message"))).Count > 0; ReturnToHomePage(); i--; } }
void ReleaseDesignerOutlets() { if (AddButton != null) { AddButton.Dispose(); AddButton = null; } if (DownButton != null) { DownButton.Dispose(); DownButton = null; } if (GroupList != null) { GroupList.Dispose(); GroupList = null; } if (GroupNameBox != null) { GroupNameBox.Dispose(); GroupNameBox = null; } if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } if (SongList != null) { SongList.Dispose(); SongList = null; } if (UpButton != null) { UpButton.Dispose(); UpButton = null; } }