• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# DataGroup类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DataGroup的典型用法代码示例。如果您正苦于以下问题:C# DataGroup类的具体用法?C# DataGroup怎么用?C# DataGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DataGroup类属于命名空间,在下文中一共展示了DataGroup类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AlternativeDataItem

 public AlternativeDataItem(IUpgradeAlternative configurationAlternative, DataGroup @group)
     : base(configurationAlternative.UniqueId, configurationAlternative.Name, "", @group, 55, 0)
 {
     UpgradeItems = configurationAlternative.UpgradeItems;
     UpgradeAlternative = configurationAlternative;
     SetRightColumnSpan(UpgradeItems.Count);
 }
开发者ID:holzleube,项目名称:upgradeConfigurator,代码行数:7,代码来源:AlternativeDataItem.cs


示例2: AircraftVersionSelectionGroup

 public AircraftVersionSelectionGroup(DataGroup @aircraftGroup, List<IAircraft> aircrafts)
     : base("","","",@aircraftGroup,55,0)
 {
     SetProperties(aircrafts[0]);
     SetAircraftList(aircrafts, @aircraftGroup);
     SetRightColumnSpan(aircrafts.Count);
 }
开发者ID:holzleube,项目名称:upgradeConfigurator,代码行数:7,代码来源:AircraftVersionSelectionGroup.cs


示例3: ConfigurationGroupDataItem

 public ConfigurationGroupDataItem(IConfigurationGroup configurationGroup, DataGroup @group, int configurationItemsCount)
     : base(configurationGroup.UniqueId, configurationGroup.Name, "", @group, 55, 40)
 {
     ConfigurationState = configurationGroup.GroupConfigurationState;
     _configurationGroup = configurationGroup;
     _configurationItemsCount = configurationItemsCount;
 }
开发者ID:holzleube,项目名称:upgradeConfigurator,代码行数:7,代码来源:ConfigurationGroupDataItem.cs


示例4: VIDataGroup

        public VIDataGroup(DataGroup dataGroup)
        {
            string[] instantaneousSeriesTypes = { "Values", "Instantaneous" };

            // Initialize each of
            // the indexes to -1
            m_vaIndex = -1;
            m_vbIndex = -1;
            m_vcIndex = -1;
            m_vabIndex = -1;
            m_vbcIndex = -1;
            m_vcaIndex = -1;
            m_iaIndex = -1;
            m_ibIndex = -1;
            m_icIndex = -1;
            m_irIndex = -1;

            // Initialize the data group
            m_dataGroup = new DataGroup(dataGroup.DataSeries);

            for (int i = 0; i < dataGroup.DataSeries.Count; i++)
            {
                string measurementType = dataGroup[i].SeriesInfo.Channel.MeasurementType.Name;
                string measurementCharacteristic = dataGroup[i].SeriesInfo.Channel.MeasurementCharacteristic.Name;
                string seriesType = dataGroup[i].SeriesInfo.SeriesType.Name;
                string phase = dataGroup[i].SeriesInfo.Channel.Phase.Name;

                // If the data group is not instantaneous, do not use it in the VIDataGroup
                if (measurementCharacteristic != "Instantaneous")
                    continue;

                // If the data group is not instantaneous, do not use it in the VIDataGroup
                if (!instantaneousSeriesTypes.Contains(seriesType))
                    continue;

                // Assign the proper indexes for the seven VIDataGroup
                // channels by checking the name of the channel
                if (measurementType == "Voltage" && phase == "AN")
                    m_vaIndex = i;
                else if (measurementType == "Voltage" && phase == "BN")
                    m_vbIndex = i;
                else if (measurementType == "Voltage" && phase == "CN")
                    m_vcIndex = i;
                else if (measurementType == "Voltage" && phase == "AB")
                    m_vabIndex = i;
                else if (measurementType == "Voltage" && phase == "BC")
                    m_vbcIndex = i;
                else if (measurementType == "Voltage" && phase == "CA")
                    m_vcaIndex = i;
                else if (measurementType == "Current" && phase == "AN")
                    m_iaIndex = i;
                else if (measurementType == "Current" && phase == "BN")
                    m_ibIndex = i;
                else if (measurementType == "Current" && phase == "CN")
                    m_icIndex = i;
                else if (measurementType == "Current" && phase == "RES")
                    m_irIndex = i;
            }
        }
开发者ID:GridProtectionAlliance,项目名称:openXDA,代码行数:59,代码来源:VIDataGroup.cs


