Beispiel #1
0
            /// <summary>
            /// Adds the given element to the collection
            /// </summary>
            /// <param name="item">The item to add</param>
            public override void Add(IModelElement item)
            {
                if ((this._parent.Bank == null))
                {
                    IBank bankCasted = item.As <IBank>();
                    if ((bankCasted != null))
                    {
                        this._parent.Bank = bankCasted;
                        return;
                    }
                }
                if ((this._parent.ServiceSupplier == null))
                {
                    IServiceSupplier serviceSupplierCasted = item.As <IServiceSupplier>();
                    if ((serviceSupplierCasted != null))
                    {
                        this._parent.ServiceSupplier = serviceSupplierCasted;
                        return;
                    }
                }
                IBankStatement bankStatementsCasted = item.As <IBankStatement>();

                if ((bankStatementsCasted != null))
                {
                    this._parent.BankStatements.Add(bankStatementsCasted);
                }
            }
Beispiel #2
0
 public Service(string id, IServiceSupplier supplier, string name, Action <ObservableCollection <IContentEntity> > func)
 {
     this.ID       = id;
     this.Supplier = supplier;
     this.Name     = name;
     SetContents(func);
 }
Beispiel #3
0
 public Service(string id, IServiceSupplier supplier, string name, IEnumerable <IContentEntity> value)
 {
     this.ID       = id;
     this.Supplier = supplier;
     this.Name     = name;
     SetContents(value);
 }
 public BunnyService(IServiceSupplier supplier, string devFolderName, string deviceId)
     : base(deviceId, supplier, devFolderName)
 {
     timer = new Timer(refresh, null, Timeout.Infinite, Timeout.Infinite);
     SetContents(PopulateContent);
 }
Beispiel #5
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public KindProxy(IServiceSupplier modelElement) :
     base(modelElement, "kind")
 {
 }
Beispiel #6
0
 public Service(string id, IServiceSupplier supplier, string name)
 {
     this.ID       = id;
     this.Supplier = supplier;
     this.Name     = name;
 }