本文整理汇总了C#中IDataManager类的典型用法代码示例。如果您正苦于以下问题:C# IDataManager类的具体用法?C# IDataManager怎么用?C# IDataManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDataManager类属于命名空间,在下文中一共展示了IDataManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OrderHub
public OrderHub(IDataManager<UserInfo> userManager, IDataManager<Restaurant> restaurantManager,IDataManager<Receipt> receiptManager, IDataManager<Order> orderManager)
{
_userManager = userManager;
_restaurantManager = restaurantManager;
_receiptManager = receiptManager;
_orderManager = orderManager;
}
示例2: ExecutionManager
public ExecutionManager(IAlgorithm algorithm, IDataManager dataManager)
{
this.algorithm = algorithm;
this.dataManager = dataManager;
algorithm.DiagnosticsEvent += OnInternalDiagnosticsEvent;
}
示例3: Scoreboard
/// <summary>
/// Initializes a new instance of the <see cref="Scoreboard"/> class.
/// </summary>
/// <param name="printer">The object used to show messages.</param>
/// <param name="sorter">The object used to sort scores.</param>
/// <param name="scoresDataManager">The object from which scores are read and written in.</param>
public Scoreboard(IPrinter printer, ISorter sorter, IDataManager<Dictionary<string, int>> scoresDataManager)
{
this.Score = new Dictionary<string, int>();
this.printer = printer;
this.sorter = sorter;
this.scoresDataManager = scoresDataManager;
}
示例4: SelectBindingViewModel
public SelectBindingViewModel(IDataManager dataManager, IModalManager modalManager)
{
_dataManager = dataManager;
_modalManager = modalManager;
PageNames = _dataManager.GetAllPageNames().ToList();
}
示例5: JoinDBTF
public JoinDBTF()
{
dataManager = MainDescription.MainFrm.PluginDictionary["数据管理"] as IDataManager;
ConnectorSelector = new ExtendSelector<IDataBaseConnector>();
TableSelector = new ExtendSelector<TableInfo>();
ImportColumns = new ObservableCollection<string>();
ConnectorSelector.GetItems = () => dataManager.CurrentConnectors.ToList();
ConnectorSelector.SelectChanged +=
(s, e) => TableSelector.SetSource(ConnectorSelector.SelectItem.RefreshTableNames());
TableSelector.SelectChanged += (s, e) =>
{
IDataBaseConnector connector = ConnectorSelector.SelectItem;
if (connector == null)
return;
TableInfo table = TableSelector.SelectItem;
if (table == null)
return;
IEnumerable<IDictionarySerializable> datas = ConnectorSelector.SelectItem.GetEntities(table.Name,
typeof (FreeDocument), 10, 0);
IEnumerable<string> keys = datas.GetKeys();
ImportColumns.Clear();
foreach (string key in keys)
{
ImportColumns.Add(key);
}
};
}
示例6: OrdersViewModel
public OrdersViewModel(bool openOrders, string accountId)
{
this.accountId = accountId;
this.openOrders = openOrders;
this.Title = openOrders ? "Orders" : "History";
this.Icon = openOrders ? "order.png" : "orderhistory.png";
dataManager = DependencyService.Get<IDataManager>();
Orders = new ObservableCollection<Order>();
if (openOrders)
{
MessagingCenter.Subscribe<Order>(this, "OrderUpdate", (order) =>
{
IsInitialized = false;
});
}
else
{
MessagingCenter.Subscribe<Order>(this, "OrderApproved", async (order) =>
{
IsInitialized = false;
});
}
}
示例7: Invoke
/// <summary>
/// Invokes the additional init function on an object
/// </summary>
/// <param name="store">The IDatastore that loaded the object</param>
/// <param name="item">The object</param>
public void Invoke(IDataManager DataManager, object item)
{
if (_needsParm)
_function.Invoke(item, new object[] { DataManager });
else
_function.Invoke(item, null);
}
示例8: AggregateBars
public AggregateBars(IDataManager data, ISymbol symbol, IScale scale)
{
l.Info("Создаем AggregateBars для " + symbol + " " + scale);
if (scale.scaleType != ScaleEnum.sec)
throw new NotImplementedException("поддерживаются только ТАЙМ фреймы");
this.symbol = symbol;
this.scale = scale;
this.debKey = "(" + symbol + "." + scale + ") ";
m_TickBars = data.GetBars(symbol, data.GetScale(ScaleEnum.tick, 1));
m_TickBars.Lock.AcquireReaderLock(1000);
try
{
IBar bar = m_TickBars.First;
while (bar != null)
{
m_TickBars_NewBarEvent(m_TickBars, new BarsEventArgs(this,bar));
bar = m_TickBars.GetNext(bar);
}
m_TickBars.NewBarEvent += new EventHandler<BarsEventArgs>(m_TickBars_NewBarEvent);
m_TickBars.ChangeBarEvent += new EventHandler<BarsEventArgs>(m_TickBars_ChangeBarEvent);
}
finally
{
m_TickBars.Lock.ReleaseReaderLock();
}
}
示例9: DbEX
public DbEX()
{
dataManager = MainDescription.MainFrm.PluginDictionary["数据管理"] as IDataManager;
ConnectorSelector = new ExtendSelector<IDataBaseConnector>();
ConnectorSelector.SetSource(dataManager.CurrentConnectors);
}
示例10: AccountDetailsViewModel
public AccountDetailsViewModel(Account account)
{
if (account == null)
{
Account = new Models.Account();
Account.Industry = Account.IndustryTypes[0];
Account.OpportunityStage = Account.OpportunityStages[0];
this.Title = "New Account";
}
else
{
Account = account;
this.Title = "Account";
}
this.Icon = "account.png";
dataManager = DependencyService.Get<IDataManager>();
coder = new Geocoder();
MessagingCenter.Subscribe<Account>(this, "Account", (Account) =>
{
IsInitialized = false;
});
}
示例11: Level
public Level(IComponentFactory componentFactory,
IDataManager dataManager,
ContentManager contentManager)
{
_componentFactory = componentFactory;
_dataManager = dataManager;
_contentManager = contentManager;
}
示例12: UsersController
public UsersController(IDataManager dataManager)
{
this.dataManager = dataManager;
this.getCurrentUser = () => new UserModel() {
UserId = "TestUser",
Role = "admin"
};
}
示例13: CategoriesViewModel
public CategoriesViewModel(IDataManager dataManager, ILoginManager loginManager)
{
RssDataManager = dataManager;
LoginManager = loginManager;
RssDataManager.CategoryChanged += SetCategoryList;
GetCategoryList();
}
示例14: RestaurantLst
public RestaurantLst(IDataManager<Cuisine> cuisinManager)
: this()
{
_cuisinManager = cuisinManager;
Cuisines = _cuisinManager.Get()
.Select(c => new SelectListItem() { Text = c.Name, Value = c.Name }).AsEnumerable()
;
}
示例15: SourcePageViewModel
public SourcePageViewModel(IServiceManager serviceManager, IDataManager dataManager, ILoginManager loginManager)
{
ServiceManager = serviceManager;
DataManager = dataManager;
LoginManager = loginManager;
SourceList = new ObservableCollection<SourceDTO>();
}