private KickEditorViewModel(Authentication authentication, IDomainMember domainMember) { this.authentication = authentication; this.authentication.Expired += Authentication_Expired; this.domainMember = domainMember; this.CommentHeader = Resources.Label_KickReason; this.DisplayName = Resources.Title_KickEditor; }
public DomainMemberDescriptor(Authentication authentication, IDomainMemberDescriptor descriptor, DescriptorTypes descriptorTypes, object owner) : base(authentication, descriptor.Target, descriptorTypes) { this.domainMember = descriptor.Target; this.Owner = owner ?? this; this.domainMember.Dispatcher.VerifyAccess(); this.domainMemberInfo = domainMember.DomainMemberInfo; this.DomainMemberState = domainMember.DomainMemberState; if (this.descriptorTypes.HasFlag(DescriptorTypes.IsSubscriptable) == true && descriptor is INotifyPropertyChanged obj) { obj.PropertyChanged += Descriptor_PropertyChanged; } }
public DomainMemberDescriptor(Authentication authentication, IDomainMember domainMember, DescriptorTypes descriptorTypes, object owner) : base(authentication, domainMember, descriptorTypes) { this.domainMember = domainMember; this.Owner = owner ?? this; this.domainMember.Dispatcher.VerifyAccess(); this.domainMemberInfo = domainMember.DomainMemberInfo; this.DomainMemberState = domainMember.DomainMemberState; if (this.descriptorTypes.HasFlag(DescriptorTypes.IsSubscriptable) == true) { this.domainMember.DomainMemberInfoChanged += DomainMember_DomainMemberInfoChanged; this.domainMember.DomainMemberStateChanged += DomainMember_DomainMemberStateChanged; } }
public DomainMemberTreeItemBase(Authentication authentication, IDomainMember domainMember, bool isSubscriptable, object owner) : base(authentication, new DomainMemberDescriptor(authentication, domainMember, isSubscriptable == true ? DescriptorTypes.All : DescriptorTypes.IsRecursive, owner), owner) { }
public static string KickDomainMember(Authentication authentication, IDomain domain, IDomainMember domainMember) { return(string.Format(EventResources.KickDomainMember, authentication.ID, authentication.Name, domainMember, domainMember.DomainMemberInfo.Name, domain)); }
public DomainMemberEventArgs(Authentication authentication, IDomain domain, IDomainMember domainMember) : base(authentication, domain) { this.DomainMemberInfo = domainMember.DomainMemberInfo; this.DomainMemberState = domainMember.DomainMemberState; }
public DomainMemberListBoxItemViewModel(Authentication authentication, IDomainMember domainMember, object owner) : base(authentication, new DomainMemberDescriptor(authentication, domainMember, DescriptorTypes.All, owner), owner) { }
public DomainMemberRemovedEventArgs(Authentication authentication, IDomain domain, IDomainMember domainMember, RemoveInfo removeInfo) : base(authentication, domain, domainMember) { this.RemoveInfo = removeInfo; if (this.Domain.Members.Owner != null) { this.OwnerID = this.Domain.Members.Owner.ID; } }
public DomainMemberAddedEventArgs(Authentication authentication, IDomain domain, IDomainMember domainMember, byte[] data) : base(authentication, domain, domainMember) { this.Data = data; }