public Networking() { try { GUN.Init(); AttributeManager = new AttributeManager(); Client = new GUNetClient(new GUNClientSettings(AttributeManager, "1.0", IPAddress.Parse("127.0.0.1"), 8888, false, true)); AttributeManager.AddClass(this); new Thread(() => { while (Client != null) { try { if (!Client.Connected) { if (!Client.Connecting) { try { Client.ConnectToServer(); } catch { } } } else { Client.HandleNetworkingData(); } MainWindow.Instance.Dispatcher.Invoke(() => { if (Client != null && Client.Connected) { MainWindow.Instance.Title = "BOSShop - Verbunden"; } else { MainWindow.Instance.Title = "BOSShop"; } }); } catch { } Thread.Sleep(1); } }).Start(); } catch { } }
public ProductAppServec(IRepository <Product, int> repository, UserManager userManager, IAttributeManager attributeManager, IProductManager productManager ) : base(repository) { _userManager = userManager; _attributeManager = attributeManager; _productManager = productManager; }
public AttributesComponent( IAttributeManager attributes, IEntityManager entities, IAttributeCache attributeCache, IQueryHistory queryHistory) { _attributes = attributes; _entityManager = entities; _attributeCache = attributeCache; _queryHistory = queryHistory; }
public AttributesPresenter( IAttributeView view, IAttributeManager attrManager, IEntityManager entityManager, IAttributeCache attributeCache, IQueryHistory queryHistory) { View = view; _entityManager = entityManager; _attributeCache = attributeCache; _queryHistory = queryHistory; _attributes = attrManager; // register event handlers _queryHistory.BeforeQueryExecuted += QueryHistory_BeforeQueryExecuted; _attributes.Selection.BeforeChanged += Selection_BeforeChanged; _attributes.Selection.Changed += Selection_Changed; SubscribeTo(View, "View"); UpdateAttributes(); }