コード例 #1
0
ファイル: Transform.cs プロジェクト: ruzli/duality
 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();
         }
     }
 }
コード例 #2
0
 private void AddFastResolvedTask(object sender, ComponentEventArgs <NoteInfoDto> e)
 {
     AddFastResolvedTask();
 }
コード例 #3
0
 private void ExtendDeleteNote(object sender, ComponentEventArgs <NoteInfoDto> e)
 {
     DeleteNote();
 }
コード例 #4
0
 private void _folderSelectorComponent_EntitySelection(object sender, ComponentEventArgs <FolderWithServiceRef> e)
 {
     SelectedFolderWithServiceRef = e.Entity;
 }
コード例 #5
0
 private void _notesSelectorComponent_EntitySelectionDoubleClick(object sender, ComponentEventArgs <NoteInfoDto> e)
 {
     if (e.Entity == null)
     {
         return;
     }
     _selectedNoteInfo = e.Entity;
     EditNote();
 }
コード例 #6
0
 public void comboMTPLACAVRSTAIZNOSAIDMJESTOTROSKA_Add(object sender, ComponentEventArgs e)
 {
     this.comboMTPLACAVRSTAIZNOSAIDMJESTOTROSKA.Fill();
 }
コード例 #7
0
 private void changeService_ComponentRemoved(object sender, ComponentEventArgs e)
 {
     this.DataContext.IsDirty = true;
 }
コード例 #8
0
        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();
            }
        }
コード例 #9
0
 public void comboKONTODOPIDKONTO_Add(object sender, ComponentEventArgs e)
 {
     this.comboKONTODOPIDKONTO.Fill();
 }
コード例 #10
0
 private void OnComponentRemoving(object sender, ComponentEventArgs args)
 {
     _componentsCombo.Items.Remove(args.Component.Site.Name);
 }
コード例 #11
0
 private void DesignerHost_ComponentAdd(object sender, ComponentEventArgs ce)
 {
     this.OnSelectionContentsChanged();
 }
コード例 #12
0
 private void OnComponentAdded(object sender, ComponentEventArgs args)
 {
     _componentsCombo.Items.Add(args.Component.Site.Name);
 }
コード例 #13
0
        public void Ctor(IComponent component)
        {
            var eventArgs = new ComponentEventArgs(component);

            Assert.Same(component, eventArgs.Component);
        }
コード例 #14
0
 void changeService_ComponentAdded(object sender, ComponentEventArgs e)
 {
     //simply add to the combobox list
     components.AppendValues(new object[] { e.Component.Site.Name, e.Component });
 }
コード例 #15
0
 private void ComponentRemoved(object sender, ComponentEventArgs cea)
 {
 }
コード例 #16
0
 public void comboMTDOPIDMJESTOTROSKA_Add(object sender, ComponentEventArgs e)
 {
     this.comboMTDOPIDMJESTOTROSKA.Fill();
 }
コード例 #17
0
 public void comboKONTOPLACAVRSTAIZNOSAIDKONTO_Add(object sender, ComponentEventArgs e)
 {
     this.comboKONTOPLACAVRSTAIZNOSAIDKONTO.Fill();
 }
コード例 #18
0
 /* 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.");
 }
コード例 #19
0
 public void comboSTRANEVRSTEIZNOSAIDSTRANEKNJIZENJA_Add(object sender, ComponentEventArgs e)
 {
     this.comboSTRANEVRSTEIZNOSAIDSTRANEKNJIZENJA.Fill();
 }
コード例 #20
0
 /* 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.");
 }
コード例 #21
0
 private void Store_ChangedActiveFilterWithServiceRef(object sender, ComponentEventArgs <NotesFilterWithServiceRef> e)
 {
     RefreshActiveFilterWithServiceRef(e.Entity);
 }
コード例 #22
0
 /* 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.");
 }
コード例 #23
0
 private void ExtendDeleteFolder(object sender, ComponentEventArgs <FolderWithServiceRef> e)
 {
     DeleteFolder();
 }
コード例 #24
0
ファイル: RuntimeHostLoader.cs プロジェクト: rinavin/RCJS
 private void OnComponentAddedRemoved(object sender, ComponentEventArgs ce)
 {
     dirty   = true;
     unsaved = true;
 }
コード例 #25
0
 private void ExtendAddNote(object sender, ComponentEventArgs <NoteInfoDto> e)
 {
     AddNote();
 }
コード例 #26
0
 public void RefreshGrid(object sender, ComponentEventArgs args)
 {
     this.FillData();
 }
コード例 #27
0
 private void ExtendEditNoteAsPostIt(object sender, ComponentEventArgs <NoteInfoDto> e)
 {
     EditNotePostIt();
 }
コード例 #28
0
 private void OnComponentRemoved(object sender, ComponentEventArgs ce)
 {
     this.compositionUI.RemoveComponent(ce.Component);
 }
コード例 #29
0
 private void ExtendMoveSelectedNotes(object sender, ComponentEventArgs <NoteInfoDto> e)
 {
     MoveSelectedNotes();
 }
コード例 #30
0
 public void comboIDPLVRSTEIZNOSA_Add(object sender, ComponentEventArgs e)
 {
     this.comboIDPLVRSTEIZNOSA.Fill();
 }
コード例 #31
0
        /// <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);
            }
        }
コード例 #32
0
 private void AppContext_AddedServiceRef(object sender, ComponentEventArgs <ServiceRef> e)
 {
     labelMessage.Text = "Loading " + e.Entity.Alias + "...";
     labelMessage.Refresh();
     Application.DoEvents();
 }