当前位置: 首页>>代码示例>>C#>>正文


C# IDataManager类代码示例

本文整理汇总了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;
 }
开发者ID:pasha369,项目名称:RestaurantManagementSystem,代码行数:7,代码来源:OrderHub.cs

示例2: ExecutionManager

        public ExecutionManager(IAlgorithm algorithm, IDataManager dataManager)
        {
            this.algorithm = algorithm;
            this.dataManager = dataManager;

            algorithm.DiagnosticsEvent += OnInternalDiagnosticsEvent;
        }
开发者ID:mkaczynski,项目名称:MED,代码行数:7,代码来源:ExecutionManager.cs

示例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;
 }
开发者ID:TA2015-HQC-Hangman-3,项目名称:Hangman-3,代码行数:13,代码来源:Scoreboard.cs

示例4: SelectBindingViewModel

        public SelectBindingViewModel(IDataManager dataManager, IModalManager modalManager)
        {
            _dataManager = dataManager;
            _modalManager = modalManager;

            PageNames = _dataManager.GetAllPageNames().ToList();
        }
开发者ID:yenhanshih,项目名称:LeagueBinding,代码行数:7,代码来源:SelectBindingViewModel.cs

示例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);
                }
            };
        }
开发者ID:CHERRISHGRY,项目名称:Hawk,代码行数:28,代码来源:JoinDBTF.cs

示例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;


              });
          }

       

      }
开发者ID:njmube,项目名称:VervetaCRM,代码行数:31,代码来源:OrdersViewModel.cs

示例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);
 }
开发者ID:lucasthehacker,项目名称:Nexus.Data,代码行数:12,代码来源:AdditionalInitFunction.cs

示例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();
            }
        }
开发者ID:vvsur,项目名称:open-wealth-project,代码行数:27,代码来源:AggregateBars.cs

示例9: DbEX

        public DbEX()
        {
            dataManager = MainDescription.MainFrm.PluginDictionary["数据管理"] as IDataManager;
            ConnectorSelector = new ExtendSelector<IDataBaseConnector>();

            ConnectorSelector.SetSource(dataManager.CurrentConnectors);
        }
开发者ID:CHERRISHGRY,项目名称:Hawk,代码行数:7,代码来源:DbEx.cs

示例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;
        });

      }
开发者ID:njmube,项目名称:VervetaCRM,代码行数:29,代码来源:AccountDetailsViewModel.cs

示例11: Level

 public Level(IComponentFactory componentFactory,
     IDataManager dataManager,
     ContentManager contentManager)
 {
     _componentFactory = componentFactory;
     _dataManager = dataManager;
     _contentManager = contentManager;
 }
开发者ID:zunath,项目名称:MMXEngine,代码行数:8,代码来源:Level.cs

示例12: UsersController

 public UsersController(IDataManager dataManager)
 {
     this.dataManager = dataManager;
     this.getCurrentUser = () => new UserModel() {
         UserId = "TestUser",
         Role = "admin"
     };
 }
开发者ID:Amichai,项目名称:Annotation,代码行数:8,代码来源:UsersController.cs

示例13: CategoriesViewModel

        public CategoriesViewModel(IDataManager dataManager, ILoginManager loginManager)
        {
            RssDataManager = dataManager;
            LoginManager = loginManager;

            RssDataManager.CategoryChanged += SetCategoryList;
            GetCategoryList();
        }
开发者ID:souchea,项目名称:RSS,代码行数:8,代码来源:CategoriesViewModel.cs

示例14: RestaurantLst

 public RestaurantLst(IDataManager<Cuisine> cuisinManager)
     : this()
 {
     _cuisinManager = cuisinManager;
     Cuisines = _cuisinManager.Get()
         .Select(c => new SelectListItem() { Text = c.Name, Value = c.Name }).AsEnumerable()
     ;
 }
开发者ID:pasha369,项目名称:RestaurantManagementSystem,代码行数:8,代码来源:RestaurantLst.cs

示例15: SourcePageViewModel

        public SourcePageViewModel(IServiceManager serviceManager, IDataManager dataManager, ILoginManager loginManager)
        {
            ServiceManager = serviceManager;
            DataManager = dataManager;
            LoginManager = loginManager;

            SourceList = new ObservableCollection<SourceDTO>();
        }
开发者ID:souchea,项目名称:RSS,代码行数:8,代码来源:SourcePageViewModel.cs


注:本文中的IDataManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。