void ReleaseDesignerOutlets() { if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (taskDoneSwitch != null) { taskDoneSwitch.Dispose(); taskDoneSwitch = null; } if (taskNameField != null) { taskNameField.Dispose(); taskNameField = null; } if (taskNotesField != null) { taskNotesField.Dispose(); taskNotesField = null; } }
private void Window_Activated(object sender, EventArgs e) { DeleteButton.SetContent("Delete"); CancelButton.SetContent("Cancel"); ListItemsToDelete.SetList(paths); }
void ReleaseDesignerOutlets() { if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (Code != null) { Code.Dispose(); Code = null; } if (Name != null) { Name.Dispose(); Name = null; } }
void ReleaseDesignerOutlets() { if (dayTextField != null) { dayTextField.Dispose(); dayTextField = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (monthPicker != null) { monthPicker.Dispose(); monthPicker = null; } if (nameTextField != null) { nameTextField.Dispose(); nameTextField = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } }
void ReleaseDesignerOutlets() { if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (EditButton != null) { EditButton.Dispose(); EditButton = null; } if (OkButton != null) { OkButton.Dispose(); OkButton = null; } if (Text != null) { Text.Dispose(); Text = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); NameLabel.Text = _WeaponItem.Name.Capitalize(); SpecialButton.SetText(_WeaponItem.SpecialAbilities); SpecialButton.SetTitleColor(UIColor.White, UIControlState.Normal); _SpecialPopover = new ButtonStringPopover(SpecialButton); _SpecialPopover.ItemClicked += HandleSpecialItemClicked; _SpecialPopover.WillShowPopover += HandleWillShowBonusPopover; BonusButton.SetText(BonusText); BonusButton.SetTitleColor(UIColor.White, UIControlState.Normal); _BonusPopover = new ButtonStringPopover(BonusButton); _BonusPopover.WillShowPopover += HandleWillShowBonus; _BonusPopover.ItemClicked += HandleBonusItemClicked; DeleteButton.Gradient = new GradientHelper(0x00000000.UIColor()); DeleteButton.Border = 0; DeleteButton.SetImage(UIImage.FromFile("Images/External/redx.png"), UIControlState.Normal); DeleteButton.TouchUpInside += DeleteButtonClicked; ((GradientView)View).StyleBasicPanel(); NameView.BackgroundColor = 0x0.UIColor(); NameView.Gradient = new GradientHelper(CMUIColors.SecondaryColorBDarker); HandView.BackgroundColor = 0x0.UIColor(); HandView.Gradient = new GradientHelper(CMUIColors.SecondaryColorADarker); HandLabel.Text = _WeaponItem.Weapon.HandsUsed + " Hand" + (_WeaponItem.Weapon.HandsUsed != 1?"s":""); EnableButtons(); }
void ReleaseDesignerOutlets() { if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (Done != null) { Done.Dispose(); Done = null; } if (Name != null) { Name.Dispose(); Name = null; } if (Notes != null) { Notes.Dispose(); Notes = null; } if (Save != null) { Save.Dispose(); Save = null; } }
public override void AwakeFromNib() { base.AwakeFromNib(); DeleteButton.SetCommand(DataContext.DeletePostCommand); LikeButton.SetCommand(DataContext.LikePostCommand); }
public void OnDeleteComponenet(int index) // Called when Delete() function called (in DeleteButton) { gridLayoutGroup.cellSize -= cellSize; CpMapComponent componentScript = mapComponents[index].GetComponent <CpMapComponent>(); if (index < mapComponents.Count - 1) { GameObject gObject; CpMapComponent cpScript; // 인덱스 초기화는 삭제된 인덱스보다 나중에 생긴애들을 아래로 당겨줘야하고 for (int i = index + 1; i < mapComponents.Count; i++) { gObject = mapComponents[i]; foreach (Transform child in gObject.transform) { if (child.tag == "DeleteButton") { Button Button = child.GetComponent <Button>(); DeleteButton deleteFunc = child.GetComponent <DeleteButton>(); deleteFunc.Index--; } } } //자료구조 처리와 달리 보이는 그래픽은 반대로 기존애들이 밀려올라가고 새로생긴애들이 아래에 생기는 구조라서 이전에 생긴애들을 아래로 당겨줘야한다. for (int i = 0; i < index; i++) { gObject = mapComponents[i]; cpScript = gObject.GetComponent <CpMapComponent>(); MapScaler.MapDown(cpScript.PlotGroupObj); } } mapComponents.RemoveAt(index); // ui, plot 삭제하고 마지막에 리스트에서 삭제 }
public void ShowPresetControls() { if (InvokeRequired) { Invoke(new Action(() => { PresetLabel.Show(); PresetList.Show(); PresetNameLabel.Show(); PresetNameTextbox.Show(); ProcessLabel.Show(); ProcessComboBox.Show(); NewPresetButton.Show(); SavePresetButton.Show(); DeleteButton.Show(); })); } else { PresetLabel.Show(); PresetList.Show(); PresetNameLabel.Show(); PresetNameTextbox.Show(); ProcessLabel.Show(); ProcessComboBox.Show(); NewPresetButton.Show(); SavePresetButton.Show(); DeleteButton.Show(); } }
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { DeleteButton.PerformClick(); } }
void ReleaseDesignerOutlets() { if (Addbutton != null) { Addbutton.Dispose(); Addbutton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (EditButton != null) { EditButton.Dispose(); EditButton = null; } if (Search != null) { Search.Dispose(); Search = null; } }
void ReleaseDesignerOutlets() { if (ApplyButton != null) { ApplyButton.Dispose(); ApplyButton = null; } if (Backbutton != null) { Backbutton.Dispose(); Backbutton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (StyleName != null) { StyleName.Dispose(); StyleName = null; } if (TypeDropdown != null) { TypeDropdown.Dispose(); TypeDropdown = null; } }
void ReleaseDesignerOutlets() { if (AmountText != null) { AmountText.Dispose(); AmountText = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (SpeciesText != null) { SpeciesText.Dispose(); SpeciesText = null; } }
void ReleaseDesignerOutlets() { if (CatalogTableView != null) { CatalogTableView.Dispose(); CatalogTableView = null; } if (CountField != null) { CountField.Dispose(); CountField = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (EditButton != null) { EditButton.Dispose(); EditButton = null; } }
void ReleaseDesignerOutlets() { if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (DoneSwitch != null) { DoneSwitch.Dispose(); DoneSwitch = null; } if (NotesText != null) { NotesText.Dispose(); NotesText = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (TitleText != null) { TitleText.Dispose(); TitleText = null; } }
private async void DeleteButton_AnimationOnIsVisible(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == "IsVisible" && DeleteButton.IsVisible) { await DeleteButton.Animate(new ShakeAnimation()); } }
public void HidePresetControls() { if (InvokeRequired) { Invoke(new Action(() => { PresetLabel.Hide(); PresetList.Hide(); PresetNameLabel.Hide(); PresetNameTextbox.Hide(); ProcessLabel.Hide(); ProcessComboBox.Hide(); NewPresetButton.Hide(); SavePresetButton.Hide(); DeleteButton.Hide(); KeyPanelClass.CurrentPanel = null; })); } else { PresetLabel.Hide(); PresetList.Hide(); PresetNameLabel.Hide(); PresetNameTextbox.Hide(); ProcessLabel.Hide(); ProcessComboBox.Hide(); NewPresetButton.Hide(); SavePresetButton.Hide(); DeleteButton.Hide(); KeyPanelClass.CurrentPanel = null; } }
/// <summary> /// Deletes review /// </summary> /// <returns>Returns on ReviewsPageLogic</returns> public ReviewsPageLogic DeleteReview() { DeleteButton.Click(); IAlert alert = Application.Get().Browser.Driver.SwitchTo().Alert(); alert.Accept(); return(new ReviewsPageLogic()); }
private EditorRow(TemplateEditor enclosingInstance, DeleteButton deleteButton, JLabel rowLabel, JComboBox typeBox, JTextField nameField) { InitBlock(enclosingInstance); this.deleteButton = deleteButton; this.rowLabel = rowLabel; this.typeBox = typeBox; this.nameField = nameField; }
public void DeleteWrestler() { DeleteButton.Click(); var confirmDialog = new ConfirmDialog(); confirmDialog.YesButton.Click(); new WebDriverWait(Driver, TimeSpan.FromSeconds(10)).Until(t => Ribbon.CurrentTab.Name == "Wrestlers"); }
public void UpdateContextMenus() { EditButton .GetBindingExpression(VisibilityProperty)? .UpdateTarget(); DeleteButton .GetBindingExpression(VisibilityProperty)? .UpdateTarget(); }
private void OnMouseDown() { if (molecule.getMode().Equals(MoleculeBehaviour.Mode.Delete)) { destroySelf(); DeleteButton.resetDeleteButton(); molecule.setMode(MoleculeBehaviour.Mode.None); } }
private void Exit3(object sender, EventArgs e) { DoubleAnimation a = new DoubleAnimation(176, TimeSpan.FromMilliseconds(500)); DeleteButton.BeginAnimation(WidthProperty, a); DoubleAnimation a1 = new DoubleAnimation(64, TimeSpan.FromMilliseconds(500)); DeleteButton.BeginAnimation(HeightProperty, a1); }
// Lưu chỉnh sửa độc giả private void SaveEditButton_Click(object sender, EventArgs e) { DocGiaDTO DgDTO = new DocGiaDTO(); if (radioButton5.Checked == true) { DgDTO.Madocgia = textBox6.Text; DgDTO.Hoten = textBox9.Text; DgDTO.Ngaysinh = dateTimePicker4.Value; DgDTO.Diachi = textBox8.Text; DgDTO.Email = textBox7.Text; DgDTO.Loaidocgia = radioButton5.Text; DgDTO.Ngaylapthe = dateTimePicker5.Value; DgDTO.Cogiatri = dateTimePicker3.Value; } else { DgDTO.Madocgia = textBox6.Text; DgDTO.Hoten = textBox9.Text; DgDTO.Ngaysinh = dateTimePicker4.Value; DgDTO.Diachi = textBox8.Text; DgDTO.Email = textBox7.Text; DgDTO.Loaidocgia = radioButton6.Text; DgDTO.Ngaylapthe = dateTimePicker5.Value; DgDTO.Cogiatri = dateTimePicker3.Value; } bool kq = DgBUS.Sua(DgDTO); if (kq == false) { MessageBox.Show("Sửa độc giả thất bại. Vui lòng kiểm tra lại dũ liệu"); } else { MessageBox.Show("Sửa độc giả thành công"); DgBUS.Getlistreader(dataGridView1); } SaveEditButton.Hide(); CancelEdit.Hide(); AddBt.Show(); EditButton.Show(); DeleteButton.Show(); textBox6.Enabled = false; textBox9.Enabled = false; textBox8.Enabled = false; textBox7.Enabled = false; radioButton5.Enabled = false; radioButton6.Enabled = false; dateTimePicker4.Enabled = false; dateTimePicker5.Enabled = false; dateTimePicker6.Enabled = false; }
void ReleaseDesignerOutlets() { if (ButtonsView != null) { ButtonsView.Dispose(); ButtonsView = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (EditButton != null) { EditButton.Dispose(); EditButton = null; } if (ProductDetailsView != null) { ProductDetailsView.Dispose(); ProductDetailsView = null; } if (ProductImageView != null) { ProductImageView.Dispose(); ProductImageView = null; } if (ProductTitleLabel != null) { ProductTitleLabel.Dispose(); ProductTitleLabel = null; } if (ScoreContainerView != null) { ScoreContainerView.Dispose(); ScoreContainerView = null; } if (TextLabel != null) { TextLabel.Dispose(); TextLabel = null; } }
void ReleaseDesignerOutlets() { if (AttachPhotoButton != null) { AttachPhotoButton.Dispose(); AttachPhotoButton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (DescriptionTextField != null) { DescriptionTextField.Dispose(); DescriptionTextField = null; } if (DetachPhotoButton != null) { DetachPhotoButton.Dispose(); DetachPhotoButton = null; } if (NoInternetConnection != null) { NoInternetConnection.Dispose(); NoInternetConnection = null; } if (PhotoImageView != null) { PhotoImageView.Dispose(); PhotoImageView = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (StatusSwitch != null) { StatusSwitch.Dispose(); StatusSwitch = null; } if (TitleTextField != null) { TitleTextField.Dispose(); TitleTextField = null; } }
void ReleaseDesignerOutlets() { if (ActionSheetBottomButton != null) { ActionSheetBottomButton.Dispose(); ActionSheetBottomButton = null; } if (ActionSheetButton != null) { ActionSheetButton.Dispose(); ActionSheetButton = null; } if (AlertButton != null) { AlertButton.Dispose(); AlertButton = null; } if (ConfirmButton != null) { ConfirmButton.Dispose(); ConfirmButton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (LoadingButton != null) { LoadingButton.Dispose(); LoadingButton = null; } if (PromptButton != null) { PromptButton.Dispose(); PromptButton = null; } if (SnackbarButton != null) { SnackbarButton.Dispose(); SnackbarButton = null; } if (ToastButton != null) { ToastButton.Dispose(); ToastButton = null; } }
public void DeleteEntity(string name) { Trace.WriteLine(String.Format("Deleting entity data '{0}'", name)); SelectEntityRow(name); DeleteButton.Click(); var alert = Web.PortalDriver.SwitchTo().Alert(); alert.Accept(); Wait.Until(d => !DataTableDiv.Text.Contains(name)); }
public void Update(GameTime gameTime) { if (PreviewedGrid != null) { PreviewedGrid.Update(gameTime); } PreviewLabel.Update(gameTime); LoadButton.Update(gameTime); DeleteButton.Update(gameTime); }