示例5: GetAllQueryableFieldNames

        public override List<string> GetAllQueryableFieldNames(DataGroup @group)
        {
            var fields = new List<string>
                         	{
                                            "SKU","ProdName","ProdDescription","Brand","Manufacturer","IsRetail","RetailPrice","RetailPriceCat","IsWholesale","WholesalePrice","WholesaleQty","ProdStatus","ProdInventory","OutOfStockPoint","ProdOnOrder","AltID","VendorID","DescriptionHeader","ProductURLName","SpecialPrice","IsSpecialOngoing","SpecialStart","SpecialEnd","SpecialText","BackorderedDate","IgnoreBackorder","MinimumQuantity","MaximumQuantity","QuantityInSet","NumIterationsDisplayed","DisplayWeight","ActualWeight","Unit","ImageSetThumb","ImageSetLarge","ImageSetPopup","ImageSetType","ImageSetAttributeName","ImageSetTitle","ImageSetEditType","IsInactive","IsOutOfSeason","IsTaxExempt","HasTextField","IsHidden","IsFeatured","IsNew","IsGoogleCheckoutExempt","IsComparable","IsContentOnly","IsInventoryExempt","IsSubscription","IsDonation","SubscriptionPrice","HasElectronicDelivery","ElectronicDeliveryLink","ElectronicDeliveryDaysAvailable","ElectronicDeliveryDescription","ElectronicDeliveryEditType","IsKit","KitProductSKUs","ShipPreference","ByShipperMethod","ByShipperPreference","ByShipperFixedShipping","FixedShipping","ShipsInOwnBox","PackageLength","PackageWidth","PackageHeight","FreightClass","IsGiftCertificate","GiftCertificateDaysAvailable","GiftCertificateValue","Rating","Keywords","MetaKeywords","MetaTitle","MetaDescription","CategoryIDs","DefaultCategoryID","Custom","Template","DependencySKUs","DependencyType","AdditionalProdSKUs","RelatedProdSKUs","GiftWrap","GiftWrapName","GiftWrapSKU","GiftWrapAmount","CategoryFilter","CategoryFilterValue","CategoryFilterSortValue","ParentSKU","ChildImage","IsRewardsEligible","RewardsPoints","SubProductAttributes","IsAttribute","AttributeTitle1","AttributeTitle2","AttributeTitle3","AttributeTitle4","AttributeSKU","Attribute1","Attribute2","Attribute3","Attribute4","Attribute1Code","Attribute2Code","Attribute3Code","Attribute4Code","AttributePrice","AttributePriceCat","AttributeSpecialPrice","IsAttributeSpecialOngoing","AttributeSpecialStart","AttributeSpecialEnd","AttributeBackorderedDate","AttributeIgnoreBackorder","AttributeInventory","AttributeOutOfStockPoint","AttributeOnOrder","IsAttributeInactive","AttributeStatus","IsAttributeGiftCertificate","AttributeGiftCertificateDaysAvailable","AttributeGiftCertificateValue","IsAttributeSubscription","AttributeSubscriptionPrice","IsAttributeDonation","AttributeRewardsPoints"
                         	};

            return fields;
        }
开发者ID:dougadams4,项目名称:CartExtractorTestSite,代码行数:9,代码来源:TabbedFeedExtractor.cs


示例6: CommonMandelbrotDrawer

 public CommonMandelbrotDrawer(String uniqueId, String title, String imagePath, Color color, Trajectory trajectory, int iters, 
     DataGroup group, float scaling = 1.0f)
     : base(uniqueId, title, imagePath, group)
 {
     this.color = color;
     this.trajectory = trajectory;
     this.iters = iters;
     this.scaling = scaling;
 }
开发者ID:tazle,项目名称:PerfectFractalZoomer,代码行数:9,代码来源:CommonMandelbrotDrawer.cs


示例7: Combine

        public static DataGroup Combine(params DataGroup[] dataGroups)
        {
            DataGroup combination = new DataGroup();

            foreach (DataGroup dataGroup in dataGroups)
            {
                foreach (DataSeries dataSeries in dataGroup.DataSeries)
                    combination.Add(dataSeries);
            }

            return combination;
        }
开发者ID:GridProtectionAlliance,项目名称:openXDA,代码行数:12,代码来源:Transform.cs


示例8: VICycleDataGroup

        public VICycleDataGroup(DataGroup dataGroup)
        {
            m_cycleDataGroups = dataGroup.DataSeries
                .Select((dataSeries, index) => new { DataSeries = dataSeries, Index = index })
                .GroupBy(obj => obj.Index / 4)
                .Where(grouping => grouping.Count() >= 4)
                .Select(grouping => grouping.Select(obj => obj.DataSeries))
                .Select(grouping => new CycleDataGroup(new DataGroup(grouping)))
                .ToList();

            MapIndexes();
        }
开发者ID:GridProtectionAlliance,项目名称:openXDA,代码行数:12,代码来源:VICycleDataGroup.cs


