private void Parent_EventComponentRemoving(object sender, ComponentEventArgs e) { if (this.parentTransform != null) { Transform cmpTransform = e.Component as Transform; if (cmpTransform == this.parentTransform) { cmpTransform.GameObj.EventComponentAdded += this.Parent_EventComponentAdded; cmpTransform.GameObj.EventComponentRemoving -= this.Parent_EventComponentRemoving; this.parentTransform = null; this.UpdateRel(); } } }
private void AddFastResolvedTask(object sender, ComponentEventArgs <NoteInfoDto> e) { AddFastResolvedTask(); }
private void ExtendDeleteNote(object sender, ComponentEventArgs <NoteInfoDto> e) { DeleteNote(); }
private void _folderSelectorComponent_EntitySelection(object sender, ComponentEventArgs <FolderWithServiceRef> e) { SelectedFolderWithServiceRef = e.Entity; }
private void _notesSelectorComponent_EntitySelectionDoubleClick(object sender, ComponentEventArgs <NoteInfoDto> e) { if (e.Entity == null) { return; } _selectedNoteInfo = e.Entity; EditNote(); }
public void comboMTPLACAVRSTAIZNOSAIDMJESTOTROSKA_Add(object sender, ComponentEventArgs e) { this.comboMTPLACAVRSTAIZNOSAIDMJESTOTROSKA.Fill(); }
private void changeService_ComponentRemoved(object sender, ComponentEventArgs e) { this.DataContext.IsDirty = true; }
private void DesignerHost_ComponentRemove(object sender, ComponentEventArgs ce) { SampleSelectionItem sel = (SampleSelectionItem)this.selectionsByComponent[ce.Component]; if (sel != null) { this.RemoveSelection(sel); if ((this.selectionsByComponent.Count == 0) && (this.host != null)) { IComponent[] comps = new IComponent[this.host.Container.Components.Count]; this.host.Container.Components.CopyTo(comps, 0); if (comps != null) { int maxZOrder = -1; int defaultIndex = -1; object maxIndexComp = null; object baseComp = this.host.RootComponent; if (baseComp != null) { for (int i = comps.Length - 1; i >= 0; i--) { if (comps[i] != baseComp) { if (defaultIndex == -1) { defaultIndex = i; } if (comps[i] is Control) { int zorder = ((Control)comps[i]).TabIndex; if (zorder > maxZOrder) { maxZOrder = zorder; maxIndexComp = comps[i]; } } } } if (maxIndexComp == null) { if (defaultIndex != -1) { maxIndexComp = comps[defaultIndex]; } else { maxIndexComp = baseComp; } } ((ISelectionService)this).SetSelectedComponents(new object[] { maxIndexComp }, SelectionTypes.Replace); } } } else { this.OnSelectionChanged(); } } else { this.OnSelectionContentsChanged(); } }
public void comboKONTODOPIDKONTO_Add(object sender, ComponentEventArgs e) { this.comboKONTODOPIDKONTO.Fill(); }
private void OnComponentRemoving(object sender, ComponentEventArgs args) { _componentsCombo.Items.Remove(args.Component.Site.Name); }
private void DesignerHost_ComponentAdd(object sender, ComponentEventArgs ce) { this.OnSelectionContentsChanged(); }
private void OnComponentAdded(object sender, ComponentEventArgs args) { _componentsCombo.Items.Add(args.Component.Site.Name); }
public void Ctor(IComponent component) { var eventArgs = new ComponentEventArgs(component); Assert.Same(component, eventArgs.Component); }
void changeService_ComponentAdded(object sender, ComponentEventArgs e) { //simply add to the combobox list components.AppendValues(new object[] { e.Component.Site.Name, e.Component }); }
private void ComponentRemoved(object sender, ComponentEventArgs cea) { }
public void comboMTDOPIDMJESTOTROSKA_Add(object sender, ComponentEventArgs e) { this.comboMTDOPIDMJESTOTROSKA.Fill(); }
public void comboKONTOPLACAVRSTAIZNOSAIDKONTO_Add(object sender, ComponentEventArgs e) { this.comboKONTOPLACAVRSTAIZNOSAIDKONTO.Fill(); }
/* This method handles the OnComponentAdded event to display a notification. */ private void OnComponentAdded(object sender, ComponentEventArgs ce) { OnUserChange("A component, " + ce.Component.Site.Name + ", has been added."); }
public void comboSTRANEVRSTEIZNOSAIDSTRANEKNJIZENJA_Add(object sender, ComponentEventArgs e) { this.comboSTRANEVRSTEIZNOSAIDSTRANEKNJIZENJA.Fill(); }
/* This method handles the OnComponentAdding event to display a notification. */ private void OnComponentAdding(object sender, ComponentEventArgs ce) { OnUserChange("A component of type " + ce.Component.GetType().FullName + " is being added."); }
private void Store_ChangedActiveFilterWithServiceRef(object sender, ComponentEventArgs <NotesFilterWithServiceRef> e) { RefreshActiveFilterWithServiceRef(e.Entity); }
/* This method handles the OnComponentRemoving event to display a notification. */ private void OnComponentRemoving(object sender, ComponentEventArgs ce) { OnUserChange("A component, " + ce.Component.Site.Name + ", is being removed."); }
private void ExtendDeleteFolder(object sender, ComponentEventArgs <FolderWithServiceRef> e) { DeleteFolder(); }
private void OnComponentAddedRemoved(object sender, ComponentEventArgs ce) { dirty = true; unsaved = true; }
private void ExtendAddNote(object sender, ComponentEventArgs <NoteInfoDto> e) { AddNote(); }
public void RefreshGrid(object sender, ComponentEventArgs args) { this.FillData(); }
private void ExtendEditNoteAsPostIt(object sender, ComponentEventArgs <NoteInfoDto> e) { EditNotePostIt(); }
private void OnComponentRemoved(object sender, ComponentEventArgs ce) { this.compositionUI.RemoveComponent(ce.Component); }
private void ExtendMoveSelectedNotes(object sender, ComponentEventArgs <NoteInfoDto> e) { MoveSelectedNotes(); }
public void comboIDPLVRSTEIZNOSA_Add(object sender, ComponentEventArgs e) { this.comboIDPLVRSTEIZNOSA.Fill(); }
/// <summary> /// Raise component removed event. /// </summary> protected virtual void RaiseComponentRemovedEvent(BaseScreenComponent component) { // Raise event if (OnComponentRemoved != null) { // Popuate event arguments ComponentEventArgs e = new ComponentEventArgs() { Component = component, }; // Raise event OnComponentRemoved(this, e); } }
private void AppContext_AddedServiceRef(object sender, ComponentEventArgs <ServiceRef> e) { labelMessage.Text = "Loading " + e.Entity.Alias + "..."; labelMessage.Refresh(); Application.DoEvents(); }