示例9: DataHandlerBase

 public DataHandlerBase(SiteRules rules, CartExtractor cart, ExtractorProgress progress, DataGroup group)
 {
     _cart = cart;
     _rules = rules;
     _progress = progress;
     _group = group;
     _exportDate = DateTime.Now;
     _exportDateInitialized = false;
     _migrationSlave = _rules.MigrationRules != null && _rules.MigrationRules.Enabled
                                         && !_rules.MigrationRules.IsMigrationMaster;
     Reset();
 }
开发者ID:dougadams4,项目名称:CartExtractorTestSite,代码行数:12,代码来源:DataHandlerBase.cs


示例10: SetAircraftList

 private void SetAircraftList(List<IAircraft> aircrafts, DataGroup @group)
 {
     AircraftList = new ObservableCollection<AircraftSelectionDataItem>();
     if (aircrafts.Count == 1)
     {
         AircraftList.Add(new AircraftSelectionDataItem(aircrafts[0], @group, 30,30));
         return;
     }
     foreach (var aircraft in aircrafts)
     {
         AircraftList.Add(new AircraftSelectionDataItem(aircraft, group));
     }
 }
开发者ID:holzleube,项目名称:upgradeConfigurator,代码行数:13,代码来源:AircraftVersionSelectionGroup.cs


示例11: Write

        public static void Write(Meter meter, DataGroup waveFormData, FaultLocationData.FaultCurveDataTable faultCurveTable, List<FaultSegment> segments, string originalFilePath, string filePath)
        {
            List<DataSeries> waveFormSeriesList = GetWaveFormSeriesList(waveFormData);
            DataGroup faultLocationData = GetFaultLocationData(meter, faultCurveTable);

            string absoluteFilePath = FilePath.GetAbsolutePath(filePath);

            using (StreamWriter fileStream = new StreamWriter(File.OpenWrite(absoluteFilePath)))
            {
                string originalDirectory;
                string originalRootFileName;
                string originalSchemaFilePath;
                string absoluteOriginalFilePath;
                Schema originalSchema = null;

                string headerRow;

                absoluteOriginalFilePath = FilePath.GetAbsolutePath(originalFilePath);

                if (File.Exists(absoluteOriginalFilePath))
                {
                    originalDirectory = FilePath.GetDirectoryName(absoluteOriginalFilePath);
                    originalRootFileName = FilePath.GetFileNameWithoutExtension(originalFilePath);
                    originalSchemaFilePath = Path.Combine(originalDirectory, originalRootFileName + ".cfg");
                    originalSchema = new Schema(originalSchemaFilePath);
                }

                headerRow = waveFormData.DataSeries
                    .Select(series => GetOriginalChannelName(originalSchema, series))
                    .Concat(faultCurveTable.Select(row => string.Format("Fault Location ({0} Algorithm)", row.Algorithm)))
                    .Aggregate("Time", (s, s1) => s + "," + s1);

                fileStream.WriteLine(headerRow);

                for (int i = 0; i < waveFormData.Samples; i++)
                {
                    DateTime time = waveFormSeriesList[0].DataPoints[i].Time;

                    double[] values = waveFormSeriesList
                        .Select(series => series.DataPoints[i].Value)
                        .Concat(faultLocationData.DataSeries.Select(series => series.DataPoints.Count > i ? series.DataPoints[i].Value : 0.0D))
                        .ToArray();

                    fileStream.WriteLine(values.Aggregate(time.ToString("yyyy-MM-dd HH:mm:ss.ffffff"), (s, d) => s + "," + d));
                }
            }
        }
开发者ID:GridProtectionAlliance,项目名称:openXDA,代码行数:47,代码来源:CSVWriter.cs


示例12: DsEvent

 public static extern TwainResult DsEvent([In, Out] Identity origin, [In, Out] Identity dest, DataGroup dg, DataArgumentType dat, Message msg, ref Event evt);
开发者ID:wralex,项目名称:MyRepository,代码行数:1,代码来源:Twain32Native.cs


示例13: DsCapability

 public static extern TwainResult DsCapability([In, Out] Identity origin, [In] Identity dest, DataGroup dg, DataArgumentType dat, Message msg, [In, Out] TwainCapability capa);
开发者ID:wralex,项目名称:MyRepository,代码行数:1,代码来源:Twain32Native.cs


示例14: GetUserFields

 /// <summary>
 /// Builds a table with all the user fields and returns the string.
 /// </summary>
 /// <returns>An HTML string.</returns>
 public string GetUserFields(bool isSelfInfo)
 {
     //tal vez esta función no deba ir aqui...
     string retval = "<div id='tabNav'><ul>";
     string tabBody = "";
     int currentIdDataGroup = 0;
     List<DataDesc> dataDescList = Data.Data.GetDataDesc();
     foreach (DataDesc dataDesc in dataDescList)
     {
         foreach (UserData userData in userDataList)
         {
             if (userData.IdData == dataDesc.IdData)
             {
                 if (!String.IsNullOrEmpty(userData.Value))
                 {
                     dataDesc.Value = userData.Value;
                 }
             }
         }
         if (dataDesc.IdDataGroup != currentIdDataGroup)
         {
             if (currentIdDataGroup != 0)
             {
                 tabBody += "</table></div>";
             }
             tabBody += "<div id='tab" + dataDesc.IdDataGroup + "'><table width='70%' align='center'>";
             currentIdDataGroup = dataDesc.IdDataGroup;
             DataGroup dataGroup = new DataGroup(dataDesc.IdDataGroup);
             retval += "<li><a href='#tab" + dataDesc.IdDataGroup + "'>" + dataGroup.Name + "</a></li>";
         }
         if (dataDesc.Kind != Data.Data.LABEL)
         {
             bool canBeShown = false;
             if (dataDesc.InvisibleToSelf == 1)
             {
                 if (isSelfInfo)
                 {
                     if (Modules.Permission(SessionHandler.Modules, Modules.USER_ADMINISTRATION))
                     {
                         canBeShown = true;
                     }
                 }
             }
             else
             {
                 canBeShown = true;
             }
             if (canBeShown)
             {
                 string fieldName = dataDesc.Name;
                 if (dataDesc.Required == 1) fieldName = "<span class='required'>" + fieldName + "</span>";
                 string valueFromRequest = HttpContext.Current.Request.Form["data_" + dataDesc.IdData];
                 //if (dataDesc.Value == "") dataDesc.Value = valueFromRequest;
                 if (!String.IsNullOrEmpty(valueFromRequest)) dataDesc.Value = valueFromRequest;
                 tabBody += "<tr><td width='30%'>" + fieldName + ":</td><td width='70%'>" + dataDesc.GetFieldHTML() + "</td></tr>";
             }
         }
         else
         {
             tabBody += "<tr><td colspan='2'>" + dataDesc.GetFieldHTML() + "</td></tr>";
         }
     }
     if (!String.IsNullOrEmpty(tabBody)) tabBody += "</table></div>";
     return retval + "</ul>" + tabBody + "</div>";
 }
开发者ID:aestrada7,项目名称:qbscore,代码行数:69,代码来源:Users.cs


示例15: ConfigurationDataItem

 public ConfigurationDataItem(IConfigurationFile configuration, DataGroup @group)
     : base(configuration.UniqueId, configuration.ConfigurationDate, configuration.AircraftProgrammImage,  @group, 28, 25)
 {
     _configuration = configuration;
 }
开发者ID:holzleube,项目名称:upgradeConfigurator,代码行数:5,代码来源:ConfigurationDataItem.cs


示例16: StaticMandelbrotDrawer

 public StaticMandelbrotDrawer(String uniqueId, String title, String imagePath, Color color, float rCenter, float iCenter, float width, int iters, DataGroup group)
     : base(uniqueId, title, imagePath, color, new StaticTrajectory(rCenter, iCenter, width), iters, group)
 {
 }
开发者ID:tazle,项目名称:PerfectFractalZoomer,代码行数:4,代码来源:StaticMandelbrotDrawer.cs


示例17: TrajectoryMandelbrotDrawer

 public TrajectoryMandelbrotDrawer(String uniqueId, String title, String imagePath, Color color, Trajectory trajectory, int iters, DataGroup group)
     : base(uniqueId, title, imagePath, color, trajectory, iters, group, 3)
 {
 }
开发者ID:tazle,项目名称:PerfectFractalZoomer,代码行数:4,代码来源:TrajectoryMandelbrotDrawer.cs


示例18: DsStatus

 public static extern TwainResult DsStatus([In, Out] Identity origin, [In] Identity dest, DataGroup dg, DataArgumentType dat, Message msg, [In, Out] Status dsmstat);
开发者ID:wralex,项目名称:MyRepository,代码行数:1,代码来源:Twain32Native.cs


示例19: DsmParent

 public static extern TwainResult DsmParent([In, Out] Identity origin, IntPtr zeroPtr, DataGroup dg, DataArgumentType dat, Message msg, ref IntPtr windowHandle);
开发者ID:wralex,项目名称:MyRepository,代码行数:1,代码来源:Twain32Native.cs


示例20: DsImageTransfer

 public static extern TwainResult DsImageTransfer([In, Out] Identity origin, [In] Identity dest, DataGroup dg, DataArgumentType dat, Message msg, ref IntPtr hbitmap);
开发者ID:wralex,项目名称:MyRepository,代码行数:1,代码来源:Twain32Native.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DataItem类代码示例发布时间:2022-05-24
下一篇:
C# DataGridViewPaintParts类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap